forked from docs/doc-exports
Reviewed-by: Gode, Sebastian <sebastian.gode@t-systems.com> Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
12 lines
334 B
YAML
12 lines
334 B
YAML
rules:
|
|
path-starts-with-slash-no-spaces:
|
|
description: Path must start with / and contain no spaces
|
|
message: "Path '{{property}}' must start with '/' and must not contain spaces"
|
|
severity: error
|
|
given: $.paths
|
|
then:
|
|
field: "@key"
|
|
function: pattern
|
|
functionOptions:
|
|
match: "^\\/[^\\s]*$"
|