pythogen
pythogen copied to clipboard
IPvAnyAddress format is not supported
Django ninja sets format to ipvanyadress for IP addresses.
To reproduce:
{
"openapi": "3.1.0",
"info": {
"title": "NinjaAPI",
"version": "1.0.0",
"description": ""
},
"components": {
"schemas": {
"Proxy": {
"properties": {
"ip": { "format": "ipvanyaddress", "title": "Ip", "type": "string" }
},
"required": [],
"title": "Proxy",
"type": "object"
}
}
}
}
Output:
Exception: Unable to parse schema, unknown format "ipvanyaddress"