Anypoint Best Practices

(14 reviews)

responses-must-have-descriptions

general > responses-must-have-descriptions


Guidance / Message

Response '{{core.name}}' should have a description.

Examples

valid

#%RAML 1.0
title: Example
events/:
  get:
    responses:
      200:
        description: OK
        application/json:
          type: string
          example: Hello!

invalid

#%RAML 1.0
title: Example
events/:
  get:
    responses:
      200: # no description
        body:
          application/json:
            type: string
            example: Hello!

Applies to Response

Constraint

Type: Declarative Validation

Reviews

TypeRuleset
OrganizationMuleSoft
Published by
MuleSoft Organization
Published onDec 11, 2023
Asset overview

Asset versions for 1.6.x

Asset versions
VersionActions
1.6.1
1.6.0

Tags