0

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.

2 Answers2

0

RAML doesn't has a way to validate that. You could use a regular expression in the type definition of the pattern.

aled
  • 21,330
  • 3
  • 27
  • 34
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.

Ryan Hoegg
  • 2,415
  • 2
  • 14
  • 15