-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Per OAS 2.0:
basePathis the URL prefix for all API paths, relative to the host root. It must start with a leading slash/. IfbasePathis not specified, it defaults to/, that is, all paths start at the host root.
This is causing OAS 2.0 validators (e.g. go-openapi) to fail with error basePath in body should match '^/'
Reproduction steps
python vmsgen.py -vc <host> -oas 2 -o <dir>- observe that resulting oas2 specs have
basePathset to empty string.
Expected behavior
'basePath' should either be omitted entirely, or set to '/'.
Additional context
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working