Repository navigation
Conversation
Accept decimal string parameter IDs produced by JSON serialization while retaining named and integer-key handling. Co-authored-by: generaltony007 <[email protected]>
Cover unknown and private-use parameter IDs through ResourceRecord and DNSMessage JSON round trips. Co-authored-by: generaltony007 <[email protected]>
Cover JSON input to the interactive DNS contentview with escaped binary parameter values. Co-authored-by: generaltony007 <[email protected]>
Add the unknown HTTPS parameter JSON fix to the unreleased changelog. Co-authored-by: generaltony007 <[email protected]>
Co-authored-by: generaltony007 <[email protected]>
Contributor
Author
|
Could a maintainer give the HTTPS DNS parameter round-trip fix a human review and advise on the next step? Please let me know if changes are needed or if you'd prefer this PR closed. Thanks. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
HTTPSRecord.to_json()retains unknown service parameter IDs as integer keys. A real JSON encode/decode turns those keys into strings, butHTTPSRecord.from_json()treats every string as an enum name. For example, a record containing parameter 111 fails to round-trip with aKeyError, whichResourceRecord.from_json()catches before failing on its fallback string parser.Accept decimal string IDs as integers while keeping existing named and integer-key handling. This preserves unknown and private-use parameter values without adding any parameter-specific parsing.
Tests cover ResourceRecord and DNSMessage JSON round trips, plus JSON input to DNSContentview.reencode, using IDs111 and65400 and escaped binary values. The normal YAML prettifier retains integer keys and is not affected.
uv run --no-sync tox -e lintand changed Python files' format check pass.Checklist