mirror of
https://github.com/discourse/discourse.git
synced 2025-03-24 01:25:35 +08:00
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:
parent
d51d94f771
commit
d500c436c6
@ -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',
|
url: 'https://discourse-meta.s3-us-west-1.amazonaws.com/optimized/3X/9/d/9d543e92b15b06924249654667a81441a55867eb_1_690x184.png',
|
||||||
},
|
},
|
||||||
version: 'latest',
|
version: 'latest',
|
||||||
description: api_docs_description
|
description: api_docs_description,
|
||||||
|
license: {
|
||||||
|
name: 'MIT',
|
||||||
|
url: 'https://docs.discourse.org/LICENSE.txt'
|
||||||
|
}
|
||||||
},
|
},
|
||||||
paths: {},
|
paths: {},
|
||||||
servers: [
|
servers: [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user