Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDuplicate mime type entry found in Example Object.
CodeSWAGGER20STANDARDS_V200
TypeValidation
Rule SystemSemantic
Broad CategoryResponse Examples
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsswagger2 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.

For More Information