--- id: R6.h family: GR-VAL level: core profiles: [storage-api] posture: normative-target added: "1.0" changed: "1.0" source: https://flowdrop.io/spec/rules/gr-val/r6-h specification: FlowDrop Workflow Specification 1.0 licence: CC BY 4.0 --- # R6.h — A value that does not match its pattern is refused *GR-VAL (Part I) · level: core · profiles: storage-api · added in 1.0* A string that does not match its pattern is refused. A pattern that is not a valid regular expression is a defect in the node type, not in the workflow (SCH-24). ## The rule > **Normative.** This is the rule. > > 1. A string config value that does not match its schema's `pattern` MUST be refused with `R6_CONFIG_INVALID` at `node.{id}.config.{key}`. > > 2. A `pattern` that is not a valid regular expression makes the schema invalid; that is the node type's failure (SCH-24), and R6.j applies. ## What it means A string that does not match its schema's `pattern` is refused. A pattern that is not a valid regular expression is a different case: the schema is invalid, and that is the node type's defect, not the author's. The node type cannot be built (SCH-24), and R6 does not judge the node's config at all (R6.j), so the author is not blocked by a mistake they cannot fix. ## Example ```json title="The value assigned to a key requiring an https prefix" verdict="refused" "ftp://example.com" ``` ## Why Recorded under [OPEN-25](https://flowdrop.io/spec/rulings/open-25), [OPEN-28](https://flowdrop.io/spec/rulings/open-28). ## Related rules - Names: SCH-24, R6.j, R6.d - Referenced by: R6.d --- Rule identifiers are permanent and are never renumbered. This specification carries no implementation status: each implementation publishes its own standing against these rules. Licensed CC BY 4.0.