Adding JSON Schema support in APEX-PDP 50/129750/2
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:11:09 +0000 (15:11 +0000)
commit05039cdfb56cad08a1a6e25756c362cd9f4e3c65
tree9f2f3470116c1fb1b03807878527606df578d1c5
parent22b08361b04e3ee811cee509207c5140fd40e91c
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