Describe the bug
Per OAS 2.0:
basePath is the URL prefix for all API paths, relative to the host root. It must start with a leading slash /. If basePath is 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
basePath set to empty string.
Expected behavior
'basePath' should either be omitted entirely, or set to '/'.
Additional context
No response
Describe the bug
Per OAS 2.0:
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>basePathset to empty string.Expected behavior
'basePath' should either be omitted entirely, or set to '/'.
Additional context
No response