Skip to content

Commit

Permalink
sr/json: validate against metaschema with jsoncons
Browse files Browse the repository at this point in the history
rapidjson does not support validating schemas above draft 5, so
previously we have been rewriting newer schemas in draft 4's metaschema
in order to validate them. This is error prone and gets increasingly
complicated for later drafts.

Instead, this commit pulls in the jsoncons library which has support for
validing schemas in drafts 4, 6, 7, 2019-09, 2020-12, which covers our
expected use cases.
  • Loading branch information
pgellert committed Jul 22, 2024
1 parent a208f3c commit 010c0b4
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 593 deletions.
Loading

0 comments on commit 010c0b4

Please sign in to comment.