<commit_before>
= Validation Support

The Dolphin Platform provides the optional `dolphin-platform-bean-validation` module that adds Java Bean Validation
(JSR 303) support to the model layer of the Dolphin Platform. To use the validation support the module must be added as
a dependency to your project:

[source,xml]
[subs="verbatim,attributes"]
----
<dependency>
    <groupId>com.canoo.dolphin-platform</groupId>
    <artifactId>dolphin-platform-bean-validation</artifactId>
    <version>{dolphin-platform-version}</version>
</dependency>
----

If you have defined a common module that contains the model descriptions and is shared between client and server you can
simply replace the `dolphin-platform-core` dependency with `dolphin-platform-bean-validation` since the validation module
adds a transitive dependency to the core module.

.Dependencies for the validation module<commit_msg>Link added<commit_after>
= Validation Support
The Dolphin Platform provides the optional `dolphin-platform-bean-validation` module that adds http://beanvalidation.org/[Java Bean Validation]
(JSR 303) support to the model layer of the Dolphin Platform. To use the validation support the module must be added as
a dependency to your project:

[source,xml]
[subs="verbatim,attributes"]
----
<dependency>
    <groupId>com.canoo.dolphin-platform</groupId>
    <artifactId>dolphin-platform-bean-validation</artifactId>
    <version>{dolphin-platform-version}</version>
</dependency>
----

If you have defined a common module that contains the model descriptions and is shared between client and server you can
simply replace the `dolphin-platform-core` dependency with `dolphin-platform-bean-validation` since the validation module
adds a transitive dependency to the core module.

.Dependencies for the validation module
{'fraction_non_alphanumeric': 0.08250276854928018, 'fraction_numerical': 0.0033222591362126247, 'mean_word_length': 5.167235494880546, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, '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': '1362249', 'n_tokens_mistral': 500, 'n_tokens_neox': 448, 'n_words': 190}