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?
355 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
- What is the relation of numberOfConcurrentTransactedReceivers with the number of threads mule spawns
- Mule 3.6 Custom Java Class
- How can I access Mule ESB Community edition via browser?
- Mule ESB Community Standalone Runtime
- Invalid Keystore Format when trying to deploy Mule project
- Custom Converter with log4j2 and Mule not working
- Getting Error While Using HTTP on Mule ESB canvas
- Which mule transports does the re-connection strategy work with
- When does the VM transport actually persist messages ? and also a peek into HA and VM transport
- Can I read or update dynamically the multiple Mule app properties without reloading or restarting?
- Mule: Migrating to the New HTTP Connector
- Where can I download MuleSoft Community Edition?
- Revoking OAuth tokens in Mule
- LDAP Search json output
- Basic JSON formatting using Mule Expression Language
Related Questions in MULESOFT
- How to Authorize myself to mulesoft/cloudhub account from python?
- Dataweave to remove json elements from values after groupBy | Mule 3.9
- Mule ESB: How to convert Binary form of payload to array in mule 4, dw 2.0
- Reformat XML payload by combining fields
- enrich one JSON array with data from another based on multiple conditions using dataweave 2.0
- How to use nested "map"
- Mulesoft Secure Properties Config Key Not Reading Variable
- Mule4 studio error Cannot delete existing folder
- Mule 3 Import | The selected folder does not contain a valid Studio project (missing mule-project.xml file)
- How to access lookup object value using Salesforce composite connector "Create sobject tree" in Mule 4
- Mulesoft 3.8 | Error running the application | An internal error occurred during: "<projectname>" | org.eclipse.core.jobs
- payload changing to com.mulesoft.weave.reader.DefaultSeekableStream (Mule 3)
- How to fetch record from .imp file in mule 4
- Call a flow of one mule project in another mule project
- Mule 4.2.2 upgrade: Error No value present MULE:SOURCE_RESPONSE_SENDorg.mule.extension.db.api.StatementResult
Related Questions in RAML
- RAML multivalued form parameter
- Swagger2.0 to RAML conversion
- Unable to resolve raml file errors
- maven plugin requires unused jar
- My response is extending jersey response.How can i exclude other fields and send only my model class object as response?
- Type definition approach
- Browse files in RAML - workaround
- RAML file is throwing invalid Json schema response in Anypoint Studio
- RAML: Nested Schemas
- Cannot POST to Mule console mock service
- How do you model an action in RAML
- RAML API validation in FrontEnd
- How do I describe a calculated default value with RAML?
- RAML specification for request parts
- Library cannot be resolved
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.