Skip to main content

non-empty-discriminator-property-name

Overview

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

The discriminator property name should be non-empty and non-null.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDiscriminator property name is missing.
CodeOPENAPI3APIMATIC_L800
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Discriminators
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting empty discriminator property name

Suggested Fixes

  • Provide a non-empty value for the discriminator property name that should also exist in the schema properties.

For More Information