pythogen icon indicating copy to clipboard operation
pythogen copied to clipboard

IPvAnyAddress format is not supported

Open pradishb opened this issue 1 year ago • 0 comments

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"

pradishb avatar Sep 23 '24 21:09 pradishb