Type

AddonWarning

@ng-forge/dynamic-forms

Reason an addon was dropped during validation.

Each variant carries its own context fields so log messages can be both actionable (registered kinds enumerated, fix suggestion present) and machine-readable (admin UIs surfacing per-error guidance).

Signature

type AddonWarning =
  | { type: 'unknown-field-type'; fieldKey: string; fieldType: string }
  | { type: 'field-type-no-addon-support'; fieldKey: string; fieldType: string }
  | { type: 'unknown-slot'; fieldKey: string; fieldType: string; slot: string; allowedSlots: readonly string[] }
  | { type: 'unknown-kind'; fieldKey: string; kind: string; registeredKinds: readonly string[] }
  | { type: 'kind-not-allowed'; fieldKey: string; fieldType: string; kind: string; allowedKinds: readonly string[] }
  | { type: 'shape-violation'; fieldKey: string; kind: string; reason: string }
  | { type: 'code-only-kind-in-json'; fieldKey: string; kind: string }
  | { type: 'code-only-action-in-json'; fieldKey: string; reason: string };