Skip to content

Latest commit

 

History

History
144 lines (106 loc) · 9.75 KB

built-in-rules.md

File metadata and controls

144 lines (106 loc) · 9.75 KB
slug
/docs/cli/rules/built-in-rules

Built-in rules

The built-in rules are the ones we use ourselves and think apply to the majority of APIs. Some have some additional configuration, but otherwise all you need to do is decide whether each rule should error, warn or be off.

All the built-in rules are listed here, roughly grouped by the OpenAPI object they apply to. The Special rules group contains rules that may apply to multiple objects or to the entire OpenAPI document.

{% admonition type="info" %} Build configurable rules if the rule you need isn't listed. {% /admonition %}

Rules for each API description format

Redocly CLI can lint multiple API description formats:

Visit each page for details of what the rule does, additional configuration options, and examples of it in use.

OpenAPI rules

The rules list is split into sections.

Special rules

Info

Operations

Parameters

Paths

Requests, Responses, and Schemas

Servers

Tags

AsyncAPI rules

Use the rules in this section for AsyncAPI-specific linting. Other rules such as the spec and info.* rules also apply to AsyncAPI.

Arazzo rules

Within the Arazzo family of rules, there are rules for the main Arazzo specification format, and some additional rules for extensions supported by Spot, the Redocly testing utility.

Arazzo

Spot [ deprecated ]

The below rules are being migrated to Spot:

Resources