Currently, swagger-parser will error with the following message attribute info.license.identifier is missing when parsing an OpenApi 3.1 document where license.url and license.name is set (see the example document below).
According to the official OpenApi 3.1 schema it must have either the license.url or the license.identifier set but not both.
This PR will fix swagger-parser to work according to the schema.
Currently, swagger-parser will error with the following message
attribute info.license.identifier is missing
when parsing an OpenApi 3.1 document wherelicense.url
andlicense.name
is set (see the example document below). According to the official OpenApi 3.1 schema it must have either thelicense.url
or thelicense.identifier
set but not both. This PR will fix swagger-parser to work according to the schema.Example OpenApi 3.1 which currently fails:
Link to the OpenApi 3.1 schema: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#licenseObject