OpenAPI Version In Path Error (Edit)

The majority of public APIs available on the Web today put the major version of the API as part of the path for each API

OpenAPIVersionsPaths

Rule Definition

openapi-version-in-path-error.yaml
{"openapi-version-in-path-error":{"description":"The majority of public APIs available on the Web today put the major version of the API as part of the path for each API","message":"Version in Path","severity":"error","given":"$.paths[*]~","then":{"function":"pattern","functionOptions":{"notMatch":"/((?:/)(v|version)?[0-9]{1,3}(?:/)?)/i"}}}}

Back to All of the Rules