Closed darrenyong closed 3 months ago
This bumps @readme/openapi-parser to include these changes:
@readme/openapi-parser
These fix an issue where the existence of the description property under server.variables would fail validation.
description
server.variables
Customers should be able to upload valid OAS 3.1 files again without error'ing.
The following OAS file should not hit any validation errors:
@darrenyong this was released in v9.0.0-next.17!
v9.0.0-next.17
š§° Changes
This bumps
@readme/openapi-parser
to include these changes:These fix an issue where the existence of the
description
property underserver.variables
would fail validation.š Customer Impact
Customers should be able to upload valid OAS 3.1 files again without error'ing.
š§¬ QA & Testing
The following OAS file should not hit any validation errors:
OAS 3.1 file
```json { "openapi": "3.1.0", "info": { "version": "1.0", "title": "Invalid API" }, "servers": [ { "url": "https://{subdomain}.io", "variables": { "subdomain": { "default": "petstore", "description": "Subdomain description" } } } ], "paths": { "/anything": { "get": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/User-Information" } } } } } } } } }, "components": { "schemas": { "User-Information": { "type": "object", "properties": { "first": { "type": "boolean" }, "last": { "type": "boolean" } } } } } } ```