ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Regex for query parameter in Rest API

Post new topic  Reply to topic
 Regex for query parameter in Rest API « View previous topic :: View next topic » 
Author Message
Rems
PostPosted: Thu Aug 11, 2022 1:42 am    Post subject: Regex for query parameter in Rest API Reply with quote

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
View user's profile Send private message
timber
PostPosted: Fri Aug 12, 2022 12:45 am    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1280

Please give an example of an invalid value that was not rejected.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Regex for query parameter in Rest API
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.