This library uses OpenStruct to generate API responses. https://github.com/microcmsio/microcms-ruby-sdk/blob/v1.2.0/lib/microcms.rb#L33 But OpenStruct is officially discouraged since Ruby 3.0.0. https://docs.ruby-lang.org/ja/latest/doc/news=2f3_0_0.html I think, [to upgrade Ruby 3.0 or later](https://github.com/microcmsio/microcms-ruby-sdk/issues/7), OpenStruct should be replated.
Activity
kuredev commentedon Jan 4, 2026
📝 Description
I confirmed this issue on Ruby 3.4.
Without adding
require 'ostruct'tolib/microcms.rb, the following error occurs when parsing JSON responses.🛑 Error
uninitialized constant MicroCMS::HttpUtil::OpenStruct (NameError)
nemuvski commentedon Jul 2, 2026
Closing this issue as it's been addressed in #13 .