{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "This is the enum's title", "description": "This is the enum's description.", "oneOf": [ { "type": "string", "enum": [ "UndocumentedUnit", "UndocumentedUnit2" ] }, { "description": "This comment is included in the generated schema :)", "type": "string", "const": "DocumentedUnit" }, { "title": "Complex variant", "description": "This is a struct-like variant.", "type": "object", "properties": { "Complex": { "type": "object", "properties": { "my_nullable_string": { "title": "A nullable string", "description": "This field is a nullable string.\n\nThis is the second line!\n\nAnd this is the third!", "type": [ "string", "null" ] } } } }, "required": [ "Complex" ], "additionalProperties": false } ] }