{ "$schema": "https://spec.openapis.org/oas/3.0/schema/2021-09-28#/definitions/Schema", "title": "Outer", "type": "object", "properties": { "int": { "type": "integer", "format": "int32", "example": 8 }, "values": { "type": "object", "additionalProperties": true }, "value": {}, "inner": { "nullable": true, "allOf": [ { "$ref": "#/components/schemas/Inner" } ] }, "tuples": { "type": "array", "items": { "type": "array", "maxItems": 2, "minItems": 2, "items": [ { "type": "integer", "format": "uint8", "minimum": 0 }, { "type": "integer", "format": "int64" } ] } } }, "required": [ "int", "values", "value", "tuples" ], "components": { "schemas": { "Inner": { "oneOf": [ { "type": "string", "enum": [ "UndocumentedUnit1", "UndocumentedUnit2" ] }, { "description": "This is a documented unit variant", "type": "string", "enum": [ "DocumentedUnit" ] }, { "type": "object", "properties": { "ValueNewType": {} }, "required": [ "ValueNewType" ], "additionalProperties": false } ] } } } }