mirror of
https://github.com/davidebianchi/gswagger.git
synced 2025-12-23 23:38:43 -05:00
113 lines
2.7 KiB
JSON
113 lines
2.7 KiB
JSON
{
|
|
"info": {
|
|
"title": "test openapi title",
|
|
"version": "test openapi version"
|
|
},
|
|
"openapi": "3.0.0",
|
|
"paths": {
|
|
"/one-of": {
|
|
"post": {
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"oneOf": [
|
|
{
|
|
"maximum": 2,
|
|
"minimum": 1,
|
|
"type": "number"
|
|
},
|
|
{
|
|
"maximum": 3,
|
|
"minimum": 2,
|
|
"type": "number"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"oneOf": [
|
|
{
|
|
"maximum": 2,
|
|
"minimum": 1,
|
|
"type": "number"
|
|
},
|
|
{
|
|
"maximum": 3,
|
|
"minimum": 2,
|
|
"type": "number"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"description": ""
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/user-profile": {
|
|
"post": {
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"firstName": {
|
|
"title": "user first name",
|
|
"type": "string"
|
|
},
|
|
"lastName": {
|
|
"title": "user last name",
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"oneOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
}
|
|
],
|
|
"title": "custom properties"
|
|
},
|
|
"userType": {
|
|
"title": "type of user",
|
|
"type": "string",
|
|
"enum": ["simple", "advanced"]
|
|
}
|
|
},
|
|
"required": [
|
|
"firstName",
|
|
"lastName"
|
|
],
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"text/plain": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"description": ""
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|