From 993fa0bea66831a3ecdf0dd2e3efcfb3c03a7a3b Mon Sep 17 00:00:00 2001 From: sourabh_sourabh Date: Fri, 30 May 2025 14:57:32 +0100 Subject: [PATCH] Retain: allow flexible object for `value` field in SubjobWriteRequest Reasons for retaining `additionalProperties: true`: - Supports dynamic payloads as object. (e.g., add, replace, action) - Rely on flexible schemas - Avoids validation issues in polymorphic data use cases Issue-ID: CPS-2832 Change-Id: I8e8f987756f8c36a8937338d998da1492230256c Signed-off-by: sourabh_sourabh --- docs/api/swagger/dmi/openapi-datajob.yml | 29 +++-------------------------- 1 file changed, 3 insertions(+), 26 deletions(-) diff --git a/docs/api/swagger/dmi/openapi-datajob.yml b/docs/api/swagger/dmi/openapi-datajob.yml index 62b32d537c..d1ec7bc903 100644 --- a/docs/api/swagger/dmi/openapi-datajob.yml +++ b/docs/api/swagger/dmi/openapi-datajob.yml @@ -20,7 +20,7 @@ openapi: 3.0.3 info: title: NCMP Data Subjob API description: Support datajobs through one or more subjob for each DMI and Data Producer Identifier combination - version: 1.7.0 + version: "1.7.0" servers: - url: /dmi tags: @@ -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: @@ -330,4 +307,4 @@ components: example: status: 501 message: Not Implemented - details: Method Not Implemented + details: Method Not Implemented \ No newline at end of file -- 2.16.6