Skip to main content

predefined-default-success-response

Overview

This rule belongs to the apimatic-preliminary-validation ruleset and states that:

An endpoint must consist of a default success response definition.

PropertyValue
EnabledYes
Maximum SeverityError
MessageThe default success response of the endpoint is undefined.
CodeAPIMATICPRE_V306
TypeValidation
Rule SystemSemantic
Broad CategoryEndpoint Responses
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagspreliminary checks validation apimatic response endpoint

Suggested Fixes

  • Define the default response in the endpoint and set the type as "Void" if no response body is expected. If a response body is expected, set an appropriate type accordingly.
  • Valid success response status code range is 200-208.

For More Information