Adding JSON Schema support in APEX-PDP 00/130100/3
authora.sreekumar <ajith.sreekumar@bell.ca>
Tue, 19 Jul 2022 10:49:57 +0000 (11:49 +0100)
committerRam Krishna Verma <ram_krishna.verma@bell.ca>
Mon, 1 Aug 2022 15:14:31 +0000 (15:14 +0000)
commitf3f82982bb09ba650e4eaa1214dae35dbab71d55
tree43ab3ccb3e8d73de43a3f6805432981f9272a92b
parentc6c3fed415006c2ea5c5af21fe9a53936fc8800b
Adding JSON Schema support in APEX-PDP

More details can be found here:
https://wiki.onap.org/display/DW/JSON+Schema+support+in+APEX-PDP

A separate review will be raised as part of POLICY-4292 with a reference
example on how to use the JSON Schema.

Change-Id: I903d48969c6c5a24c63b8465b2412ed0b75b9351
Issue-ID: POLICY-4291
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
(cherry picked from commit c354fba3fb87ebe21a7fbb2a15268ccc9d033fbd)
14 files changed:
packages/apex-pdp-package-full/pom.xml
plugins/plugins-context/plugins-context-schema/plugins-context-schema-json/pom.xml [new file with mode: 0644]
plugins/plugins-context/plugins-context-schema/plugins-context-schema-json/src/main/java/org/onap/policy/apex/plugins/context/schema/json/JsonSchemaHelper.java [new file with mode: 0644]
plugins/plugins-context/plugins-context-schema/plugins-context-schema-json/src/main/java/org/onap/policy/apex/plugins/context/schema/json/JsonSchemaHelperParameters.java [new file with mode: 0644]
plugins/plugins-context/plugins-context-schema/plugins-context-schema-json/src/test/java/org/onap/policy/apex/plugins/context/schema/json/CommonTestData.java [new file with mode: 0644]
plugins/plugins-context/plugins-context-schema/plugins-context-schema-json/src/test/java/org/onap/policy/apex/plugins/context/schema/json/JsonSchemaHelperMarshalTest.java [new file with mode: 0644]
plugins/plugins-context/plugins-context-schema/plugins-context-schema-json/src/test/java/org/onap/policy/apex/plugins/context/schema/json/JsonSchemaHelperUnmarshalTest.java [new file with mode: 0644]
plugins/plugins-context/plugins-context-schema/plugins-context-schema-json/src/test/resources/data/commonHeader.json [new file with mode: 0644]
plugins/plugins-context/plugins-context-schema/plugins-context-schema-json/src/test/resources/data/measurementGroups.json [new file with mode: 0644]
plugins/plugins-context/plugins-context-schema/plugins-context-schema-json/src/test/resources/schema/commonHeaderTypeWithOptional.json [new file with mode: 0644]
plugins/plugins-context/plugins-context-schema/plugins-context-schema-json/src/test/resources/schema/commonHeaderType_draft04.json [new file with mode: 0644]
plugins/plugins-context/plugins-context-schema/plugins-context-schema-json/src/test/resources/schema/commonHeaderType_draft07.json [new file with mode: 0644]
plugins/plugins-context/plugins-context-schema/plugins-context-schema-json/src/test/resources/schema/measurementGroupsType.json [new file with mode: 0644]
plugins/plugins-context/plugins-context-schema/pom.xml