Last updated

operation-summary

Enforce that every operation has a summary.

OASCompatibility
2.0
3.0
3.1

API design principles

Operation summaries are used to generate API docs. Redocly uses the summary as the header for the operation, as well as the sidebar navigation text.

Configuration

OptionTypeDescription
severitystringPossible values: off, warn, error. Default error (in recommended configuration).

An example configuration:

rules:
  operation-summary: error

Examples

Given this configuration:

rules:
  operation-summary: error

Example of incorrect operation:

post:
  tags:
    - Customers
  operationId: # ...

Example of correct operation:

post:
  summary: Create a customer
  tags:
    - Customers
  operationId: # ...

Resources