Skip to content

Swagger Editor show Structural error at openapi for 3.1.0 #4798

@Spenhouet

Description

@Spenhouet

Q&A (please complete the following information)

  • Swagger-Editor version: Unknown
  • Swagger/OpenAPI version: 3.1.0

Content & configuration

My Swagger/OpenAPI definition contains the version 3.1.0 as openapi version:

{
    "openapi": "3.1.0",
    "paths": {},
    "info": {
      "title": "Bug Report",
      "version": "1.0.0"
    },
}

Describe the bug you're encountering

When opened in https://editor.swagger.io/, it shows the error:

Structural error at openapi
should match pattern "^3\.0\.\d(-.+)?$"
pattern: ^3\.0\.\d(-.+)?$
Jump to line 2

Expected behavior

Using version 3.1.0 should not yield any validation error.

Screenshots

image

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