Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[DRAFT] #708 - Make pretty formatter output prettier #712
[DRAFT] #708 - Make pretty formatter output prettier #712
Changes from 18 commits
96ee573
d3c2c03
46a5828
917f384
bff4f00
e0719d5
e4089a8
b16582d
39c6a47
62fd301
f584741
55998e6
f618b7f
7b8c802
ef9c2b8
fb33196
e64acd7
6ce8ae8
14e1e09
86d8a79
6b53a7b
dd62088
5185d44
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Minor style: jsonschema follows PEP8 / generally avoids using backslashes for continuation. Can you switch these to use parentheses instead?
Though, I think this will be a lot clearer if we split it into
_header_line
and_non_header_line
-- can you give that a shot? It should remove a bunch of the conditional behavior here.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.
I usually don't like backslashes, either. I got in the habit of using it because my coworkers do like them. I'll change this code.
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.
We're only using the formatter for the schema, not the instance here, so there's going to be inconsistency in the output.
Can we add a test that covers the instance too and then fix this to make sure the formatter is used for both?