Skip to main content

model-atleast-one-field

Overview

This rule belongs to the apimatic-codegen-validation ruleset and states that:

A structure/exception model must consist of at least one field/property declaration.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageModel has no fields which is not allowed.
CodeAPIMATICCODEGEN_V134
TypeValidation
Rule SystemSemantic
Broad CategoryGlobal Types/Models
Products ImpactedCode Generation, Developer Experience Portal
Tagsapimatic code generation codegen sdks portal docs validation apimatic field property type custom type model complex model

Suggested Fixes

  • Add one or more fields for the model under consideration.
  • Remove the model if it has no references in the API specification.

For More Information