There are four values: a,b,c,d and the query parameter "X" can be a combination of the four values. Eg - "X": a,b,c,d or "X": a,b,c etc.
How to pass pre-defined set of comma separated values in a query parameter in raml?
357 Views Asked by Arjit Sharma At
2
There are 2 best solutions below
0
Ryan Hoegg
On
RAML query parameters with array type must allow multiple values like so: ?x=a&x=b&x=c. You can provide a string type that validates the comma delimited expression, and it will be tough to make sure you have a list of unique enumerated values.
Related Questions in MULE
- How to compare two dates with only month and year in mule
- remove object from complex object if specific value is null
- Get flow name from subflow
- Convert a single column values into multiple rows using dataweave
- How to dynamically convert an list of strings into key value pair using dataweave 2.0
- Using $ in a string in a dataweave expression
- Generating an Array based on a total Count and split Number
- What should be my response body in raml if i am sending hashmap as response?
- Get Object from specific Bucket on AWS S3 in Mule 4
- How do I transform the incoming JSON payload having objects to a payload having a list of the objects expected by the downstream system
- Error while deploying app in Anypoint Platform using Azure DevOps
- Querriable properties available for the MuleSoft Anypoint Platform Cloudhub application log API?
- Import Java Jar in Mulesoft Project
- h2 In memory database private mode - unable to access console
- Dataweave Transformation- How can I reduce a payload array when condition is met
Related Questions in MULESOFT
- I need a mulesoft real time project
- How to compare two dates with only month and year in mule
- remove object from complex object if specific value is null
- How can I effectively manage SFTP Private key files in MuleSoft applications
- Get flow name from subflow
- Convert a single column values into multiple rows using dataweave
- How to dynamically convert an list of strings into key value pair using dataweave 2.0
- Using $ in a string in a dataweave expression
- Using Maven to build an Java SDK Mulesoft plugin snapshot
- Creating custom rule for API Governance - How to check for traits?
- Generating an Array based on a total Count and split Number
- Mulesoft Dataweave use a map to update an object or use the update function or update operator
- Mule 4 why is the playground result different than a transform component
- What should be my response body in raml if i am sending hashmap as response?
- Sockets Connector - is there any way to read data instead of send and receive - Mule 4
Related Questions in RAML
- Creating custom rule for API Governance - How to check for traits?
- DB payload to JSON transformation in mulesoft
- How to use Oauth Grant Type Password in Mulesoft?
- RAML: example vs examples
- Creating custom ruleset for API Governance
- Is it possible define an XML element in RAML 1.0 which has both text content and attributes?
- Mulesoft create new Mule Project from local raml shows disabled finish button
- Generic response structure in RAML not working
- How to correctly define Accept-Encoding: gzip header in RAML?
- [] is not a valid type
- How to pass pre-defined set of comma separated values in a query parameter in raml?
- Snakeyaml removed quotes
- Update API specs in different business groups
- Mule design centre defining 400 response but trying it does not return same response
- How can I cast a Number to BigInt in dataweave in Mule 4?
Related Questions in RAML-1.0
- How to set multiple example requests and its responses in RAML
- RAML - how to design endpoints with parameters?
- How to pass pre-defined set of comma separated values in a query parameter in raml?
- When creating an API Notebook with a hyphen separated resource name "/songs-list" , it gives an error
- Validating query parameters in RAML
- RAML structure for Arrays
- RAML 1.0 representation of Java Map
- Concrete example of RAML 1.0 Example DataType
- How to make UriParameter as optional in RAML 1.0
- Dynamic call in RAML based on query params
- Validate headers using Raml
- How to have two raml properties mutually exclusive?
- Mule-APIkit with baseUriParameter truncates resource path thus erroring out as 'resource not found'
- How to change RAML version in Anypoint Studio project
- Mule app keeps triggering the wrong flow - possible RAML issue
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
RAML doesn't has a way to validate that. You could use a regular expression in the type definition of the pattern.