mvdan / bitw

Minimalist BitWarden client
BSD 3-Clause "New" or "Revised" License
169 stars 15 forks source link

Unable to sync; wrong datatype for Cipher.Attachments #10

Closed Omar007 closed 4 years ago

Omar007 commented 4 years ago

bitw sync fails for a database with attachments.

Currently, Cipher.Attachments is defined as a string array but this does not match with the actual format returned by Bitwarden.

The actual datatype returned is an array of Attachment objects. The object has the following properties:

FileName:string
Id:string
Key:string
Object:string
Size:string
SizeName:string
Url:string
mvdan commented 4 years ago

Thanks for the report! I can have a look later this week, but feel free to beat me to it.