Skip to main content

valid-mime-type

Overview

This rule belongs to the swagger-v2-syntax-validation ruleset and states that:

The mime type definitions should be in compliance with RFC6838.

PropertyValue
EnabledYes
Maximum SeverityError
MessageMime type is invalid.
CodeSWAGGER20SYNTAX_V100
TypeValidation
Rule SystemSyntax
Broad CategoryMiscellaneous
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsswagger2 swagger syntax validation mime mime types

Suggested Fixes

  • Ensure that the mime type defined is valid.
  • Ensure that the mime type does not contain any forbidden characters.

For More Information