Refactor OpenAPI schema: Enhance SubjobWriteRequest structure 28/140828/1
authorsourabh_sourabh <sourabh.sourabh@est.tech>
Tue, 29 Apr 2025 12:33:34 +0000 (13:33 +0100)
committersourabh_sourabh <sourabh.sourabh@est.tech>
Tue, 29 Apr 2025 12:33:34 +0000 (13:33 +0100)
Issue-ID: CPS-2774
Change-Id: I31985139035f2954dcf6cd8387a75abf49be16d9
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
dmi-service/openapi/openapi-datajob.yml

index d125a1a..d8aa2bb 100644 (file)
@@ -1,5 +1,5 @@
 #  ============LICENSE_START=======================================================
-#  Copyright (C) 2024 Nordix Foundation
+#  Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
 #  ================================================================================
 #  Licensed under the Apache License, Version 2.0 (the "License");
 #  you may not use this file except in compliance with the License.
@@ -274,33 +274,10 @@ components:
               value:
                 description: Value dependent on the op specified. Resource for an add. Object for a replace. ActionParameters for an action.
                 type: object
-                oneOf:
-                  - $ref: '#/components/schemas/Resource'
-                  - $ref: '#/components/schemas/ActionParameters'
-                  - $ref: '#/components/schemas/Object'
+                additionalProperties: true
     CmHandleProperties:
       description: Private properties of the cm handle for the given path
       type: object
-    Resource:
-      type: object
-      properties:
-        id:
-          description: Identifier of the resource object
-          example: resource-identifier
-          type: string
-        attributes:
-          description: Key value map representing the objects class attributes and values
-          type: object
-          additionalProperties:
-            example: 'userLabel: label11'
-            type: string
-    ActionParameters:
-      description: The input of the action in the form of key value pairs
-      type: object
-      additionalProperties:
-        type: string
-    Object:
-      type: object
     SubjobWriteResponse:
       type: object
       required: