File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
src/main/resources/org/sonar/l10n/openapi/rules/openapi/apim/wso2 Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -30,3 +30,34 @@ <h2>Compliant Solution</h2>
3030 x-scope: read
3131 x-aut-type: "Application & Application User"
3232</ pre >
33+ < h2 > Noncompliant Code Example (OpenAPI 3)</ h2 >
34+ < pre >
35+ openapi: "3.0.0"
36+ x-wso2-security:
37+ apim:
38+ x-wso2-scopes:
39+ - name: read
40+ key: read
41+ roles: READ_ROLE
42+ description: Allows users to view records
43+ paths:
44+ /pets:
45+ get:
46+ x-scope: read
47+ </ pre >
48+ < h2 > Compliant Solution (OpenAPI 3)</ h2 >
49+ < pre >
50+ openapi: "3.0.0"
51+ x-wso2-security:
52+ apim:
53+ x-wso2-scopes:
54+ - name: read
55+ key: read
56+ roles: READ_ROLE
57+ description: Allows users to view records
58+ paths:
59+ /pets:
60+ get:
61+ x-scope: read
62+ x-aut-type: "Application & Application User"
63+ </ pre >
You can’t perform that action at this time.
0 commit comments