From: sourabh_sourabh Date: Tue, 29 Apr 2025 12:33:34 +0000 (+0100) Subject: Refactor OpenAPI schema: Enhance SubjobWriteRequest structure X-Git-Tag: 1.7.0~5 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=90ee768b3df6b231e848663c666211a87bfee4f8;p=cps%2Fncmp-dmi-plugin.git Refactor OpenAPI schema: Enhance SubjobWriteRequest structure Issue-ID: CPS-2774 Change-Id: I31985139035f2954dcf6cd8387a75abf49be16d9 Signed-off-by: sourabh_sourabh --- diff --git a/dmi-service/openapi/openapi-datajob.yml b/dmi-service/openapi/openapi-datajob.yml index d125a1a1..d8aa2bb3 100644 --- a/dmi-service/openapi/openapi-datajob.yml +++ b/dmi-service/openapi/openapi-datajob.yml @@ -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: