Skip to content

TW-4931: fix snakeToPascal to handle URL acronym in config keys#79

Merged
qasim-nylas merged 1 commit into
mainfrom
TW-4931/fix-snake-to-pascal-url-acronym
May 12, 2026
Merged

TW-4931: fix snakeToPascal to handle URL acronym in config keys#79
qasim-nylas merged 1 commit into
mainfrom
TW-4931/fix-snake-to-pascal-url-acronym

Conversation

@qasim-nylas
Copy link
Copy Markdown
Collaborator

Summary

  • nylas config set api.base_url failed with "unknown config key" because snakeToPascal converted url to Url instead of URL
  • Added "url": "URL" to the acronyms map so snake_case config keys with url resolve correctly to struct fields

Test plan

  • nylas config set api.base_url <value> works
  • nylas config get api.base_url round-trips correctly
  • nylas config set dashboard.account_base_url <value> works
  • Unit tests updated and passing

@qasim-nylas qasim-nylas requested a review from AaronDDM May 12, 2026 21:21
Copy link
Copy Markdown
Collaborator

@AaronDDM AaronDDM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@qasim-nylas qasim-nylas merged commit b3727ba into main May 12, 2026
6 checks passed
@qasim-nylas qasim-nylas deleted the TW-4931/fix-snake-to-pascal-url-acronym branch May 12, 2026 21:23
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