As a developer, I would like support in my meta definitions to be able to specify a simple regular expression that could be used to enforce key names (in the isValidTargetLocation() method).
This feature would only make sense for hashes with ambiguous keys, unless you were sort of deferring validation of an object against an arbitrary schema, but we have objects and schemas in one, so it's not exactly the same problem.
As a developer, I would like support in my meta definitions to be able to specify a simple regular expression that could be used to enforce key names (in the
isValidTargetLocation()
method).Perhaps:
Better name maybe "key_regex"? Or key->regex ? See the "patternProperties" http://json-schema.org/example2.html and "additionalProperties"
This feature would only make sense for hashes with ambiguous keys, unless you were sort of deferring validation of an object against an arbitrary schema, but we have objects and schemas in one, so it's not exactly the same problem.