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

  • Type Parameters:
    M - type of the reference/context to modify
    All Known Subinterfaces:
    InstanceAttributeOverride<M>

    public interface InstanceAttributeOverrideV2<M extends MemberScope<?,​?>>
    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