Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Validate @id references in Booking API context #402

Closed
nickevansuk opened this issue Nov 23, 2021 · 0 comments · Fixed by #407
Closed

Validate @id references in Booking API context #402

nickevansuk opened this issue Nov 23, 2021 · 0 comments · Fixed by #407

Comments

@nickevansuk
Copy link
Contributor

nickevansuk commented Nov 23, 2021

Validate that acceptedOffer and orderedItem are @ids for requests, and objects for responses, within the Open Booking API.

Currently the validator will pass when @id references are used in the wrong context


Also (related) ensure that @id references are validated in the context of the feed.

For example this in a Slots feed currently passes the validator

            "facilityUse":{
               "@type":"FacilityUse",
               "@id":"https://localhost/ven_000229-rbt_000010",
               identifier":"ven_000229-rbt_000010"
           },

This has been split out into a separate issue #408

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant