mirror of
https://github.com/LukeHagar/redocly-cli.git
synced 2025-12-09 04:21:15 +00:00
fix: improve detection accuracy on no-server-example.com rule (#1270)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user