Skip to content

Commit

Permalink
finos#353 add spectral rule to report boolean placeholder values
Browse files Browse the repository at this point in the history
  • Loading branch information
willosborne committed Oct 18, 2024
1 parent 8082c17 commit 3dbb247
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spectral/instantiation/validation-rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@ rules:
function: pattern
functionOptions:
notMatch: "^{{\\s*[A-Z_]+\\s*}}$"

instantiation-has-no-placeholder-properties-boolean:
description: Should not contain placeholder values with pattern {{ BOOLEAN_[property name] }}
message: Boolean placeholder detected in instantiated pattern.
severity: warn
given: "$..*"
then:
function: pattern
functionOptions:
notMatch: "^{{\\s*BOOLEAN_[A-Z_]+\\s*}}$"

relationship-references-existing-nodes-in-instantiation:
description: Relationships must reference existing nodes
Expand Down

0 comments on commit 3dbb247

Please sign in to comment.