-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mismatch rental_apps OPTIONAL vs CONDITIONALLY REQUIRED #193
Comments
Just for clarity, the json schema doesn't mention this since it can't have cross-file references. But the validator has a rule for it. Presumably because the requiredness property is considered transitive, i.e. it is conditionally required because a sub-field is conditionally required. I'm not sure this is consistent: there could be conditionally required (or required) sub-fields within an optional structure which are not transitive. So I agree with @hbruch better to make this explicit. |
Thank you @hbruch and @testower for raising this mismatch between the spec and the validator 🙏 Problem(as pointed out by @hbruch) The spec says that the field
This error happens only when a field As pointed by @testower, it's the validator that adds a custom validation rule here. SolutionLet's remove this custom validation from the validator since this is not an explicit requirement in the spec currently. Moving this issue to the validator repo. cc @emmambd Feel free to open a new issue if you'd like to open a vote to make |
Does it actually make any sense not to provide rental_apps when you have rental_uris? |
What is the issue and why is it an issue
GBFSv2.3 as well as GBFS3.0 declare
system_information.rental_apps
as optional.In contrast, the gbfs-json-schema instead deems it required in case the feeds contain rental_uris, as @testower pointed out to me in a private conversation. An example can currently be seen here in this example.
Please describe some potential solutions you have considered (even if they aren’t related to GBFS).
I suggest to declare
rental_apps
,rental_apps.android
andrental_apps.ios
explicitlyCONDITIONALLY REQUIRED
in the spec.Is your potential solution a breaking change?
As the gbfs-json-schema is already stricter than the spec, I don't expect serious effects, but others may see this differently.
The text was updated successfully, but these errors were encountered: