File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed
Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change 11---
2- slug :
3- - /docs/cli/v2/rules/oas/info-license-url
4- - /docs/cli/v2/rules/oas/info-license-strict
2+ slug : /docs/cli/v2/rules/oas/info-license-strict
53---
64
75# info-license-strict
86
9- Requires the license URL in your API descriptions.
7+ Requires either the license URL or identifier in your API descriptions.
108
119| OAS | Compatibility |
1210| --- | ------------- |
@@ -54,15 +52,15 @@ rules:
5452 info-license-strict : error
5553` ` `
5654
57- Example of an **incorrect** license URL :
55+ Example of an **incorrect** license:
5856
5957` ` ` yaml Object example
6058info :
6159 license :
6260 name : MIT
6361` ` `
6462
65- Example of a **correct** license URL:
63+ Example of a **correct** license with URL:
6664
6765` ` ` yaml Object example
6866info :
7169 url : https://www.apache.org/licenses/LICENSE-2.0.html
7270` ` `
7371
72+ Example of a **correct** license with identifier:
73+
74+ ` ` ` yaml Object example
75+ info :
76+ license :
77+ name : Apache 2.0
78+ identifier : Apache-2.0
79+ ` ` `
80+
7481## Related rules
7582
7683- [info-contact](./info-contact.md)
You can’t perform that action at this time.
0 commit comments