blob: b5fec88f50173c0191621edc6bc2db7e1a502847 [file] [log] [blame]
{
"openapi": "3.0.0",
"info": {},
"paths": {},
"components": {
"schemas": {
"MyStruct": {
"type": "object",
"required": [
"contains"
],
"properties": {
"timestamp1": {
"type": "string",
"format": "dateTime"
},
"timestamp2": {
"type": "string",
"format": "dateTime"
},
"timestamp3": {
"type": "string",
"format": "dateTime"
},
"timestamp4": {
"type": "string",
"format": "dateTime"
},
"date1": {
"type": "string",
"format": "date"
},
"date2": {
"type": "string",
"format": "date"
},
"timeout": {
"$ref": "#/components/schemas/Duration"
},
"contains": {
"type": "array"
}
}
},
"Duration": {
"description": "This is not an OpenAPI type and has no format. In this case\nwe map to a type so that it can be documented properly (without\nrepeating it).",
"type": "string"
}
}
}
}