{ | |
"openapi": "3.0.0", | |
"info": { | |
"title": "test", | |
"version": "v1" | |
}, | |
"components": { | |
"schemas": { | |
"MyStruct": { | |
"type": "object", | |
"required": [ | |
"mediumNum", | |
"smallNum", | |
"float", | |
"double" | |
], | |
"properties": { | |
"mediumNum": { | |
"type": "integer", | |
"format": "int32" | |
}, | |
"smallNum": { | |
"type": "integer", | |
"minimum": -128, | |
"maximum": 127 | |
}, | |
"float": { | |
"type": "number", | |
"format": "float" | |
}, | |
"double": { | |
"type": "number", | |
"format": "double" | |
} | |
} | |
} | |
} | |
} | |
} |