public class BeanValidationScanner extends Object
| Constructor and Description |
|---|
BeanValidationScanner() |
| Modifier and Type | Method and Description |
|---|---|
static void |
applyConstraints(org.jboss.jandex.AnnotationTarget target,
org.eclipse.microprofile.openapi.models.media.Schema schema,
org.eclipse.microprofile.openapi.models.media.Schema parentSchema,
String propertyKey)
Determine if any Java Bean Validation constraint annotations are present
on the
AnnotationTarget that are applicable to the schema. |
public static void applyConstraints(org.jboss.jandex.AnnotationTarget target,
org.eclipse.microprofile.openapi.models.media.Schema schema,
org.eclipse.microprofile.openapi.models.media.Schema parentSchema,
String propertyKey)
AnnotationTarget that are applicable to the schema. This
method will apply the constraints to the schema only if no value has
previously been set.
If the schema's type attribute has not been previously set or the schema
contains a reference, this method will not apply any changes to the
schema.
Each of the constraints (defined in javax.validation.constraints) will
apply to the schema based on the schema's type.target - the object from which to retrieve the constraint annotationsschema - the schema to which the constraints will be appliedparentSchema - the schema which contains the schema parameter as a propertypropertyKey - the name of the property in parentSchema that refers to the
schemaCopyright © 2018–2019. All rights reserved.