Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OAS 3.1.0] In License object url and identifier should not be both set #92

Open
jmini opened this issue Jul 2, 2020 · 0 comments
Open
Labels
OAS 3.1.0 Features that need to be implemented with OpenAPI 3.1.0 support

Comments

@jmini
Copy link
Member

jmini commented Jul 2, 2020

With OpenAPI 3.1.0 there is an new identifier to the License object.

Reference: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.1.0.md#licenseObject

An SPDX license expression for the API. The identifier field is mutually exclusive of the url field.

Invalid example:

openapi: 3.1.0
info:
  title: Example specification
  version: "1.0"
  license:
    name: Eclipse Public License 2.0
    url: https://www.eclipse.org/legal/epl-2.0/
    identifier: EPL-2.0
servers:
- url: http://localhost:8080/
paths:
  /ping:
    get:
      operationId: ping
      responses:
        200:
          description: OK
@jmini jmini added the OAS 3.1.0 Features that need to be implemented with OpenAPI 3.1.0 support label Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OAS 3.1.0 Features that need to be implemented with OpenAPI 3.1.0 support
Projects
None yet
Development

No branches or pull requests

1 participant