-
-
Notifications
You must be signed in to change notification settings - Fork 466
Closed
Description
Hey,
I have the following setup:
Input OpenAPI snipped:
"url": {
"type": "string",
"description": "URL to a web page with more details about the plan.",
"format": "url",
"example": "http://cool-cloud-corp.com/plans/free-plan"
}
I then load swagger by file and create a filter router with the following lines:
openapi3.DefineStringFormat("url", REGEX)
swagger, err := openapi3.NewSwaggerLoader().LoadSwaggerFromFile(ct.apifile)
router := openapi3filter.NewRouter().WithSwagger(swagger)
The last line causes the following error:
panic: Validating Swagger failed: Unsupported 'format' value 'url'
Even though I added it to the string formats in the first line, am I doing something wrong?
Is there a solution to this? (the problem seems similar to #79)
Metadata
Metadata
Assignees
Labels
No labels