Skip to content

Improve contentEncoding RFC references #862

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

Merged
merged 3 commits into from
Mar 23, 2020

Conversation

handrews
Copy link
Contributor

Fixes #803. See this comment for an overview of what is going on.

The reference to RFC 2045 was ambiguous and misleading. Emphasize
RFC 4648 more, and clarify what from 2045 is relevant and when.

Also improved wording around the default behavior, lifting the notion of an
identity encoding from RFC 2045.

@awwright
Copy link
Member

awwright commented Mar 1, 2020

Would it be worth pointing out that the contentEncoding only makes sense if the string only consists of 7-bit characters?

@handrews
Copy link
Contributor Author

handrews commented Mar 2, 2020

@awwright hmm... yeah that's reasonable. RFC 2045 explicitly gives the range as 7bit ASCII, and RFC 4648 specifies various subsets of that for its encodings. It doesn't really change anything, but emphasizes that contentEncoding is for strings that are already encoded.

Of course, those 7bit characters will still be encoded as UTF-8 in JSON, but that's fine.

The reference to RFC 2045 was ambiguous and misleading.  Emphasize
RFC 4648 more, and clarify what from 2045 is relevant and when.
@handrews
Copy link
Contributor Author

OK finally remembered to put in the bit about 7-bit strings, @awwright

Also started the changelog and added an entry for the email format RFC update which is the only other change on this file so far.

This should be ready to go now.

@handrews handrews merged commit fa6cba4 into json-schema-org:master Mar 23, 2020
@handrews handrews deleted the encoding branch April 26, 2020 16:48
@gregsdennis gregsdennis added clarification Items that need to be clarified in the specification and removed Type: Maintenance labels Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clarification Items that need to be clarified in the specification
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7bit, 8bit, binary don't make sense for contentEncoding
4 participants