Skip to content

VIEW004: unknown-component-prop

Top-level props key is not in the component's schema

Code VIEW004
Name unknown-component-prop
Category View structure (VIEW)
Default severity warning
Enabled by default no
Fix available no
ign-lint equivalent none

Reports a top-level key of a component's props (or a propConfig entry props.<key>) that the component's schema does not declare, for component types whose schema forbids undeclared properties (additionalProperties: false, for example ia.container.flex, ia.chart.pie, ia.display.tree). Components whose schema accepts extra keys are never reported.

Perspective ignores properties the component does not know. A misspelled property (props.dirction) or one left over from another component type has no effect, and bindings on it run for nothing.

{"type": "ia.container.flex", "props": {"dirction": "column"}}

Use instead:

{"type": "ia.container.flex", "props": {"direction": "column"}}

Not in the default set: component schemas change between Ignition versions and modules, so a property added in a newer version would be reported on projects that target it.


Generated from the rule metadata by iglint generate-docs; iglint rule VIEW004 prints the same page in the terminal. Source: docs/rules/VIEW004.md.