Skip to content
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

Explain 64-bit I-JSON issues but don't embed that in CDDL #388

Merged
merged 2 commits into from Feb 19, 2024

Conversation

LPardue
Copy link
Member

@LPardue LPardue commented Feb 5, 2024

Alternative to #359.

I-JSON can mess with big numbers and we can't constrain the range.
We don't want to mandate bigint support on anyone. We don't want
to make non-JSON serializers/parsers have to worry about stringified
numbers - so modifying the CDDL directly seems off.

There's lots of ways that implementations can internally handle values,
we don't care much about that here. For interop, settle on allow JSON parsers
to write uint64 as strings if they want to. Make it clear that parsers
should expect that, unless they have some non-standard way of knowing.

Fixes #229

Alternative to #359.

I-JSON can mess with big numbers and we can't constrain the range.
We don't want to mandate bigint support on anyone. We don't want
to make non-JSON serializers/parsers have to worry about stringified
numbers - so modifying the CDDL directly seems off.

There's lots of ways that implementations can internally handle values,
we don't care much about that here. For interop, settle on allow JSON parsers
to write uint64 as strings if they want to. Make it clear that parsers
should expect that, unless they have some non-standard way of knowing.

Fixes #229
Copy link
Contributor

@rmarx rmarx left a comment

Choose a reason for hiding this comment

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

I can live with the high-level approach here, but think the prose needs a bit of work to be clearer about the intent (see suggestions).

draft-ietf-quic-qlog-main-schema.md Outdated Show resolved Hide resolved
draft-ietf-quic-qlog-main-schema.md Outdated Show resolved Hide resolved
draft-ietf-quic-qlog-main-schema.md Outdated Show resolved Hide resolved
Co-authored-by: Robin Marx <rmarx@akamai.com>
@LPardue
Copy link
Member Author

LPardue commented Feb 6, 2024

those suggestions make it better, thanks

@LPardue LPardue merged commit a6c9a3f into main Feb 19, 2024
5 checks passed
@LPardue LPardue deleted the remove-uint64-cddl-duality branch February 19, 2024 09:25
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.

Section on I-JSON seems to confusingly redefine uint64
2 participants