Open mark-young-atg opened 4 months ago
I went ahead and submitted a simple PR to fix this. I'd love to hear the maintainers' comments on how to improve it though. https://github.com/apiaryio/apiary-client/pull/220
A workaround is to use the environment variable RUBYOPT='-rostruct'
Example : RUBYOPT='-rostruct' apiary preview
The
apiary fetch
command is giving me an OpenStruct error:This can be fixed by adding
require 'ostruct'
after therequire 'json'
ingems/apiaryio-0.17.0/lib/apiary/command/fetch.rb
e.g.I have not raised this as a pull request at this point as I felt it was worth a discussion first. I'm not sure if this is related to the version of Ruby. I'm using v3.3.1. Please let me know your thoughts and whether I should raise this as a PR?