Isolating the usage of json-schema validator to drools-pdp 65/138565/1
authoradheli.tavares <adheli.tavares@est.tech>
Wed, 24 Jul 2024 13:52:55 +0000 (14:52 +0100)
committeradheli.tavares <adheli.tavares@est.tech>
Wed, 24 Jul 2024 13:53:10 +0000 (14:53 +0100)
commit4ec22933a69bcf5d2031d3c76fb32d1c50e0d7e1
treec2207853a1eff88fd328de58d43b96485cd70174
parent9133dabc8566458899d39a7223fcc9c43788febd
Isolating the usage of json-schema validator to drools-pdp

- only drools-pdp have this validation, so moving the class and
its dependencies to there to avoid loading dependencies where it's
not used.

Issue-ID: POLICY-5084
Change-Id: I782e926aac7576c34401c9fef3cfcd3a98350a7f
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
policy-utils/pom.xml
policy-utils/src/main/java/org/onap/policy/drools/exception/CoderRuntimeException.java [new file with mode: 0644]
policy-utils/src/main/java/org/onap/policy/drools/policies/DomainMaker.java
policy-utils/src/main/java/org/onap/policy/drools/policies/StandardValCoder.java [new file with mode: 0644]
policy-utils/src/test/java/org/onap/policy/drools/policies/StandardValCoderTest.java [new file with mode: 0644]
policy-utils/src/test/resources/coder/bad-regex.json [new file with mode: 0644]
policy-utils/src/test/resources/coder/missing-required.json [new file with mode: 0644]
policy-utils/src/test/resources/coder/test.schema.json [new file with mode: 0644]
policy-utils/src/test/resources/coder/valid.json [new file with mode: 0644]