Skip to main content

valid-example-value

Overview

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

The sample value provided must be valid according to the type definition of the component to which it belongs.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageSample value is invalid.
CodeAPIMATICDOCS_L104
TypeLinting
Rule SystemSemantic
Broad CategoryExamples
Products ImpactedDeveloper Experience Portal
Tagsportal generation portal docs linting apimatic sample value example

Suggested Fixes

  • Check that no required properties are missing in the sample value.
  • Check that types of all properties match those specified in the type definition.

For More Information