1Password / connect-sdk-python

Python SDK for 1Password Connect
https://developer.1password.com/docs/connect
MIT License
200 stars 30 forks source link

Updating an item field replaces that field type with text #71

Open Nhat-agilbits opened 1 year ago

Nhat-agilbits commented 1 year ago

Your environment

SDK Version: 1.3.0

Connect Server Version:1.6.1

OS: Windows, Mac

Python Version: 3.10.10

What happened?

Updating an item field with purpose throw error while removing purpose will change the field type.

Update an item password like this:

  Field(
            id='password',  
            label='password',
            purpose='PASSWORD',
            value='my password'),

will receive this error:

Logic: (Unable to parse Item), Validation: (too many "password" fields in Apply()), You can only use one "password" field.

Update an item without purpose will not throw an error but will change password type from password to text.

What did you expect to happen?

Updating an item with purpose should work and not throw error.

Steps to reproduce

https://user-images.githubusercontent.com/49488467/226744696-4b6ca2ea-f61a-4534-8ea5-0dcc5b3c7e8e.mp4

volodymyrZotov commented 1 year ago

Hi @Nhat-agilbits👋 Thank you for reaching out! We are going to plan to work on that issue and try to fix it as soon as possible.