Disclaimer: While I have been working with RAML for almost a year now, and am familiar with the 0.8 spec, I’m new to this forum category. Also, I have not been involved in the ongoing efforts of defining RAML 1.0 yet. Please treat my incompetence with kindness.
In the section on patterns, the RAML spec says:
[…] The pattern attribute is a regular expression that a parameter of type string MUST match. […]
I find that slightly ambiguous. Does it mean that the pattern must occur somewhere in the parameter value? Or does it mean that the whole parameter value (from beginning to end) must match the pattern?
From the point of view of a RAML author: is manual anchoring of the regexp required, if the pattern is intended to match the whole parameter value?
E.g. are the following to regexps equal, in the context of a RAML pattern?
Would be nice, if future versions of the spec could be more clear about this. What do you think?