package
0.0.0-20210330134937-137c1d990586
Repository: https://github.com/google/hotel-booking-api-validator.git
Documentation: pkg.go.dev

# Functions

BookingAvailabilityData provides both json string and pb request / response for BookingAvailability.
BookingSubmitData provides both json string and pb request / response for BookingSubmit.
LoadRequest loads the request file and returns it's parsed version in pb.
LogFlow is a convenience function for logging common flows..
ReadFakeCert will read the testing cafile.pem from dataDir.
ValidateBookingAvailabilityResponse ensures the availability search criteria matches the echoed response.
ValidateBookingSubmitResponse checks for required fields, formats, and matching echo responses.

# Constants

DateFormat provides the regular expression for validating a date in YYYY-MM-DD format.
ISO3166 provides the regular expression for validating a two-letter country code defined by ISO 3166-1.

# Structs

BookingAvailabilityDataStruct struct.
BookingSubmitDataStruct struct.