Skip to content

Make International Street Language a real enum, wire up validation - #154

Merged
RyanLCox1 merged 1 commit into
masterfrom
ryan/case_insensitive
Aug 6, 2026
Merged

Make International Street Language a real enum, wire up validation#154
RyanLCox1 merged 1 commit into
masterfrom
ryan/case_insensitive

Conversation

@andyjohnsonsmarty

Copy link
Copy Markdown
Contributor

Language is now the LanguageMode enum (Native/Latin) instead of an open string union. Client.send() now calls lookup.ensureValidData(), which previously was never invoked, so language and geocode were never actually validated at send time. Added resolveLanguageMode() to resolve a mixed-case value (eg. "Latin", "NATIVE") into a LanguageMode and normalize the outgoing request parameter, without mutating lookup.language.

Language is now the LanguageMode enum (Native/Latin) instead of an open
string union. Client.send() now calls lookup.ensureValidData(), which
previously was never invoked, so language and geocode were never
actually validated at send time. Added resolveLanguageMode() to resolve
a mixed-case value (eg. "Latin", "NATIVE") into a LanguageMode and
normalize the outgoing request parameter, without mutating lookup.language.
@RyanLCox1
RyanLCox1 merged commit 6b32363 into master Aug 6, 2026
3 checks passed
@RyanLCox1
RyanLCox1 deleted the ryan/case_insensitive branch August 6, 2026 20:27
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.

2 participants