From 37843cb3c1765bd5263e3c02f5b14ffa53041e1d Mon Sep 17 00:00:00 2001 From: dekstroza Date: Fri, 18 May 2018 14:42:24 +0100 Subject: json/yaml validation for models Introduced yaml-json-validator-maven-plugin a. Runs in validate phase b. For now only validate /import/tosca subfolders c. Validates both yml and json files Change-Id: I53513321c4378485dd821c251de5555050313911 Issue-ID: SDC-1343 Signed-off-by: dekstroza --- catalog-be/pom.xml | 61 ++++++++++++++-------- .../src/test/resources/config/mysql-type.yml | 2 +- 2 files changed, 40 insertions(+), 23 deletions(-) (limited to 'catalog-be') diff --git a/catalog-be/pom.xml b/catalog-be/pom.xml index 068eecf53b..f0113df130 100644 --- a/catalog-be/pom.xml +++ b/catalog-be/pom.xml @@ -1,5 +1,5 @@ + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 catalog-be @@ -145,7 +145,6 @@ ${jersey-bom.version} compile - org.glassfish.jersey.ext jersey-spring4 @@ -498,9 +497,6 @@ - - - com.att.aft dme2 @@ -529,12 +525,10 @@ test - org.glassfish.jersey.core jersey-client ${jersey-bom.version} - @@ -594,13 +588,13 @@ cucumber-junit test - - - org.jmockit - jmockit - ${jmockit.version} - test - + + + org.jmockit + jmockit + ${jmockit.version} + test + com.google.code.bean-matchers @@ -608,9 +602,8 @@ 0.11 test - - + ${project.artifactId}-${project.version} @@ -643,6 +636,35 @@ true + + com.github.sylvainlaurent.maven + yaml-json-validator-maven-plugin + + + validate + validate + + validate + + + + + + src/main/resources/**/*.y*ml + src/test/resources/**/*.y*ml + + + + + src/main/resources/**/*.json + src/test/resources/**/*.json + + + + + + + com.jcabi jcabi-maven-plugin @@ -655,7 +677,6 @@ - org.apache.maven.plugins maven-assembly-plugin @@ -742,8 +763,6 @@ - - org.apache.maven.plugins maven-resources-plugin @@ -1003,7 +1022,5 @@ - - - + \ No newline at end of file diff --git a/catalog-be/src/test/resources/config/mysql-type.yml b/catalog-be/src/test/resources/config/mysql-type.yml index f1985a0bdc..c275537094 100644 --- a/catalog-be/src/test/resources/config/mysql-type.yml +++ b/catalog-be/src/test/resources/config/mysql-type.yml @@ -40,7 +40,7 @@ node_types: db_password: type: string default: pass - description: The password associated with the user account provided in the ‘db_user’ property. + description: The password associated with the user account provided in the db_user property. bind_address: type: boolean default: true -- cgit 1.2.3-korg