Class EditJsonSchema.Builder

  • Enclosing class:
    EditJsonSchema

    public static final class EditJsonSchema.Builder
    extends java.lang.Object
    • Method Detail

      • type

        public EditJsonSchema.Builder type​(java.util.Optional<java.lang.Object> type)

        The JSON schema type of the field. Can be:

        • A string: "array" or "object"
        • A nullable tuple array: ["string", "null"], ["number", "null"], ["integer", "null"], ["boolean", "null"]
        • Omitted for enum fields (use enum property instead)
      • description

        public EditJsonSchema.Builder description​(java.util.Optional<java.lang.String> description)

        Description of the field

      • extendEditFieldType

        public EditJsonSchema.Builder extendEditFieldType​(java.util.Optional<EditJsonSchemaExtendEditFieldType> extendEditFieldType)

        The PDF field type to edit. Allowed values depend on the schema type:

        • ["string", "null"]text, signature
        • ["number", "null"]text
        • ["integer", "null"]text
        • ["boolean", "null"]checkbox, radio
        • "array"text, table
        • "object"signature
        • enum fields (no type) → radio, optionList, dropdown
      • extendEditPageIndex

        public EditJsonSchema.Builder extendEditPageIndex​(java.util.Optional<java.lang.Integer> extendEditPageIndex)

        Zero-based page index where the field should be placed

      • extendEditPageIndex

        public EditJsonSchema.Builder extendEditPageIndex​(java.lang.Integer extendEditPageIndex)
      • extendEditColumnWidth

        public EditJsonSchema.Builder extendEditColumnWidth​(java.util.Optional<java.lang.Double> extendEditColumnWidth)

        Width of the column as a percentage (for table fields)

      • extendEditColumnWidth

        public EditJsonSchema.Builder extendEditColumnWidth​(java.lang.Double extendEditColumnWidth)
      • extendEditValue

        public EditJsonSchema.Builder extendEditValue​(java.util.Optional<java.lang.Object> extendEditValue)

        The value to fill into this field. Can be any type. This will force the value at this field to be filled with this value. If a value is not provided, we will attempt to generate or infer one based on the instructions.

      • extendEditRowHeights

        public EditJsonSchema.Builder extendEditRowHeights​(java.util.Optional<java.util.List<java.lang.Double>> extendEditRowHeights)

        Array of row height percentages for array/table fields (e.g. [0.25, 0.50, 0.25])

      • extendEditRowHeights

        public EditJsonSchema.Builder extendEditRowHeights​(java.util.List<java.lang.Double> extendEditRowHeights)
      • properties

        public EditJsonSchema.Builder properties​(java.util.Optional<java.util.Map<java.lang.String,​EditJsonSchema>> properties)

        Nested properties for object types. Each property follows the EditJSONSchema structure.

      • enum_

        public EditJsonSchema.Builder enum_​(java.util.Optional<java.util.List<java.lang.String>> enum_)

        Allowed values for enum/dropdown/radio fields

      • maxItems

        public EditJsonSchema.Builder maxItems​(java.util.Optional<java.lang.Integer> maxItems)

        Maximum number of rows for array/table fields

      • required

        public EditJsonSchema.Builder required​(java.util.Optional<java.util.List<java.lang.String>> required)

        List of required property names (for object types)

      • additionalProperties

        public EditJsonSchema.Builder additionalProperties​(java.util.Optional<java.lang.Boolean> additionalProperties)

        Whether additional properties are allowed (for object types)

      • additionalProperties

        public EditJsonSchema.Builder additionalProperties​(java.lang.Boolean additionalProperties)