SDK regeneration#225
Open
fern-api[bot] wants to merge 2 commits into
Open
Conversation
Generated by Fern CLI Version: unknown Generators: - fernapi/fern-ruby-sdk: 1.0.0-rc84
…ests to flat LoadResponse; valid live query
Reapplies the .fernignore-protected Reporting API customizations onto the
freshly-regenerated SDK (RC 45.2.0-rc.0), which shipped the corrected FLAT
LoadResponse but without the manual code.
- lib/square/reporting_helper.rb: load_and_wait polling helper (Continue-wait
retry loop, exponential backoff, cancellation). Sentinel detection uses
to_h["error"] so it is unaffected by the flat-model change.
- test/custom/test_reporting_helper.rb: offline unit tests. Aligned to the flat
model -- fixture now returns {"data":[]} (was {"results":[]}) and assertions
use response.data (was response.results).
- test/custom/integration/client_tests/test_reporting.rb: live smoke test,
gated behind TEST_SQUARE_REPORTING (skips when nil or blank). Aligned to flat
model (response.data). Replaced the empty query {} -- which production rejects
with HTTP 400 -- with a valid query (measures: ["Appointments.count"]).
- .github/workflows/ci.yml: wire TEST_SQUARE_REPORTING from repo secret.
- Gemfile.lock: declare x86_64-linux (glibc) platform so nokogiri resolves on CI.
- README: hand-authored Reporting API section (data-based example).
- .fernignore: protect lib/square/reporting_helper.rb.
FER-11257
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated SDK generation by Fern