Skip to main content

non-empty-schema-enum-value

Overview

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

All items of an enumeration list must have a non-empty and non-null value. They represent the set of possible values of the enumeration and, therefore, cannot be empty or null.

PropertyValue
EnabledYes
Maximum SeverityError
MessageEmpty enumeration item found which is not allowed.
CodeOPENAPI3APIMATIC_L696
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Schemas
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting empty enum schema item entry

Suggested Fixes

  • Make sure that no enumeration item is null or empty.

For More Information