Company Register API Bug

Im trying to set up the the Company Register API but have found an issue with the data returned.

The Json below was returned for company number 07205297. Within the Json the usual-residential-address is hyphenated and therefore does not match the resource representation that you provide and also we are unable to specify hyphenated variable names so this throws an error when deserializing the provided JSON

{“links”:{“self”:"/company/07205297/registers"},“kind”:“registers”,“registers”:{“usual-residential-address”:{“items”:[{“register_moved_to”:“public-register”,“moved_on”:“2016-07-11”}]}}}

Hi James,

A fix for this issue is currently in progress which will change the register field names from hyphenated to underscore separated strings to match the spec e.g. usual-residential-address will become usual_residential_address as expected.

There will also be an additional field inside each register object called register_type which will give the hyphenated value of the register string e.g. usual-residential-address that you can use to lookup descriptions in our api-enumerations repository if required.

Michael