Skip to content

fix(rpc datatource): allow connect ruby as rpc#219

Merged
arnaud-moncel merged 1 commit into
mainfrom
fix/rpc-stack-connection
May 22, 2026
Merged

fix(rpc datatource): allow connect ruby as rpc#219
arnaud-moncel merged 1 commit into
mainfrom
fix/rpc-stack-connection

Conversation

@arnaud-moncel
Copy link
Copy Markdown
Member

@arnaud-moncel arnaud-moncel commented May 21, 2026

Fix RPC datasource requests to send snake_case keys for Ruby compatibility

  • Adds toSnakeCase and keysToSnake utilities in utils.ts to recursively convert object keys from camelCase to snake_case.
  • Applies keysToSnake to filter, aggregation, and action payload objects before sending requests to /list, /update, /delete, /aggregate, /action-execute, and /action-form endpoints.
  • Also applies keysToSnake to the forest_caller header value.
  • Behavioral Change: All outgoing RPC request bodies and the forest_caller header now use snake_case keys instead of camelCase.

Macroscope summarized 6c81fa3.

@arnaud-moncel arnaud-moncel merged commit 5034d74 into main May 22, 2026
2 checks passed
@arnaud-moncel arnaud-moncel deleted the fix/rpc-stack-connection branch May 22, 2026 08:08
forest-bot added a commit that referenced this pull request May 22, 2026
forest-bot added a commit that referenced this pull request May 27, 2026
# [2.10.0](https://github.com/ForestAdmin/forestadmin-experimental/compare/rpc-agent@2.9.2...rpc-agent@2.10.0) (2026-05-27)

### Bug Fixes

* **rpc datatource:** allow connect ruby as rpc ([#219](#219)) ([5034d74](5034d74))

### Features

* **rpc:** handle SA returning file ([#217](#217)) ([08cc659](08cc659))
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