Skip to content

OAS 2.0 - invalid basePath #75

@antaln

Description

@antaln

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

  1. python vmsgen.py -vc <host> -oas 2 -o <dir>
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions