Skip to content
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

Validate JSON data against schemas #749

Merged
merged 1 commit into from
Sep 27, 2022
Merged

Validate JSON data against schemas #749

merged 1 commit into from
Sep 27, 2022

Conversation

tidoust
Copy link
Member

@tidoust tidoust commented Sep 27, 2022

This makes use of the new schema validation function in Reffy to make sure that the curated data Webref produces follow expected scheams, see:
w3c/reffy#1075

This replaces #731 and fixes #657.

Schemas, notably those that deal with parsed IDL structures, could go deeper into details. To be improved over time.

Tests are run against the curated version of data. That is not necessary for extracts that aren't actually curated (dfns, headings, ids, links, refs), just more convenient not to have branching logic in the test code.

This makes use of the new schema validation function in Reffy to make sure that
the curated data Webref produces follow expected scheams, see:
  w3c/reffy#1075

This replaces #731 and fixes #657.

Schemas, notably those that deal with parsed IDL structures, could go deeper
into details. To be improved over time.

Tests are run against the curated version of data. That is not necessary for
extracts that aren't actually curated (dfns, headings, ids, links, refs), just
more convenient not to have branching logic in the test code.
@tidoust tidoust merged commit 45971c4 into main Sep 27, 2022
@tidoust tidoust deleted the test-schemas branch September 27, 2022 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validate extracts against schemas
2 participants