-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use type and properties objects for arrays, tweak required field synt…
…ax (#37) Many arrays defined in GBFS schemas define item properties directly in the containing object. In this commit, we provide a schema for these array items to be validated against. Because in most cases array items are objects, this amounted to adding "type": "object" and moving the properties that were defined under a "properties" key. Additionally, in some cases, array properties would be marked required by setting "required": "true" below the "items" property. We also now use the more common syntax of requiring fields by setting "required" to a list of strings.
- Loading branch information
1 parent
0e3651f
commit b177066
Showing
10 changed files
with
680 additions
and
628 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.