Does anyone know how to make the request body optional in RAML specs?
We want to be able to use PATCH on the same endpoint for two different cases:
- queryParams supplied, with empty body
- no queryParams, with JSON body
However, our error handling kit keeps catching the first case with the empty body as 415 Unsupported Media Type. Has anyone ever had to do this before?