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
The RHOAS ruleset extends the Spectral built-in "oas" ruleset (except `operation-tags`, `openapi-tags`). You can see the full list of rules from that ruleset [here](https://meta.stoplight.io/docs/spectral/docs/reference/openapi-rules.md)
@@ -86,12 +92,11 @@ info:
86
92
87
93
### rhoas-path-regexp
88
94
89
-
All paths must match the specified regular expression: `\/api\/([a-z_]*){1,}(\/v[0-9]*(alpha|beta)?)(\/{?[a-z_]*}?){0,}$`.
95
+
All paths must match the specified regular expression: `\/api\/v.*\/.*$`.
90
96
91
97
- The first segment must be `/api`
92
-
- The second segment can only contain alphabetical characters and underscores "_"
93
-
- The third segment must specify the API version. This can be a major version such as `v1` or a channel-version such as `v1beta`, `v1alpha`.
94
-
- All following segments must follow `camel_case` and can only contain alphabetical characters.
98
+
- The second segment must specify the API version. This can be a major version such as `v1` or a channel-version such as `v1beta`, `v1alpha`.
99
+
- All following segments must follow `snake_case` and can only contain alphabetical characters.
95
100
96
101
**Recommended**: Yes
97
102
**Severity**: warning
@@ -102,7 +107,7 @@ The content type for all responses must be `application/json`.
102
107
103
108
**Recommended**: Yes
104
109
105
-
**Severity**: error
110
+
**Severity**: warning
106
111
107
112
### rhoas-error-response
108
113
@@ -132,16 +137,16 @@ properties:
132
137
133
138
**Severity**: error
134
139
135
-
### rhoas-schema-name-camel-case
140
+
### rhoas-schema-name-pascal-case
136
141
137
-
All JSON schema objects defined in `components.schemas` must follow `CamelCase`.
142
+
All JSON schema objects defined in `components.schemas` must follow `PascalCase`.
138
143
139
144
**Recommended**: Yes
140
145
141
146
**Severity**: warning
142
147
### rhoas-schema-properties-snake-case
143
148
144
-
All JSON schema properties defined must follow `camel_case`.
149
+
All JSON schema properties defined must follow `snake_case`.
0 commit comments