Class AnnotationsAggregator
java.lang.Object
io.micronaut.jsonschema.generator.aggregator.AnnotationsAggregator
An aggregator for adding annotation information from json schema.
- Since:
- 1.3
- Author:
- Elif Kurtay
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<io.micronaut.sourcegen.model.AnnotationDef>
getAnnotations
(Schema schema, io.micronaut.sourcegen.model.TypeDef propertyType, boolean required) static io.micronaut.sourcegen.model.AnnotationDef
getJsonPropertyAnn
(String propertyName) static io.micronaut.sourcegen.model.AnnotationDef
getJsonSubTypesAnn
(Map<String, String> mapping, GeneratorContext context) static io.micronaut.sourcegen.model.AnnotationDef
getJsonTypeInfoAnn
(String propertyName)
-
Field Details
-
SERDEABLE_ANN
- See Also:
-
JSON_ANY_GETTER_ANN
- See Also:
-
JSON_ANY_SETTER_ANN
- See Also:
-
JSON_CREATOR_ANN
- See Also:
-
JSON_VALUE_ANN
- See Also:
-
NOT_NULL_ANN
- See Also:
-
-
Constructor Details
-
AnnotationsAggregator
public AnnotationsAggregator()
-
-
Method Details
-
getJsonTypeInfoAnn
-
getJsonPropertyAnn
-
getJsonSubTypesAnn
public static io.micronaut.sourcegen.model.AnnotationDef getJsonSubTypesAnn(Map<String, String> mapping, GeneratorContext context) -
getAnnotations
-