s-knibbs / dataclasses-jsonschema

JSON schema generation from dataclasses
MIT License
166 stars 38 forks source link

schema doesn't support inline definition #198

Open perryism opened 1 year ago

perryism commented 1 year ago

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"],
    }
}