brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aled Sage (JIRA)" <>
Subject [jira] [Created] (BROOKLYN-433) YAML-based config constraint to support regex
Date Fri, 03 Feb 2017 12:50:51 GMT
Aled Sage created BROOKLYN-433:

             Summary: YAML-based config constraint to support regex
                 Key: BROOKLYN-433
             Project: Brooklyn
          Issue Type: Improvement
    Affects Versions: 0.10.0
            Reporter: Aled Sage
            Priority: Minor

One can specify constraints on a config key's value, to give a validation error if an invalid
value is supplied.

In the Java code, this can be any predicate.

However, in YAML we don't support many options. It would be good to support a regex constraint.
For example:

- name: address
  type: string
  - required
  - regex: ^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$

See docs at,
and code at

This message was sent by Atlassian JIRA

View raw message