From 53375821fa2d156785a92ef57ef7948389260cc1 Mon Sep 17 00:00:00 2001 From: ToineSiebelink Date: Mon, 29 Jul 2024 17:45:52 +0100 Subject: Refactor OpenAPI Policy Executor - replace payload with request(s) - replace payloadType with schema (one schema for each operation) - include conflict error response in OpenAPI - introduce 4 schemas in NCMP (doc module) for create, update, patch & delete - udpate stub & test to follow new API and use one schema for testign purposes Issue-ID: CPS-2335 Change-Id: Ifc40062ae83429a9ffba350ec3bcc28cb7147293 Signed-off-by: ToineSiebelink --- .../policy-executor/ncmp-delete-schema-1.0.0.json | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 docs/schemas/policy-executor/ncmp-delete-schema-1.0.0.json (limited to 'docs/schemas/policy-executor/ncmp-delete-schema-1.0.0.json') diff --git a/docs/schemas/policy-executor/ncmp-delete-schema-1.0.0.json b/docs/schemas/policy-executor/ncmp-delete-schema-1.0.0.json new file mode 100644 index 0000000000..5df0325e39 --- /dev/null +++ b/docs/schemas/policy-executor/ncmp-delete-schema-1.0.0.json @@ -0,0 +1,25 @@ +{ + "$schema": "https://json-schema.org/draft/2019-09/schema", + "$id": "urn:cps:org.onap.cps.ncmp.policy-executor:ncmp-delete-schema:1.0.0", + "$ref": "#/definitions/NcmpDelete", + "definitions": { + "NcmpDelete": { + "type": "object", + "additionalProperties": false, + "properties": { + "cmHandleId": { + "type": "string" + }, + "resourceIdentifier": { + "type": "string" + }, + "targetIdentifier": { + "type": "string" + } + }, + "required": [ + "targetIdentifier" + ] + } + } +} -- cgit 1.2.3-korg