Skip to content

only :order! keys are converted - error with Gyoku #461

@guzart

Description

@guzart

Unfortunately am stuck using 1.8.7

Settings:

convert_request_keys_to :camelelcase
element_form_default :qualified

Savon is sending Gyoku a hash where the :order! keys are converted, but the message keys are not. Which results in Gyoku raising the following error

Missing elements in :order! [:user_name, :email_count]
gyoku-1.0.0/lib/gyoku/hash.rb:76:in `order'
hashable = [:email_count, :user_name]
orderable = ['userName', 'emailCount']

Seems like the breaking point is in qualified_message.rb:27, where

@used_namespaces[newpath] => nil
and it only adds the namespaces (converted keys) to the :order! array

Thanks

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions