{ | |
"openapi": "3.0.0", | |
"components": { | |
"schema": { | |
"Arrays": { | |
"type": "object", | |
"properties": { | |
"bar": { | |
"type": "array", | |
"items": { | |
"enum": [ | |
"1", | |
"2", | |
"3" | |
], | |
"default": "1" | |
} | |
}, | |
"foo": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"properties": { | |
"a": { | |
"type": "integer" | |
}, | |
"e": { | |
"type": "array", | |
"items": { | |
"enum": [ | |
"1", | |
"2", | |
"3" | |
], | |
"default": "1" | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"MyEnum": { | |
"description": "MyEnum", | |
"enum": [ | |
"1", | |
"2", | |
"3" | |
], | |
"default": "1" | |
}, | |
"MyStruct": { | |
"description": "MyStruct", | |
"type": "object", | |
"properties": { | |
"a": { | |
"type": "integer" | |
}, | |
"e": { | |
"type": "array", | |
"items": { | |
"enum": [ | |
"1", | |
"2", | |
"3" | |
], | |
"default": "1" | |
} | |
} | |
} | |
} | |
} | |
} | |
} |