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
* fix: fixes the regex pattern that APIs are using to pass more
* docs: updated docs surrounding the regex pattern for endpoint definitions
* refactor: change the severity of rules which fail
* test: testing the pipeline
* fix: update the regex to suit new format
* docs: doc updates reflecting the new regex
Copy file name to clipboardExpand all lines: spectral/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,10 +92,10 @@ info:
92
92
93
93
### rhoas-path-regexp
94
94
95
-
All paths must match the specified regular expression: `\/api\/.*\/v.*\/?.*$`.
95
+
All paths must match the specified regular expression: `\/api\/([a-z_]*){1,}(\/v[0-9]*(alpha|beta)?)(\/{?[a-z_]*}?){0,}$`.
96
96
97
97
- The first segment must be `/api`
98
-
- The second segement denotes the service name (e.g. `/api/kafkas_mgmt`)
98
+
- The second segement denotes the service name (e.g. `/api/kafkas_mgmt`) and may only be `snake_case`.
99
99
- 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`.
100
100
- All following segments must follow `snake_case` and can only contain alphabetical characters along and underscores but can be repeated (e.g. `/api/kafkas_mgmt/v1/kafkas/{id}/useful_metrics`)
0 commit comments