Closed StratusBase closed 2 years ago
Your StackOverflow question already has an answer.
Please be aware that we track json-schema
questions on that forum and generally answer fairly quickly.
@gregsdennis The SO answer you're referring to was to create a bug report...
I suggest you open a bug report for the implementation you are using.
This repository is for the specification itself. We don't control the implementations.
Ah, yep. My bad! Rushing :D
Given the following schema:
If I send a payload into my API with a key within the "states" object that doesn't match the pattern, it always allows the request... The behavior as I understood should prevent this with the properties / patternProperties + additionalProperties = false, but this is not the case...
For example - this should error since the pattern does not match and no additional properties are allowed, but I get a response from the API as though it was validated successfully:
If I then put a value that matches the pattern, I get a validation failure (as expected):
Response: