Skip to main content

no-undeclared-fields-in-example-value

Overview

This rule belongs to the apimatic-docs-linting ruleset and states that:

All undeclared fields from the component's example must be defined in the component's type definition. If any fields are extra, they should be removed from the example.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageThe example specified contains undeclared fields.
CodeAPIMATICDOCS_L106
TypeLinting
Rule SystemSemantic
Broad CategoryExamples
Products ImpactedDeveloper Experience Portal
Tagsportal generation portal docs linting apimatic example sample value

Suggested Fixes

  • Make sure that all properties that are shown in your example are also defined in the corresponding type definition of the component.

For More Information