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: CONTRIBUTING.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -175,10 +175,17 @@ It only checks links within the local docs (it can't check links to other docs s
175
175
## Built-in rules changes
176
176
177
177
After adding a new rule, make sure it is added to the `minimal`, `recommended`, `recommended-strict` (the same as the previous but with warnings turned into error), `spec`, and `all` rulesets with appropriate severity levels.
178
-
The defaults are `off` for `minimal` and `recommended` and `error` for `all`.
178
+
The defaults are `off`or `warn`for `minimal` and `recommended` and `error` for `all`.
179
179
Also add the rule to the built-in rules list in [the config types tree](./packages/core/src/types/redocly-yaml.ts).
180
180
181
+
If the rule reflects a specification requirement, prefix it with `spec-` and add it to the [spec ruleset](./packages/core/src/rules/oas3/spec-ruleset.ts).
182
+
181
183
Separately, open a merge request with the corresponding documentation changes.
184
+
To make changes to documentation:
185
+
186
+
1. Create a new page for the rule in the `docs/@v2` folder.
187
+
2. Add the link to the rule page to the [built-in rules list](docs/@v2/rules/built-in-rules.md) and the [sidebar](docs/@v2/sidebars.yaml).
188
+
3. Update the rulesets pages and [ruleset templates](docs/@v2/rules/ruleset-templates.md).
0 commit comments