dependentRequires #281
Unanswered
k-channon-PA
asked this question in
Q&A
Replies: 1 comment
-
|
Not known by draft7, which this library supports, so not implemented. Sorry. |
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.
-
Hi, is the "dependentRequired" keyword implemented? I have an example that works in the online validator at www.jsonschemavalidator.net, but I can't seem to get it to work in C++ using this library (which I'm successfully using for a bunch of other things):
{ "type": "object", "properties": { "foo": { "type": "string" }, "bar": { "type": "string" } }, "dependentRequired": { "bar": ["foo"] } }So, this should allow
{"foo":"hello!"}and{"foo": "hello!", "bar": "howdy!"}, but not a thing withbaron its own, like:{"bar": "howdy!"}Am I just holding it wrong?
using v2.1.0
Here's an example (using Catch2)
Beta Was this translation helpful? Give feedback.
All reactions