Skip to content

Should an implementation know all schemas with their canonical URIs before evaluation? #235

Answered by gregsdennis
flaksp asked this question in Q&A
Discussion options

You must be logged in to vote

Most implementations do have this two-stage processing where the first stage is scanning for internally-defined schemas, and the second is processing.

A bit more expansively, implementations are recommended against downloading content, so preloading them is the preferred approach. Mine has a registry that allows users to load any references schemas ahead of validation. For convenience, I also have a fetch function that is disabled by default. My docs also warn about potential security risks when downloading content.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by flaksp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants