-
Notifications
You must be signed in to change notification settings - Fork 45
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
schemas are missing id definition #6
Comments
Thanks for filing this @chicco785. We've looked into adding IDs. At first glance, adding the property causes validation to fail on work-in-progress schemas which may not yet be pushed to external repos. The validator we use hasn't been updated in a few years, and doesn't allow turning off using the $id as a base URL so we'll need to dig deeper to find a solution that doesn't break our workflow. |
@chicco785 the WIP issue occurs when WIP schema A contains a Thanks for the pointer to ajv. Do you know if it can be configured to ignore $id at runtime? That would solve the issue. Although our validation tooling is in Java (you can take a look, it's part of this repo), so it might be difficult to integrate. |
@emersonf, i think you can take two approaches with ajv. |
I had a look at In my experience, it is also very nice to integrate with ci-travis, also in relation to pull request and so on. e.g. a pull request can only be accepted if all tests pass. |
All the schemas to be uri-referenciable from other schemas correctly, should have an id.
for example, the body-weight-1.0.json schema, by including the id
"http://www.openmhealth.org/schema/omh/body-weight-1.0.json
, would allowmass-unit-value-1.x.json
to be correctly resolved, and hence the schema will be considered valid by validators when remotely referenced in other schemas. (e.g. http://www.jsonschemavalidator.net)The text was updated successfully, but these errors were encountered: