blob: 4b8123bb0dde89f8b79b370979794df36b5a25f0 [file] [log] [blame]
{
"openapi": "3.0.0",
"info": {},
"components": {
"schemas": {
"MyType": {
"type": "object",
"required": [
"myString",
"myPattern",
"myAntiPattern"
],
"properties": {
"myString": {
"type": "string",
"minLength": 1,
"maxLength": 5
},
"myPattern": {
"type": "string",
"pattern": "foo.*bar"
},
"myAntiPattern": {
"type": "string",
"not": {
"pattern": "foo.*bar"
}
}
}
}
}
}
}