Interface InstanceAttributeOverrideV2<M extends MemberScope<?,​?>>

  • Type Parameters:
    M - type of the reference/context to modify
    All Superinterfaces:
    StatefulConfig
    All Known Subinterfaces:
    InstanceAttributeOverride<M>
    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 InstanceAttributeOverrideV2<M extends MemberScope<?,​?>>
    extends StatefulConfig
    Entry point for customising the JSON Schema attributes being collected for a property.
    • Method Detail

      • overrideInstanceAttributes

        void overrideInstanceAttributes​(com.fasterxml.jackson.databind.node.ObjectNode collectedMemberAttributes,
                                        M member,
                                        SchemaGenerationContext context)
        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:
        collectedMemberAttributes - node to modify
        member - reference/context to which the collected attributes in the JSON Schema node are referring
        context - generation context