barrycarey / SnipeSharp

A c# wrapper for the Snipe IT API
25 stars 30 forks source link

Calling update on an asset with a CheckoutRequest attached breaks JSON Converter #8

Open barrycarey opened 6 years ago

barrycarey commented 6 years ago

If an asset is updated after a checkout request is attached the JSON convert fails

Christoffleroux commented 5 years ago

Also experiencing the same behaviour

michaeldwood commented 4 years ago

I think this may be caused by an inconsistency in what Snipe-It returns rather than with this package.

'assigned_to' is expecting a User model but the API returns an integer of the users id. However the API also returns a property of 'assigned' which does contain all of the assigned user properties