-
Notifications
You must be signed in to change notification settings - Fork 46
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
Consider a "strict" schema to introduce JSON Schema validation keywords prior to 2.0 #1046
Comments
It might be preferable to keep deprecated fields, codes, and types. If we remove them, then the DRT will report them as additional in which case it's less clear what to do about them than if they are flagged as deprecated in which case the deprecation notes usually explain what to do instead. |
Yes, we can keep the deprecated fields and codes. The DRT (and schema) has nothing about deprecated types (e.g. "number" for ID fields), so it is better to remove them and cause a structural error. |
Sounds good! |
Are there any other types that we should remove, apart from "number" for ID fields and "null" for required fields? |
Not that I'm aware. I think most fields are single-type, but we can run some code to find any other multi-type. |
I checked using a Python script and the only other multi-type fields are:
|
Copying relevant content here for easier reference: From #1480 (comment)
|
Several issues deal with incorrect or missing JSON Schema validation keywords. See milestone: https://github.com/open-contracting/standard/milestone/25
Typically, we would need to wait for a major version (2.0) to make changes that invalidate data from earlier versions (i.e. backwards-incompatible changes).
However, we can offer a voluntary, "strict" schema that adds in these keywords, removes deprecated fields and codes, removes deprecated types, etc.
Users of the Data Review Tool could voluntarily select the strict schema. Similarly, OCDS Helpdesk analysts could inform publishers of opportunities to improve their data by passing the stricter criteria.
The text was updated successfully, but these errors were encountered: