kevbite / CompaniesHouse.NET

A simple .NET client wrapper for CompaniesHouse API
MIT License
37 stars 44 forks source link

Getting filing history #bug #95

Closed AlwaysVbNet closed 5 years ago

AlwaysVbNet commented 5 years ago

@kevbite I am trying to get the filing history for company reg "06484911" but I get the following error:

{"Error converting value ""auditors"" to type 'CompaniesHouse.Response.ResolutionCategory'. Path 'items[12].resolutions[0].category', line 1, position 6271."}

I am using the latest version of the project.

I noticed this error a few times for different categories. Is there a way to fallback somehow instead of breaking the call every time?

kevbite commented 5 years ago

Hello, the problem is there is no definitive list in their API docs, we could have a fallback value for the enums but then we'd never know if something went wrong or not.

kevbite commented 5 years ago

Fixed in version 6.1.3