accodeing / fortnox-api

Gem that abstracts Fortnox's F3 API
GNU Lesser General Public License v3.0
9 stars 8 forks source link

Allow string keys again #242

Closed ehannes closed 7 months ago

ehannes commented 7 months ago

Apparently, 0.8.1 and 0.9.0 breaks undocumented support for string keys. We have no test coverage for passing in attribute names as strings, but apparently, that worked in 0.8.0 and is not broken in newer versions due to dry lib upgrades.

Supporting this should be as simple as adding transform_keys(&:to_sym) to lib/fortnox/api/types/model.rb 😄

Note that this should be fixed both for 0.8.1 and 0.9.0.