{ "$schema": "https://spec.openapis.org/oas/3.0/schema/2019-04-02#/definitions/Schema", "title": "MyStruct", "type": "object", "properties": { "myInt": { "type": "integer" }, "myBool": { "type": "boolean" }, "myNullableEnum": { "nullable": true }, "myInnerStruct": { "type": "object", "properties": { "my_map": { "type": "object", "additionalProperties": { "type": "number" } }, "my_vec": { "type": "array", "items": { "type": "string" } }, "my_empty_map": { "type": "object", "additionalProperties": true }, "my_empty_vec": { "type": "array", "items": {} }, "my_tuple": { "type": "array", "items": [ { "type": "string", "maxLength": 1, "minLength": 1 }, { "type": "integer" } ], "maxItems": 2, "minItems": 2 } } } }, "example": { "myBool": true, "myInnerStruct": { "my_empty_map": {}, "my_empty_vec": [], "my_map": { "": 0.0 }, "my_tuple": [ "💩", 42 ], "my_vec": [ "hello", "world" ] }, "myInt": 123, "myNullableEnum": null } }