type-combinator-cases-meta-count-must-match
Overview
This rule belongs to the apimatic-post-processing-validation
ruleset and states that:
The metadata provided for the various cases of the type combinators (anyOf, oneOf or not) must match the total number of cases present. If that is not the case, the invalid metadata information will be automatically removed.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Warning |
Message | Mismatch found between number of type combinator cases and the provided metadata for those cases, therefore, the metadata information has been removed. |
Code | APIMATICPOSTPROCESS_V354 |
Type | Validation |
Rule System | Semantic |
Broad Category | Types |
Products Impacted | Code Generation, Developer Experience Portal, API Transformer |
Tags | apimatic postprocessing validation metadata anyOf oneOf not type combinator type combinator cases type cases |
Suggested Fixes
- Make sure that if you have specified any metadata for anyOf/oneOf/not cases, the metadata is specified for each of those cases so that the count of the metadata list matches the count of cases present.
- Perhaps you forgot to specify metadata for a case?
- Make sure that the metadata information for all cases is valid i.e. any required information like name, description, etc. is not missing.