DEV: Add license field to api docs info section (#14248)

One of the fields that should be present for openapi docs is the "license"
field.

https://spec.openapis.org/oas/latest.html#infoObject

Our API docs already had a license, so this commit just specifies that
and provides a link to it.
This commit is contained in:
Blake Erickson 2021-09-07 10:35:56 -06:00 committed by GitHub
parent d51d94f771
commit d500c436c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -95,7 +95,11 @@ RSpec.configure do |config|
url: 'https://discourse-meta.s3-us-west-1.amazonaws.com/optimized/3X/9/d/9d543e92b15b06924249654667a81441a55867eb_1_690x184.png',
},
version: 'latest',
description: api_docs_description
description: api_docs_description,
license: {
name: 'MIT',
url: 'https://docs.discourse.org/LICENSE.txt'
}
},
paths: {},
servers: [