Class ValidationInfoAggregator
java.lang.Object
io.micronaut.jsonschema.visitor.aggregator.ValidationInfoAggregator
- All Implemented Interfaces:
SchemaInfoAggregator
An aggregator for adding information from the validation annotations.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddInfo
(io.micronaut.inject.ast.TypedElement element, Schema schema, io.micronaut.inject.visitor.VisitorContext visitorContext, JsonSchemaContext context) A method that is called for adding JSON schema info.
-
Field Details
-
UNSUPPORTED_ANNOTATIONS
-
-
Constructor Details
-
ValidationInfoAggregator
public ValidationInfoAggregator()
-
-
Method Details
-
addInfo
public Schema addInfo(io.micronaut.inject.ast.TypedElement element, Schema schema, io.micronaut.inject.visitor.VisitorContext visitorContext, JsonSchemaContext context) Description copied from interface:SchemaInfoAggregator
A method that is called for adding JSON schema info.- Specified by:
addInfo
in interfaceSchemaInfoAggregator
- Parameters:
element
- The typeschema
- The current schemavisitorContext
- The visitor contextcontext
- The JSON schema visitor configuration- Returns:
- The new or modified schema
-