|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Regex for query parameter in Rest API |
« View previous topic :: View next topic » |
Author |
Message
|
Rems |
Posted: Thu Aug 11, 2022 1:42 am Post subject: Regex for query parameter in Rest API |
|
|
Newbie
Joined: 20 Apr 2022 Posts: 3 Location: Paris
|
Hello, I have a Rest API on ACE with a JSON Swagger, in which I send one parameter. I am trying to put some restrictions on this param with a regex, using the field "pattern" in my swagger, like this:
Code: |
"parameters" : [ {
"name" : "vin",
"in" : "path",
"description" : "xxx",
"required" : true,
"type" : "string",
"pattern" : "^[A-HJ-NPR-Z0-9]{7,17}$"
} ], |
But it seems ACE doesn't take into account the regex and process the flow normally when I send a param which invalidate the regex. Is there anything to add to make this work ? Ty |
|
Back to top |
|
 |
timber |
Posted: Fri Aug 12, 2022 12:45 am Post subject: |
|
|
 Grand Master
Joined: 25 Aug 2015 Posts: 1292
|
Please give an example of an invalid value that was not rejected. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|