dataclasses-jsonschema icon indicating copy to clipboard operation
dataclasses-jsonschema copied to clipboard

schema doesn't support inline definition

Open perryism opened this issue 1 year ago • 0 comments

The source code indicates that schema always is resolved to a reference. I can't do inline schema like the following

{
    "in": "header",
    "required": True,
    "name": "FRUIT,
    "schema": {
        "type": "string", 
        "enum": ["apple", "banana", "orange"],
    }
}

perryism avatar Apr 29 '23 00:04 perryism