Skip to content

A value that does not match its pattern is refused

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

The value assigned to a key requiring an https prefixrefused
"ftp://example.com"

Why

Recorded under OPEN-25, OPEN-28.

Rule identifiers are permanent and are never renumbered. Each implementation publishes its own standing against these rules; this specification does not.spec 1.0 · R6.h · changed in spec 1.0