-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Formatting tweaks, JSON fixes and tabs->spaces #363
Conversation
77675cd
to
c34b8a0
Compare
I think this is happening because we have some mixed tabs/spaces in the specification... |
The diff also looks wrong now for code/JSON example sections. |
Yep, trying to fix this properly with expandtab now
…On Fri, 11 Jun 2021, 09:43 Casper Welzel Andersen, ***@***.***> wrote:
The diff also looks wrong now for code/JSON example sections.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#363 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB4MTYBGBHUJPJZS4YZJE3DTSHEBPANCNFSM46QHD4DA>
.
|
cd9045d
to
6befa79
Compare
fdb2c32
to
bce3cde
Compare
So I ended up going a bit overboard here, and have a script that can strip the JSON blocks out of the spec and validate them as JSON (a separate problem to the whitespace). This turned up lots of extra commas and missing quotes. I'm not sure if it's something that is worth adding to the CI itself as it is slightly manual (e.g. it skips our |
c1a54e8
to
a206679
Compare
- Manually fix some indentation
a206679
to
3f18c45
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well ... this was extremely close to being a clean sheet... Also, it's just a comment/question :)
956c385
to
ea9fa69
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bravo monsieur 👏 🥳
* Two formatting tweaks * Tabs to spaces and check in CI * Remove additional commas and add missing quotes in JSON samples - Manually fix some indentation * Turned note back into a quote * Fix indentation for final example
Just reading through the rendered spec on GitHub and found a couple of indents that are being treated as
where I don't think it was intentional.
Please check the rich diff to confirm this (the button is at the top right of the files changed window)