mirror of
https://github.com/davidebianchi/gswagger.git
synced 2025-12-23 23:38:43 -05:00
91 lines
2.1 KiB
JSON
91 lines
2.1 KiB
JSON
{
|
|
"info": {
|
|
"title": "test openapi title",
|
|
"version": "test openapi version"
|
|
},
|
|
"openapi": "3.0.0",
|
|
"paths": {
|
|
"/any-of": {
|
|
"post": {
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"maximum": 2,
|
|
"minimum": 1,
|
|
"type": "number"
|
|
},
|
|
{
|
|
"maximum": 3,
|
|
"minimum": 2,
|
|
"type": "number"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"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": {
|
|
"anyOf": [
|
|
{
|
|
"maximum": 2,
|
|
"minimum": 1,
|
|
"type": "number"
|
|
},
|
|
{
|
|
"maximum": 3,
|
|
"minimum": 2,
|
|
"type": "number"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"description": ""
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|