Open parmentf opened 2 months ago
The swagger editor gives a working syntax:
But I can't produce such a JSON using metadata in .ini
.
# Example
post.requestBody.content.text/csv.example = a,value\n1,2\n
post.responses.default.content.text/csv.example = a;value\n1;true\n
gives
No success with fix("a,value\n1,2\n")
either.
It is
application/json
instead oftext/csv
https://github.com/Inist-CNRS/web-services/blob/ed4d850feeb7c6d587fe74522ba2ecd981ab267b/services/base-line/v1/true/csv.ini#L9-L12
https://github.com/Inist-CNRS/web-services/blob/ed4d850feeb7c6d587fe74522ba2ecd981ab267b/services/base-line/v1/echo/csv.ini#L9-L12
Which produces:
Fix:
v1/echo/csv
v1/true/csv