-
-
Notifications
You must be signed in to change notification settings - Fork 0
✨ add key-aware decoding to the query string parser #14
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
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
0b4dbc2
:sparkles: add DecodeKind enum to distinguish decoding context for ke…
techouse 7a01ca7
:bug: protect encoded dots in key decoding to prevent premature conve…
techouse c5997eb
:bug: handle lowercase '%2e' in key decoding and improve bracketed ke…
techouse c71c9e8
:white_check_mark: add comprehensive tests for encoded dot handling i…
techouse 0023f00
:wastebasket: deprecate getDecoder in favor of context-aware decode m…
techouse 2f51003
:bulb: update Decoder interface documentation to use code formatting …
techouse d2514e9
:children_crossing: add LegacyDecoder typealias and deprecate legacy …
techouse 800d545
:bulb: update deprecation annotation for indices option in EncodeOpti…
techouse d0512c6
:bug: fix key segment handling for depth 0 to preserve original key w…
techouse 4276d9d
:bug: optimize protectEncodedDotsForKeys to skip processing when no e…
techouse f8eaf26
:bug: replace regex-based dot-to-bracket conversion with top-level pa…
techouse f237e78
:white_check_mark: add tests for key coercion and depth=0 behavior wi…
techouse ff5f1d7
:white_check_mark: update decoder tests to handle DecodeKind for sele…
techouse d77f9c0
:art: remove explicit Decoder type annotations in custom decoder test…
techouse 5cae1b3
:white_check_mark: add tests for defaultDecode to verify encoded dot …
techouse 55f2081
:bulb: clarify deprecation message for legacy decoder adapter and doc…
techouse b970059
:art: reformat deprecation and documentation comments for improved re…
techouse 5d394a7
:bug: fix allowDots logic to ensure decodeDotInKeys requires allowDot…
techouse 3406b3b
:art: rename local variable for custom decoder in encoding test for c…
techouse 465ff22
:white_check_mark: add tests for dot-to-bracket conversion guardrails…
techouse File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
qs-kotlin/src/main/kotlin/io/github/techouse/qskotlin/enums/DecodeKind.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package io.github.techouse.qskotlin.enums | ||
|
||
import io.github.techouse.qskotlin.enums.DecodeKind.KEY | ||
import io.github.techouse.qskotlin.enums.DecodeKind.VALUE | ||
|
||
/** | ||
* Decoding context for a scalar token. | ||
* - [KEY]: the token is a key or key segment. Callers may want to preserve percent-encoded dots | ||
* (%2E / %2e) until after key-splitting. | ||
* - [VALUE]: the token is a value; typically fully percent-decode. | ||
*/ | ||
enum class DecodeKind { | ||
KEY, | ||
VALUE, | ||
} |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.