cisco nprod logo
  • Home
Cookie Preferences
Login
Assets list

Pages
Home
Go to page info-contact
Go to page info-description
Go to page openapi-tags
Go to page operation-default-response
Go to page operation-description
Go to page operation-operationId
Go to page operation-operationId-hyphen-case
Go to page operation-singular-tag
Go to page operation-tag-defined
Go to page operation-tags
Go to page tag-description
Go to page api-must-have-title
Go to page duplicated-entry-in-enum
Go to page standard-delete-status-codes
Go to page standard-get-status-codes
Go to page standard-post-status-codes
Go to page standard-put-status-codes
Go to page provide-examples
Go to page resource-use-lowercase

CISCO API Ruleset

1.0.x
(0 reviews)

provide-examples

general > provide-examples


Guidance / Message

Always include examples in requests and responses.

Examples

valid

responses:
  200:
    description: Ok!
    body:
      application/json:
        type: string
        example: Hello!

invalid

responses:
  200:
    description: Ok!
    body:
      application/json:
        type: string # no example here

Applies to Payload

Constraint

Type: Rego Validation

Reviews