Open NathanHazout opened 5 years ago
Hey, I just ran into this issue as well. For me it was a prettier/prettier-atom config issue. To solve it, I added an .eslintignore file to my project root, and included this to have prettier ignore yaml files :
**/*.yaml
I had to also ensure that in prettier-atom, I had set "respectEslintignore"
to true in prettier-atom/config-schema.json
. It defaults to true
, but that's a place to look if the above solution doesn't work right away.
This is indeed valid syntax, but yaml.js is not handling all the spec, and there is no plan to change this. You could use https://github.com/nodeca/js-yaml instead, which is more feature complete, if you do need this syntax to work.
I tried to use "prettier.io" on my api-doc.yml.
Here is a simplified snippet of my original yml which works:
After running the formatter, the yml looks like:
Notice the syntax
? /participant-organizations/{participantOrganizationId}/policies/validation/{recordType}
?According to this thread, this is valid syntax: https://github.com/prettier/prettier/issues/5599#issuecomment-490083406
However, after these changes my server does not start: