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.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Discriminator property name is missing. |
Code | OPENAPI3APIMATIC_L800 |
Type | Linting |
Rule System | Semantic |
Broad Category | OpenAPI Discriminators |
Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
Tags | openapi3 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.