Interface InstanceAttributeOverride<M extends MemberScope<?,?>>
- Type Parameters:
M- type of the reference/context to modify
- All Superinterfaces:
InstanceAttributeOverrideV2<M>,StatefulConfig
@Deprecated
public interface InstanceAttributeOverride<M extends MemberScope<?,?>>
extends InstanceAttributeOverrideV2<M>
Deprecated.
Entry point for customising a JSON Schema being generated for a certain kind of reference/context.
-
Method Summary
Modifier and TypeMethodDescriptionvoidoverrideInstanceAttributes(tools.jackson.databind.node.ObjectNode jsonSchemaAttributesNode, M member) Deprecated.Add/remove attributes on the given JSON Schema node - this is specifically intended for attributes relating to a particular instance.default voidoverrideInstanceAttributes(tools.jackson.databind.node.ObjectNode jsonSchemaAttributesNode, M member, SchemaGenerationContext context) Deprecated.Add/remove attributes on the given JSON Schema node - this is specifically intended for attributes relating to a particular instance.Methods inherited from interface com.github.victools.jsonschema.generator.StatefulConfig
resetAfterSchemaGenerationFinished
-
Method Details
-
overrideInstanceAttributes
void overrideInstanceAttributes(tools.jackson.databind.node.ObjectNode jsonSchemaAttributesNode, M member) Deprecated.Add/remove attributes on the given JSON Schema node - this is specifically intended for attributes relating to a particular instance.
E.g.SchemaKeyword.TAG_DESCRIPTION,SchemaKeyword.TAG_MINIMUM,SchemaKeyword.TAG_MAXIMUM_EXCLUSIVE- Parameters:
jsonSchemaAttributesNode- node to modifymember- reference/context to which the collected attributes in the JSON Schema node are referring
-
overrideInstanceAttributes
default void overrideInstanceAttributes(tools.jackson.databind.node.ObjectNode jsonSchemaAttributesNode, M member, SchemaGenerationContext context) Deprecated.Description copied from interface:InstanceAttributeOverrideV2Add/remove attributes on the given JSON Schema node - this is specifically intended for attributes relating to a particular instance.
E.g.SchemaKeyword.TAG_DESCRIPTION,SchemaKeyword.TAG_MINIMUM,SchemaKeyword.TAG_MAXIMUM_EXCLUSIVE- Specified by:
overrideInstanceAttributesin interfaceInstanceAttributeOverrideV2<M extends MemberScope<?,?>> - Parameters:
jsonSchemaAttributesNode- node to modifymember- reference/context to which the collected attributes in the JSON Schema node are referringcontext- generation context
-
InstanceAttributeOverrideV2instead