You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/built-in-rules.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Details of all the rules available "out of the box" with Redocly CLI are listed
22
22
-[no-unresolved-refs](./oas/no-unresolved-refs.md): Every `$ref` must exist
23
23
-[no-unused-components](./oas/no-unused-components.md): All components must be used
24
24
-[security-defined](./oas/security-defined.md): Security rules must be defined, either globally or per-operation
25
-
-[spec](./spec.md): Conform to the declared OpenAPI specification version
25
+
-[struct](./oas/struct.md): Conform to the declared OpenAPI specification version
26
26
-[spec-components-invalid-map-name](./oas/spec-components-invalid-map-name.md): Use only alphanumeric and basic punctuation as key names in the components section
27
27
-[spec-strict-refs](./oas/spec-strict-refs.md) Restricts the usage of the `$ref` keyword.
Ensures that your API document conforms to the [OpenAPI specification](https://spec.openapis.org/oas/v3.1.0.html).
8
+
9
+
| OAS | Compatibility |
10
+
| --- | ------------- |
11
+
| 2.0 | ✅ |
12
+
| 3.0 | ✅ |
13
+
| 3.1 | ✅ |
14
+
15
+
The default setting for this rule (in the `recommended` and `minimal` configuration) is `error`.
16
+
17
+
This is an essential rule that should not be turned off except in rare and special cases.
18
+
19
+
## API design principles
20
+
21
+
It's important to conform to the specification so that tools work with your API document. Doing so makes writing and maintenance of API descriptions easier.
Copy file name to clipboardExpand all lines: docs/rules/spec.md
+5-63Lines changed: 5 additions & 63 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,70 +2,12 @@
2
2
slug: /docs/cli/rules/spec
3
3
---
4
4
5
-
# spec
5
+
# Recommended ruleset
6
6
7
-
Ensures that your API document conforms to the [OpenAPI specification](https://spec.openapis.org/oas/v3.1.0.html).
7
+
These are the rules in the `spec` set, grouped by their severity.
8
8
9
-
| OAS | Compatibility |
10
-
| --- | ------------- |
11
-
| 2.0 | ✅ |
12
-
| 3.0 | ✅ |
13
-
| 3.1 | ✅ |
9
+
## Arazzo1Rules
14
10
15
-
The default setting for this rule (in the `recommended` and `minimal` configuration) is `error`.
11
+
Errors:
16
12
17
-
This is an essential rule that should not be turned off except in rare and special cases.
18
-
19
-
## API design principles
20
-
21
-
It's important to conform to the specification so that tools work with your API document. Doing so makes writing and maintenance of API descriptions easier.
0 commit comments