non-empty-discriminator-mapping-key
Overview
This rule belongs to the apimatic-post-processing-validation
ruleset and states that:
Possible discriminator values provided as keys of the discriminator mapping information must be non-null and non-empty. If that is not the case, this entry will be treated as invalid and removed from the discriminator mapping definition.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Warning |
Message | Discriminator mapping key is null or empty, therefore, this invalid entry has been removed from the discriminator mapping definition. |
Code | APIMATICPOSTPROCESS_V494 |
Type | Validation |
Rule System | Semantic |
Broad Category | Global Types/Models |
Products Impacted | Code Generation, Developer Experience Portal, API Transformer |
Tags | apimatic postprocessing validation discriminator mapping discriminator value discriminator |
Suggested Fixes
- Make sure that the discriminator mapping keys are not null or empty.
- The keys represent possible values of the discriminator property in the data.