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?
340 views Asked by Arjit Sharma At
2
There are 2 answers
0

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.
RAML doesn't has a way to validate that. You could use a regular expression in the type definition of the pattern.