diff options
author | Tal Gitelman <tal.gitelman@att.com> | 2019-01-10 17:42:51 +0200 |
---|---|---|
committer | Ofir Sonsino <ofir.sonsino@intl.att.com> | 2019-01-21 15:38:53 +0000 |
commit | f88cee9d9e7e77dfdea743928199472dad7bde82 (patch) | |
tree | 698ce20a67f0ac72ed28d75037eb72300adb28d1 /pom.xml | |
parent | e10154ff631cf86a978899db8533e86bbc0e658e (diff) |
yaml and json validation maven plug in
Change-Id: Ie7058a22595fbe30617756668ea2b6fd8333e6bf
Issue-ID: SDC-1955
Signed-off-by: Tal Gitelman <tal.gitelman@att.com>
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 31 |
1 files changed, 31 insertions, 0 deletions
@@ -260,6 +260,37 @@ <artifactId>sonar-maven-plugin</artifactId> <version>3.0.2</version> </plugin> + + <plugin> + <groupId>com.github.sylvainlaurent.maven</groupId> + <artifactId>yaml-json-validator-maven-plugin</artifactId> + <version>1.0.1</version> + <executions> + <execution> + <id>validate</id> + <phase>validate</phase> + <goals> + <goal>validate</goal> + </goals> + <configuration> + <validationSets> + <validationSet> + <includes> + <include>src/main/resources/**/*.y*ml</include> + <include>src/test/resources/**/*.y*ml</include> + </includes> + </validationSet> + <validationSet> + <includes> + <include>src/main/resources/**/*.json</include> + <include>src/test/resources/**/*.json</include> + </includes> + </validationSet> + </validationSets> + </configuration> + </execution> + </executions> + </plugin> </plugins> </build> |