Skip to content

Commit 30587d1

Browse files
address the comments
1 parent a05a449 commit 30587d1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tools/spectral/CONTRIBUTING.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,17 @@ When designing a rule, it is important to decide at which component level the ru
176176
```
177177
3. In the rule implementation, use the `collectException(object, ruleName, jsonPath)` helper function to collect exceptions. The object here is what you get when you traverse the path defined by the `jsonPath`.
178178

179+
Exceptions can be defined at different levels, such as:
180+
- Resource level
181+
- Path level
182+
- Operation (HTTP method) level
183+
- Parameter level
184+
- Response level
185+
- Request body level
186+
- Schema level
187+
- Schema property level
188+
- Tag level
189+
179190
##### Rule Design
180191
Once you have decided on the component for which you want to collect exemptions, you can proceed with the rule design.
181192

0 commit comments

Comments
 (0)