You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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: prettier/prettier#5599 (comment)
However, after these changes my server does not start:
The text was updated successfully, but these errors were encountered: