In the OpenApi3-spec of my API I have an endpoint returning CSV-data. No my Dredd-Test fails although example and returned are exactly the same. I assume the problem that my API returns CSV with a BOM character.
Now I have no idea How I can encode the character correctly in OpenAPI3-YAML. Can anyone help me out?
I tried \ufeff
as I would do in JSON but it didn't work.
responses:
"200":
description: ffffoo
content:
text/csv;charset=UTF-8:
schema:
type: string
example: |-
a;b;c
1;2;3
4;5;5