Skip to main content

supported-response-message-code

Overview

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

If multiple responses are disabled via import settings provided in the APIMatic Metadata file, only response definitions in Operation Object responseMessages belonging to status code ranges 200-208 and 400-599 will be imported. Those outside the supported range will be ignored automatically during import/transformations in APIMatic.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageProvided response status code is not supported in the current import configuration.
CodeSWAGGER1_V700
TypeValidation
Rule SystemSemantic
Broad CategoryResponse Messages
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsswagger1 swagger semantic validation http status code status code http response responses

Suggested Fixes

  • Enable import setting ImportMultipleResponses using the APIMatic Metadata file.
  • Remove the response definition from the responseMessages list that uses the unsupported status code.

For More Information