From 70ecce77357f498027be77d667c587985d7b666d Mon Sep 17 00:00:00 2001 From: Mike Ralphson Date: Thu, 27 Feb 2020 17:32:42 +0000 Subject: [PATCH] Add SPDX identifier field to license object, fixes #1599 (#2105) --- versions/3.1.0.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/versions/3.1.0.md b/versions/3.1.0.md index db2e9b499a..0d93436c73 100644 --- a/versions/3.1.0.md +++ b/versions/3.1.0.md @@ -297,7 +297,8 @@ License information for the exposed API. Field Name | Type | Description ---|:---:|--- name | `string` | **REQUIRED**. The license name used for the API. -url | `string` | A URL to the license used for the API. MUST be in the format of a URL. +identifier | `string` | An [SPDX](https://spdx.org/spdx-specification-21-web-version#h.jxpfx0ykyb60) license expression for the API. The `identifier` field is mutually exclusive of the `url` field. +url | `string` | A URL to the license used for the API. MUST be in the format of a URL. The `url` field is mutually exclusive of the `identifier` field. This object MAY be extended with [Specification Extensions](#specificationExtensions). @@ -306,13 +307,13 @@ This object MAY be extended with [Specification Extensions](#specificationExtens ```json { "name": "Apache 2.0", - "url": "https://www.apache.org/licenses/LICENSE-2.0.html" + "identifier": "Apache-2.0" } ``` ```yaml name: Apache 2.0 -url: https://www.apache.org/licenses/LICENSE-2.0.html +identifier: Apache-2.0 ``` #### Server Object