<commit_before>json-schema-validator
=====================

<a href="https://raw.githubusercontent.com/groupon/json-schema-validator/master/LICENSE">
    <img src="https://img.shields.io/hexpm/l/plug.svg"
         alt="License: Apache 2">
</a>
<a href="http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.groupon.maven.plugin.json%22%20a%3A%22json-schema-validator%22">
    <img src="https://img.shields.io/maven-central/v/com.groupon.maven.plugin.json/json-schema-validator.svg"
         alt="Maven Artifact">
</a>

Maven plugin to validate json files against a json schema. Uses https://github.com/fge/json-schema-validator library under the covers.

Usage
-----

Determine the latest version of the validator in [Maven Central](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.groupon.maven.plugin.json%22%20a%3A%22json-schema-validator%22).

Add the plugin to your pom either in the __plugins__ or __pluginManagement__ block:

```xml
<plugin>
    <groupId>com.groupon.maven.plugin.json</groupId><commit_msg>Add travis shield to README<commit_after>json-schema-validator
=====================

<a href="https://raw.githubusercontent.com/groupon/json-schema-validator/master/LICENSE">
    <img src="https://img.shields.io/hexpm/l/plug.svg"
         alt="License: Apache 2">
</a>
<a href="https://travis-ci.org/groupon/json-schema-validator/">
    <img src="https://travis-ci.org/groupon/json-schema-validator.png"
         alt="Travis Build">
</a>
<a href="http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.groupon.maven.plugin.json%22%20a%3A%22json-schema-validator%22">
    <img src="https://img.shields.io/maven-central/v/com.groupon.maven.plugin.json/json-schema-validator.svg"
         alt="Maven Artifact">
</a>

Maven plugin to validate json files against a json schema. Uses https://github.com/fge/json-schema-validator library under the covers.

Usage
-----

Determine the latest version of the validator in [Maven Central](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.groupon.maven.plugin.json%22%20a%3A%22json-schema-validator%22).

Add the plugin to your pom either in the __plugins__ or __pluginManagement__ block:

```xml
<plugin>
    <groupId>com.groupon.maven.plugin.json</groupId>
{'fraction_non_alphanumeric': 0.1757548445245606, 'fraction_numerical': 0.029743127534925643, 'mean_word_length': 4.606060606060606, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 0, '>': 24, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7330636', 'n_tokens_mistral': 834, 'n_tokens_neox': 783, 'n_words': 128}