Custom vocabularies and validation #1173
Unanswered
FTravaglini-crif
asked this question in
Q&A
Replies: 1 comment
-
You need to implement all the keywords in code, otherwise how would the validator know what validation logic to perform? The implementation of the validation logic for the same keyword can also potentially differ. For instance the changes in logic for the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, it's not long I am working on json schemas, so the question may be basic
I am writing a metaschema defining a couple custom vocabularies, and publishing them on my registry. I wanted to implement in my solution a validation service: from what I understand I have to define a schemaFactory, but the fact is, do I have to manually add to my JsonMetaSchema object all keywords of my custom vocabularies? isn't there a way to use the URI of the vocabularies to retrieve new keywords directly from the JSON schema files, since I already have defined all new keywords there?
In general, looking through the code and documentation, it seems to me I have to add manually the same keywords to the java object JsonMetaSchema that I already have in my custom vocabularies, is this correct?
I looked at #1061, but it looks like the minDate keywords they have in the new metaschema needs to be manually implemented also in the code. Is it so that if I want to define a vocabulary with n keywords I have to define again all n keywords in the java object JsonMetaSchema?
Thanks for the help
Beta Was this translation helpful? Give feedback.
All reactions