unique-example-mime-type
Overview
This rule belongs to the swagger-v2-standards-validation
ruleset and states that:
Mime type keys are patterned fields that must have unique values within the Example Object. The keys represent the mime type for each example.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Duplicate mime type entry found in Example Object. |
Code | SWAGGER20STANDARDS_V200 |
Type | Validation |
Rule System | Semantic |
Broad Category | Response Examples |
Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
Tags | swagger2 swagger standards semantic validation examples mime types mime |
Suggested Fixes
- Remove duplicate mime type entries from the Example Object.
- Mime type key value is compared in a case-sensitive manner.