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.
@FunctionalInterface public interface TypeAttributeOverrideV2 extends StatefulConfig
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidoverrideTypeAttributes(com.fasterxml.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 Detail
-
overrideTypeAttributes
void overrideTypeAttributes(com.fasterxml.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
-
-