Closed
Description
The specification for pattern says
This string SHOULD be a valid regular expression, according to the ECMA 262 regular expression dialect
It is unclear which part of the ECMA 262 regular expression dialect this is referring to. As a result OpenAPI has linked to Section 7.8.5 which is for the RegularExpressionLiteral
.
However, as per @handrews in OAI/OpenAPI-Specification#1985 (comment) the pattern string should be a RegularExpressionBody
not a RegularExpressionLiteral
.
The correct reference is ECMA 262 Annex A.7, "Regular Expressions", although given that that section is informative rather than normative there might be some complications on exactly how to cite that. Referencing RegularExpressionBody for clarity would probably be a good idea.