Skip to content

Change linting of openapi property to allow OAS 3.2.0 #1371

@St0rmdrag0n

Description

@St0rmdrag0n

We've made no changes to our OAS YAML file other than updating the openapi version to 3.2.0. There are no breaking changes in this version of OAS so there is no reason it should not work, but we get this error when trying to push the docs up to readme via the CLI tool:

OpenAPI schema validation failed.

PROPERTY must match pattern "^3\.0\.\d(-.+)?$"

  1 | {
> 2 |   "openapi": "3.2.0",
    |   ^^^^^^^^^ must match pattern ^3\.0\.\d(-.+)?$
  3 |   "info": {
  4 |     "title": "Routable API",
  5 |     "version": "2022-01-12",

Please update this regex in your next version to allow 3.2.0 files to be passed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions