Closed tyzhnenko closed 5 months ago
It will help to support Dict[str, Any] types in the OpenAPI schema.
It is useful to return some grouped data
@dataclass class User: id: str name: str
Example for Dict[str, list[User]]
Dict[str, list[User]]
{ "type": "object", "patternProperties": { "^[a-zA-Z0-9_]+$": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" } }, "required": ["id", "name"] } } } }
It works fine in the properties attribute.
properties
It will help to support Dict[str, Any] types in the OpenAPI schema.
It is useful to return some grouped data
Example for
Dict[str, list[User]]