In my REST API, one of the parameter values represented should be the code following the regular expression:
/[AZ]{2}[0-9]{4}/
Is there any way, besides putting it in the parameter’s description property, for me to indicate that the value is invalid if it does not match my regular expression?
I could not find mention of regex in the Swagger document, except as a way to identify patterned fields (which is not what I want to do).
source share