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

replace traverse code with evaluation against metaschema #68

Open
karenetheridge opened this issue Feb 16, 2022 · 0 comments
Open

replace traverse code with evaluation against metaschema #68

karenetheridge opened this issue Feb 16, 2022 · 0 comments

Comments

@karenetheridge
Copy link
Owner

As the work in JSMDO has shown, a schema's traverse phase is very similar to the act of evaluating the schema against its metaschema -- the work we do at traverse time to identify embedded identifiers etc can be replaced by similar code that is triggered by evaluation callbacks on the properties keyword.

One interesting counter-example is if a document changes its dialect (embedded $schema keyword) midway -- at that point we cannot keep evaluating the schema against the same metaschema, as now the metaschema has changed. (!)

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

No branches or pull requests

1 participant