diff --git a/src/main/resources/org/sonar/l10n/openapi/rules/openapi/apim/wso2/OAR041.html b/src/main/resources/org/sonar/l10n/openapi/rules/openapi/apim/wso2/OAR041.html index 5fc79e76..689f891f 100644 --- a/src/main/resources/org/sonar/l10n/openapi/rules/openapi/apim/wso2/OAR041.html +++ b/src/main/resources/org/sonar/l10n/openapi/rules/openapi/apim/wso2/OAR041.html @@ -30,3 +30,34 @@

Compliant Solution

x-scope: read x-aut-type: "Application & Application User" +

Noncompliant Code Example (OpenAPI 3)

+
+openapi: "3.0.0"
+x-wso2-security:
+  apim:
+    x-wso2-scopes:
+    - name: read
+      key: read
+      roles: READ_ROLE
+      description: Allows users to view records
+paths:
+  /pets:
+    get:
+      x-scope: read
+
+

Compliant Solution (OpenAPI 3)

+
+openapi: "3.0.0"
+x-wso2-security:
+  apim:
+    x-wso2-scopes:
+    - name: read
+      key: read
+      roles: READ_ROLE
+      description: Allows users to view records
+paths:
+  /pets:
+    get:
+      x-scope: read
+      x-aut-type: "Application & Application User"
+
\ No newline at end of file