Closed kimlundjohansen closed 3 years ago
Describe the bug Swagger UI cannot start up and a RoutePatternException is thrown: The route template separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value.
Expected behavior Swagger UI should load.
Scenario Happens if the spec file differs from:
servers:
Suggestion Make spec validation of that part.
The 'bug' is just a missing validation for server/url start path.
server/url
Implement validation to follow the rules from the OpenApi spec: https://swagger.io/docs/specification/api-host-and-base-path/
Describe the bug Swagger UI cannot start up and a RoutePatternException is thrown: The route template separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value.
Expected behavior Swagger UI should load.
Scenario Happens if the spec file differs from:
servers:
Suggestion Make spec validation of that part.