Files
gswagger/testdata/allof.json
2024-11-08 19:52:34 +01:00

91 lines
2.1 KiB
JSON

{
"info": {
"title": "test openapi title",
"version": "test openapi version"
},
"openapi": "3.0.0",
"paths": {
"/all-of": {
"post": {
"requestBody": {
"content": {
"application/json": {
"schema": {
"allOf": [
{
"maximum": 2,
"minimum": 1,
"type": "number"
},
{
"maximum": 3,
"minimum": 2,
"type": "number"
}
]
}
}
}
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"allOf": [
{
"maximum": 2,
"minimum": 1,
"type": "number"
},
{
"maximum": 3,
"minimum": 2,
"type": "number"
}
]
}
}
},
"description": ""
}
}
}
},
"/nested-schema": {
"get": {
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"properties": {
"foo": {
"type": "string"
},
"nested": {
"allOf": [
{
"maximum": 2,
"minimum": 1,
"type": "number"
},
{
"maximum": 3,
"minimum": 2,
"type": "number"
}
]
}
}
}
}
},
"description": ""
}
}
}
}
}
}