In my REST API, one of the submitted parameter values must be a code following the regex:
/[A-Z]{2}[0-9]{4}/
Is there any way, besides putting it in the description
property of the parameter, for me to indicate that the value is not valid if it does not match my regular expression?
I was not able to find any mention of regex's in the Swagger doc, except as a way to identify Patterned Fields (which is not what I want to do).