fix: improve detection accuracy on no-server-example.com rule (#1270)

This commit is contained in:
Adam Altman
2023-09-22 08:05:03 -05:00
committed by GitHub
parent cfe66a79a9
commit eb82725463
34 changed files with 82 additions and 40 deletions

View File

@@ -11,7 +11,7 @@ Server variable with \`enum\` must be a non-empty array.
4 | version: 1.0
5 | servers:
| ^^^^^^^
6 | - url: https://example.com/user/{id}/place/{placeId}
6 | - url: https://redocly-example.com/user/{id}/place/{placeId}
7 | variables:
Error was generated by the no-server-variables-empty-enum rule.
@@ -25,7 +25,7 @@ Server variable define \`enum\` and \`default\`. \`enum\` must include default v
4 | version: 1.0
5 | servers:
| ^^^^^^^
6 | - url: https://example.com/user/{id}/place/{placeId}
6 | - url: https://redocly-example.com/user/{id}/place/{placeId}
7 | variables:
Error was generated by the no-server-variables-empty-enum rule.