Skip to content

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

Open

Description

@jmini

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

Activity

  1. added
    OAS 3.1.0Features that need to be implemented with OpenAPI 3.1.0 support
    on Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    OAS 3.1.0Features that need to be implemented with OpenAPI 3.1.0 support

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions