clientele
clientele copied to clipboard
Add anyOf support in properties
Example openapi.json
{
"openapi": "3.1.0",
"info": {
"title": "NinjaAPI",
"version": "1.0.0",
"description": ""
},
"paths": {},
"components": {
"schemas": {
"Pet": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [],
"title": "Pet",
"type": "object"
}
}
}
}
Output:
class Pet(pydantic.BaseModel):
name: typing.Any
Expected output:
class Pet(pydantic.BaseModel):
name: string | None