fix: drop venue-typed source enums; align examples with market_reporting (#4175)#33
Conversation
…ing (#4175) Source fields are already free-string typed (no venue enum to loosen); this aligns example/fixture source values with the API switch to market_reporting masked labels (government labels like EIA/opec.org unchanged). Version bumped (patch, unpublished). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 57 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
What & why
Part of the SDK-fleet sweep for oilpriceapi-api#4175. The API is switching masked source labels to
market_reporting(government labels likeEIA/opec.orgunchanged). This aligns the Node/TypeScript SDK.Typing
No enum to loosen —
FuturesPrice.source(and allsourcefields) are alreadystring. So nothing breaks when the API starts returningmarket_reporting.Examples/fixtures fixed
src/resources/futures.ts: doc commentData source (e.g. "ICE")→Data source label (e.g. "market_reporting", or a government label like "EIA").tests/resources/futures.test.ts: fixturesource: "ICE"→source: "market_reporting".Left unchanged intentionally:
ice-brent/ice-wtiare route path slugs (/v1/futures/{slug}), not source labels — those belong to the futures route-alias work, not this issue.types.tsexample"oilprice.ft"is not a venue.Version (unpublished)
1.0.1→1.0.2inpackage.json, CHANGELOG entry added. Not published to npm.Test/build
npm run build(tsc + cjs): passes.npm test -- futures(vitest): 64/64 pass.🤖 Generated with Claude Code