Open api spec lint fixes 12/140312/3
authorsaul.gill <saul.gill@est.tech>
Fri, 21 Feb 2025 16:11:07 +0000 (16:11 +0000)
committersaul.gill <saul.gill@est.tech>
Thu, 27 Feb 2025 11:30:44 +0000 (11:30 +0000)
Issue-ID: CCSDK-4092
Change-Id: I2f5295cd111d1f08b2a80dab38011d6586a06eb1
Signed-off-by: saul.gill <saul.gill@est.tech>
a1-policy-management/api/offeredapis/swagger/pms-api-v3.yaml

index 6d61dfe..1ea8b48 100644 (file)
@@ -84,6 +84,8 @@ paths:
                 status_info:
                   $ref: '#/components/examples/StatusInfo'
           description: OK- Service is living Ok
+        "404":
+          $ref: '#/components/responses/404'
       description: Returns status and statistics of this service
       tags:
         - Health Check
@@ -363,7 +365,7 @@ paths:
             example: application/json
       responses:
         '204':
-          description: 'The A1 policy was deleted'
+          description: 'No Content'
         '400':
           $ref: '#/components/responses/400'
         '401':
@@ -571,7 +573,7 @@ paths:
               $ref: '#/components/schemas/PolicyObjectInformation'
       responses:
         '201':
-          description: 'Success case 201 created'
+          description: 'Created'
           content:
             application/json:
               schema:
@@ -582,6 +584,12 @@ paths:
               required: true
               schema:
                 type: string
+            Content-Type:
+              description: 'Media Type of the response'
+              schema:
+                type: string
+                example: application/json
+
         '400':
           $ref: '#/components/responses/400'
         '401':
@@ -640,7 +648,7 @@ paths:
       responses:
         "200":
           content:
-            '*/*':
+            'application/json':
               schema:
                 $ref: '#/components/schemas/void'
           description: OK - Configuration updated
@@ -681,7 +689,7 @@ paths:
       responses:
         "200":
           content:
-            '*/*':
+            'application/json':
               schema:
                 type: object
           description: "OK - Service supervision timer refreshed, OK"
@@ -742,13 +750,13 @@ paths:
       responses:
         "200":
           content:
-            '*/*':
+            'application/json':
               schema:
                 type: object
           description: OK - Service updated
         "201":
           content:
-            '*/*':
+            'application/json':
               schema:
                 type: object
           description: Created - Service created
@@ -800,7 +808,7 @@ paths:
       responses:
         "204":
           content:
-            '*/*':
+            'application/json':
               schema:
                 type: object
           description: No Content - Service unregistered
@@ -823,13 +831,6 @@ components:
             serviceId: serviceId
             keepAliveIntervalSeconds: 0
             timeSinceLastActivitySeconds: 6
-    PolicyStatusInfo:
-      description: Status for one A1-P Policy
-      value:
-        lastModified: last_modified
-        status:
-          value:
-            status: status
     StatusInfo:
       value:
         status: status
@@ -1074,17 +1075,6 @@ components:
           description: status text
           type: string
       type: object
-    AuthorizationResult:
-      description: Result of authorization
-      example:
-        result: true
-      properties:
-        result:
-          description: "If true, the access is granted"
-          type: boolean
-      required:
-        - result
-      type: object
     RicInfo:
       description: Information for a Near-RT RIC
       properties:
@@ -1134,16 +1124,6 @@ components:
       required:
         - serviceId
       type: object
-    PolicyStatusInfo:
-      description: Status for one A1-P Policy
-      properties:
-        lastModified:
-          description: "timestamp, last modification time"
-          type: string
-        status:
-          description: the Policy status
-          type: object
-      type: object
     ServiceStatus:
       properties:
         callbackUrl:
@@ -1170,35 +1150,6 @@ components:
             $ref: '#/components/schemas/RicInfo'
           type: array
       type: object
-    input:
-      description: input
-      properties:
-        accessType:
-          description: Access type
-          enum:
-            - READ
-            - WRITE
-            - DELETE
-          type: string
-        authToken:
-          description: Authorization token
-          type: string
-        policyTypeId:
-          description: Policy type identifier
-          type: string
-      required:
-        - accessType
-        - authToken
-        - policyTypeId
-      type: object
-    PolicyAuthorization:
-      description: Authorization request for A1 policy requests
-      properties:
-        input:
-          $ref: '#/components/schemas/input'
-      required:
-        - input
-      type: object
     NearRtRicId:
       description: Identity of the policy
       type: string
@@ -1241,13 +1192,6 @@ components:
         - eventType
         - ricId
       type: object
-    Link:
-      properties:
-        templated:
-          type: boolean
-        href:
-          type: string
-      type: object
     ProblemDetails:
       description: >-
         A problem detail to carry details in an HTTP response according to RFC
@@ -1333,7 +1277,7 @@ components:
           schema:
             $ref: '#/components/schemas/ProblemDetails'
     '429':
-      description: Too Many Request
+      description: Too Many Requests
       content:
         application/problem+json:
           schema: