Skip to content

chore(build): replace hand-built ohlc_range with clone from wire model#240

Merged
userFRM merged 1 commit into
mainfrom
chore/remove-hand-built-ohlc-range
Apr 10, 2026
Merged

chore(build): replace hand-built ohlc_range with clone from wire model#240
userFRM merged 1 commit into
mainfrom
chore/remove-hand-built-ohlc-range

Conversation

@userFRM
Copy link
Copy Markdown
Owner

@userFRM userFRM commented Apr 10, 2026

Summary

  • Replaced the 130-line hand-built GeneratedEndpoint for stock_history_ohlc_range in load_proto_endpoints() with a 4-line clone from the stock_history_ohlc wire entry
  • The cloned entry only overrides the name; the TOML surface spec (endpoint_surface.toml) carries the parameter differences via wire_name = "stock_history_ohlc" and its own template
  • The synthetic exclusion list in load_endpoint_specs() is retained since the cloned wire entry still doesn't correspond to a unique proto RPC

Closes #222

Test plan

  • cargo fmt --all -- --check passes
  • cargo test --workspace passes (240 tests, including stock_history_ohlc_range_exists)
  • Pre-existing clippy warnings in macros.rs are unrelated to this change (verified on main)

🤖 Generated with Claude Code

…wire model (#222)

The stock_history_ohlc_range wire entry was a full 130-line hand-built
GeneratedEndpoint duplicating fields/params already derivable from the
stock_history_ohlc proto entry.  Replace with a 4-line clone-and-rename
that stays in sync automatically.  The synthetic exclusion list and
TOML surface spec are unchanged.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@userFRM userFRM merged commit a59c0ba into main Apr 10, 2026
24 checks passed
@userFRM userFRM deleted the chore/remove-hand-built-ohlc-range branch April 10, 2026 10:42
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.

chore(build): stock_history_ohlc_range hand-built in load_proto_endpoints duplicates TOML

1 participant