Allow @encode(string) on boolean, define case-insensitive true|false string semantics, and add Spector coverage#10875
Draft
Copilot wants to merge 10 commits into
Draft
Allow @encode(string) on boolean, define case-insensitive true|false string semantics, and add Spector coverage#10875Copilot wants to merge 10 commits into
@encode(string) on boolean, define case-insensitive true|false string semantics, and add Spector coverage#10875Copilot wants to merge 10 commits into
Conversation
3 tasks
Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update encode decorator to support boolean values
Allow Jun 3, 2026
@encode(string) on boolean and define true|false string semantics
Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
Copilot
AI
changed the title
Allow
Allow Jun 3, 2026
@encode(string) on boolean and define true|false string semantics@encode(string) on boolean, define true|false string semantics, and add Spector coverage
Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
Copilot
AI
changed the title
Allow
Allow Jun 3, 2026
@encode(string) on boolean, define true|false string semantics, and add Spector coverage@encode(string) on boolean, define case-insensitive true|false string semantics, and add Spector coverage
Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
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.
@encode(string)was restricted to numeric targets, blocking APIs that model booleans as strings (for example"true"/"false"in payloads or query values). This change extends support to boolean targets, clarifies the docs contract, and adds http-specs Spector coverage.Compiler validation
@encodevalidation so the implicit string encoding path (@encode(string)) is valid forbooleanin addition tonumeric.Standard library/docs contract
@encodedecorator docs to state boolean string encoding uses case-insensitivetrue/falsevalues.@encode(string)example.Coverage
@encode(string)on a boolean model property.packages/http-specs/specs/encode/booleanwith matching mock API and regeneratedpackages/http-specs/spec-summary.md./encode/boolean/property/true-lower/encode/boolean/property/false-lower/encode/boolean/property/true-upper/encode/boolean/property/false-mixedtrue/false), while still returning varied response casings for coverage.