I have some endpoints where the query parameters must be one of a string, but can be a list of these strings, however there is some complex options that I would also want to convey though raml for the api and docs. Here is an example (which doesn’t work):
queryParameters: dimensions: type: DimensionsList properties: values: - minute: - hour: - author: [ 'Countable' ] - title: [ 'Countable', 'StartsWithFilterable' ]
Dimensions will change per end point.
An example query may be
I am using RAML to dynamically generate my api, and will be generating the docs with it too. So its used for a single source of truth. Hopeing I can get this in there so its not duplicated/fragmented.
I was planning on doing something like, adding the DimensionsList as a type that has a values parameter or such, but this isn’t working. I just get ‘unknown node: values’. Any suggestions on how to tackle this would be appreciated.