You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just come across this and it's working great :) However, one thing I've noticed that's a bit awkward is - any errors caused by a violation of a required or additionalProperties rule doesn't tell you where in the JSON the violation occurred.
For everything else I get an InstanceLocation that is the JSON Pointer to the property that was invalid. For these two I just get "", so I can't have my service indicate which property was either missing but required, or was unexpectedly present.
I do get this come through in the Message so the validator obviously knows which property it is, but it just doesn't actually return it to the client.
Cheers
The text was updated successfully, but these errors were encountered:
The instance location for required should be the object that's supposed to contain the required properties, rather than individual properties. The actual missing properties would have to be listed in the message.
The instance location for additionalProperties should be the instance object that failed against the subschema. At least I'm pretty sure of that — I'm not an expert on the output requirements.
I've just come across this and it's working great :) However, one thing I've noticed that's a bit awkward is - any errors caused by a violation of a
required
oradditionalProperties
rule doesn't tell you where in the JSON the violation occurred.For everything else I get an
InstanceLocation
that is the JSON Pointer to the property that was invalid. For these two I just get""
, so I can't have my service indicate which property was either missing but required, or was unexpectedly present.I do get this come through in the
Message
so the validator obviously knows which property it is, but it just doesn't actually return it to the client.Cheers
The text was updated successfully, but these errors were encountered: