Closed geoffreywiseman closed 4 years ago
Hehe, no 😉 . I appreciate issue requests 👍
It works, if you use minLength
and maxLength
.
See: https://swagger.io/specification/#schema-object or more specifically, see "Validation keywords" of https://www.npmjs.com/package/ajv , as this is the schema validator that's used internally.
[sigh] Yes, you're totally right. I have a bad piece in one of my API specs (it actually said minimum
and maximum
), and made a bad example from it that was subtly different and didn't realize. I confirm that OEV works fine for length when I use the right fields. 😳 Thanks!
It's me again. Are you tired of getting my issue requests yet? ;)
So I just discovered that I can make an example string larger than the bounds allowed by the schema and not get an error.
e.g.
And then: