Forum Discussion

Borsoi's avatar
Occasional Visitor
2 years ago

Pattern Header

It is possible to add a pattern to a header parameter? I am putting patterns to some fields in an JAVA application using swagger tools, in the YAML file, I'm trying to add the pattern like this:

But I noticed that this field is not being validated, any string has being accepted in this. In the body fields, i was able to put this pattern with no problem at all and I also couldn't find any help or guide to add a pattern in a header parameter. It is possible to do this with swagger?


No RepliesBe the first to reply