UML Modeling Guide

Stereotype «ValidationGroup»

Stereotype «ValidationGroup»

The stereotype «ValidationGroup» is used to define validation groups. These groups allow validations to be organized and applied selectively in specific contexts.

A typical use case for validation groups is performing validations that are specific to certain API versions.


Stereotype «ValidationGroup»  
Applicable Elements Class  
Tagged Values    
Name Type Description
identifier String Identifier for the validation group. The identifier can have any arbitrary value. The only constraint is that it must be unique within the model.
openAPIValidationGroup Boolean In Java, multiple validation groups can be used in parallel. OpenAPI does not support this capability. Therefore, when validation groups are used, a specific validation group must be designated for OpenAPI.

During OpenAPI specification generation, only the general constraints and the constraints defined in the OpenAPI validation group are taken into account.

Only one validation group might have this tag set to true.


Generated by JEAF Generator