Skip to content

Instantly share code, notes, and snippets.

@edegula
Last active June 2, 2021 06:27
Show Gist options
  • Save edegula/d4299223bcbe7903814fc45376ba8b22 to your computer and use it in GitHub Desktop.
Save edegula/d4299223bcbe7903814fc45376ba8b22 to your computer and use it in GitHub Desktop.
RAML for queryParameters that accepts multiple values.
#%RAML 1.0
---
title: test
version: v2
protocols: [ HTTP ]
mediaType: application/json
traits:
sparsable:
queryParameters:
detail?:
type: string
pattern: ^(<<fieldset>>)([,?](<<fieldset>>))*$
/api:
displayName: api
get:
is: [ sparsable: { fieldset: small|big|categories|box } ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment