Skip to content

fix: use snake_case keys in Httpc response maps#18

Merged
dbrattli merged 1 commit intomainfrom
fix/httpc-snake-case-keys
Mar 20, 2026
Merged

fix: use snake_case keys in Httpc response maps#18
dbrattli merged 1 commit intomainfrom
fix/httpc-snake-case-keys

Conversation

@dbrattli
Copy link
Collaborator

Summary

  • Fable compiles F# record fields to snake_case Erlang map keys (StatusCode -> status_code)
  • The Emit expressions used camelCase keys (statusCode), causing response.StatusCode to fail at runtime
  • Fix: #{statusCode => ...} -> #{status_code => ...} in all four HTTP methods

Test plan

  • just test passes
  • Verify response.StatusCode works from a calling project

🤖 Generated with Claude Code

Fable compiles F# record fields to snake_case Erlang map keys
(StatusCode -> status_code). The camelCase keys caused field access
to fail at runtime.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dbrattli dbrattli merged commit 032a984 into main Mar 20, 2026
2 checks passed
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.

1 participant