Skip to content

Load OpenStruct before validating HTTP responses - #1483

Open
efegokdemir wants to merge 1 commit into
Shopify:mainfrom
efegokdemir:efe/shopify-api-openstruct-1482
Open

efegokdemir wants to merge 1 commit into
Shopify:mainfrom
efegokdemir:efe/shopify-api-openstruct-1482

Conversation

@efegokdemir

@efegokdemir efegokdemir commented Nov 24, 2026 •

Copy link
Copy Markdown

Description

Fixes #1482

The HttpResponse signatures reference OpenStruct. Current Oj releases no longer load it as a side effect, so the first response can fail while Sorbet evaluates the signature. Load it with the response class and declare it as a runtime dependency.

How has this been tested?

  • bundle exec rake test (420 runs, 1,172 assertions).
  • Changed-file RuboCop passed.
  • The clean-process reproduction passed with Ruby 3.3.13 and Oj 3.17.8.
  • The full RuboCop run could not start because rubocop-rspec is missing from the locked bundle; bundle exec srb tc could not run because the locked Sorbet binary is incompatible with this Apple Silicon host.

Checklist

  • My commit message follows the pattern described in the linked guidance.
  • I have performed a self-review of my own code.
  • I have added tests that prove my fix is effective.
  • I have updated the project documentation.
  • I have added a changelog line.

@efegokdemir
efegokdemir marked this pull request as ready for review November 24, 2026 03:42

This branch has not been deployed

No deployments
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.

NameError on HttpResponse.new: OpenStruct is referenced in the sig block but never required

1 participant