Interface TypeAttributeOverrideV2
- All Superinterfaces:
StatefulConfig
- All Known Subinterfaces:
TypeAttributeOverride
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Entry point for customising the JSON Schema attributes being collected for a type in general, i.e. the part that may be referenced multiple times.
-
Method Summary
Modifier and TypeMethodDescriptionvoidoverrideTypeAttributes(tools.jackson.databind.node.ObjectNode collectedTypeAttributes, TypeScope scope, SchemaGenerationContext context) Add/remove attributes on the given JSON Schema node - this is specifically intended for attributes relating to the type in general.Methods inherited from interface com.github.victools.jsonschema.generator.StatefulConfig
resetAfterSchemaGenerationFinished
-
Method Details
-
overrideTypeAttributes
void overrideTypeAttributes(tools.jackson.databind.node.ObjectNode collectedTypeAttributes, TypeScope scope, SchemaGenerationContext context) Add/remove attributes on the given JSON Schema node - this is specifically intended for attributes relating to the type in general.
E.g.SchemaKeyword.TAG_FORMAT,SchemaKeyword.TAG_PATTERN,SchemaKeyword.TAG_REQUIRED- Parameters:
collectedTypeAttributes- node to modify (the part that may be referenced multiple times)scope- the type representation associated with the JSON Schema nodecontext- generation context
-