Skip to content

Builder transformations🔗

Each builder transformation requires the use of one of the following selectors, explicitly and unambiguously stating on which builder(s) the transformation should apply.

by_object: string
by_name: string
by_variant: string
generated_from_disjunction: bool

Example:

- rename:
    by_object: RowPanel
    as: Row

add_factory🔗

AddFactory adds a builder factory to the selected builders. These factories are meant to be used to simplify the instantiation of builders for common use-cases.

Usage🔗

add_factory:
  factory: BuilderFactory

add_option🔗

AddOption adds a completely new option to the selected builders.

Usage🔗

add_option:
  option: Option

compose🔗

N/A

Usage🔗

compose:
  source_builder_name: string
  plugin_discriminator_field: string
  exclude_options: []string
  composition_map: map[string]string
  composed_builder_name: string
  preserve_original_builders: bool
  rename_options: map[string]string

debug🔗

Debug prints debugging information about a builder.

Usage🔗

debug: {}

duplicate🔗

Duplicate duplicates a builder. The name of the duplicated builder has to be specified and some options can be excluded.

Usage🔗

duplicate:
  as: string
  exclude_options: []string

initialize🔗

N/A

Usage🔗

initialize:
  set: []yaml.Initialization

merge_into🔗

N/A

Usage🔗

merge_into:
  destination: string
  source: string
  under_path: string
  exclude_options: []string
  rename_options: map[string]string

omit🔗

Omit removes a builder.

Usage🔗

omit: {}

promote_options_to_constructor🔗

PromoteOptionsToConstructor promotes the given options as constructor parameters. Both arguments and assignments described by the options will be exposed in the builder's constructor.

Usage🔗

promote_options_to_constructor:
  options: []string

properties🔗

N/A

Usage🔗

properties:
  set: []ast.StructField

rename🔗

Rename renames a builder.

Usage🔗

rename:
  as: string