In RAML 1.0, we can use regular expressions to constrain the property names for addition properties. I’d like to be able to re-use an expression in multiple places, without having to repeat the expression.
Using a string-based type as a constraint on the property names would be especially nice. Perhaps something like this:
types: node_name: type: string pattern: "[a-z0-9]([-a-z0-9]*[a-z0-9])?" minLength: 1 system_info_group: type: object additionalProperties: true properties: *node_name: system_info
One requirement, of course, is the need to identify some indicator that YAML doesn’t already overload in strange ways.