scottie1984 / swagger-ui-express

Adds middleware to your express app to serve the Swagger UI bound to your Swagger document. This acts as living documentation for your API hosted from within your app.
MIT License
1.43k stars 229 forks source link

Support for OpenAPI Specification 3.1.0 #366

Closed fredsensibill closed 10 months ago

fredsensibill commented 10 months ago

A ticket was already opened for this, but it has since been improperly closed: https://github.com/scottie1984/swagger-ui-express/issues/274

When I try to set my API spec version to 3.1.0 I get this error:

openapi.validator: Validating schema
openapi.validator: validation errors [
  {
    "instancePath": "/openapi",
    "schemaPath": "#/properties/openapi/pattern",
    "keyword": "pattern",
    "params": {
      "pattern": "^3\\.0\\.\\d(-.+)?$"
    },
    "message": "must match pattern \"^3\\.0\\.\\d(-.+)?$\""
  }
]
fredsensibill commented 10 months ago

Posted to the wrong package. I should have posted this to express-openapi-validator