PATCH: add $id properties to schema files #419
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
JSON Schema 2020-12 supports the $id property to give schemas a URI which uniquely references them. This commit adds $id properties to the 360Giving Schema and the 360Giving Package Schema.
The value of each schema's $id is treated as the canonical identifier for the schema. This brings the following benefits to the 360Giving Standard:
fundingschema, and it is conceivable that they may want to make it interoperate with 360Giving by referencing the 360Giving Schema.This does NOT affect existing validation or published data. This change does not affect the 360Giving data models at all, only adds a JSON Schema identifier for the schema files which follows best practice and brings the above benefits.
See other standards which use $id:
Open Contracting use the "id" property, which was how this was achieved in JSON Schema Draft 04: