Skip to content

Conversation

glyn
Copy link
Collaborator

@glyn glyn commented Nov 25, 2020

Thanks for feedback from Daniel Parker and Carsten Bormann.

Thanks for feedback from Daniel Parker and Carsten Bormann.
Copy link
Member

@cabo cabo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick look...

array-index = integer

integer = [%x2D] (%x30 / (%x31-39 *%x30-39))
integer = ["-"] ("0" / (%x31-39 *%x30-39))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may want to make use of DIGIT and DIGIT1 here

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops. Of course.


An array slice is a union element consisting of two or three integers (in
base 10 and which may be omitted) separated by colons.
An array slice is a union element consisting of optional integers (in base 10) separated by colons.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to be more aware about saying "is" when we mean "is represented by".

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I mean "is" rather than "is represented by". But the phrase "is a union element consisting of" is causing a lot of grief. It probably is better to make the array slice description independent of where it is used, thus:

Suggested change
An array slice is a union element consisting of optional integers (in base 10) separated by colons.
An array slice consists of optional integers (in base 10) separated by colons.

array-index = integer

integer = [%x2D] (%x30 / (%x31-39 *%x30-39))
integer = ["-"] ("0" / (%x31-39 *%x30-39))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What was the guidance around using quoted characters vs their hex equivalent?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That change was based on input from @cabo.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you link to the input? Why have both?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cabo's guidance was to use hex for ranges and otherwise use quoted characters except where case sensitivity is needed.

Comment on lines +442 to +446
array-slice = [ start ] ws ":" ws [ end ]
[ ws ":" ws [ step ] ]
start = integer
end = integer
step = integer
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the markdown translation align the =?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. Does that matter?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typically I see them aligned for readability, but technically, no.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest we leave that for now and do a fine-tuning editorial pass later for consistency.

Copy link
Collaborator

@gregsdennis gregsdennis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple questions and a suggestion

@glyn glyn force-pushed the editorial-improvements branch from 380417d to c88f2fa Compare November 26, 2020 11:05
Use term "JSON value" instead of "JSON document".

Use "JSONPath" instead of "JSON Path" for consistency with Gössner.
@glyn glyn force-pushed the editorial-improvements branch from c88f2fa to 658ed7a Compare November 26, 2020 15:53
@glyn
Copy link
Collaborator Author

glyn commented Nov 26, 2020

Couple questions and a suggestion

I'd like to merge so that @cabo can proceed to raise PRs which add introductory material from the Gössner draft. None of this is set in concrete, so there will be ample opportunities to revisit the text.

@glyn glyn requested a review from gregsdennis November 26, 2020 16:27
@glyn glyn merged commit 113da3f into ietf-wg-jsonpath:master Nov 26, 2020
@glyn
Copy link
Collaborator Author

glyn commented Nov 26, 2020

@gregsdennis Merged. Let me know if you have outstanding issues and we can address them separately.

@glyn glyn deleted the editorial-improvements branch November 26, 2020 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants