You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling the to_hash method on models (such as Patch::ProjectListResponse) leads to a NoMethodError, due to undefined method `openapi_nullable'.
Context
It looks like in this commit 4dc45af#diff-2e1c309b08ff393f103c7a4806b6f7bfL42-L44, the self.openapi_nullable methods were (mistakenly?) removed from each of the models, but openapi_nullable is still referenced in the to_hash methods (e.g. here).
5: from app.rb:7:in `puts'
4: from gems/patch_ruby-1.0.0/lib/patch_ruby/models/project_list_response.rb:212:in `to_s'
3: from gems/patch_ruby-1.0.0/lib/patch_ruby/models/project_list_response.rb:225:in `to_hash'
2: from gems/patch_ruby-1.0.0/lib/patch_ruby/models/project_list_response.rb:225:in `each_pair'
1: from gems/patch_ruby-1.0.0/lib/patch_ruby/models/project_list_response.rb:228:in `block in to_hash'
gems/patch_ruby-1.0.0/lib/patch_ruby/models/project_list_response.rb:52:in `method_missing': undefined method `openapi_nullable' for Patch::ProjectListResponse:Class (NoMethodError)
The text was updated successfully, but these errors were encountered:
Bug
Calling the
to_hash
method on models (such asPatch::ProjectListResponse
) leads to aNoMethodError
, due toundefined method `openapi_nullable'
.Context
It looks like in this commit 4dc45af#diff-2e1c309b08ff393f103c7a4806b6f7bfL42-L44, the
self.openapi_nullable
methods were (mistakenly?) removed from each of the models, butopenapi_nullable
is still referenced in theto_hash
methods (e.g. here).To reproduce
which should lead to:
The text was updated successfully, but these errors were encountered: