Skip to content

ItemCategory.PASSWORD: custom field with id 'username' must be part of a section #144

@cimnine

Description

@cimnine

Scenario & Reproduction Steps

I try to create an item with ItemCategory.PASSWORD. I add a field with id='username', section_id=None and field_type=ItemFieldType.TEXT:

ItemField(
        id='username',
        title='username',
        field_type=ItemFieldType.TEXT,
        value='test@test',
        section_id=None
)

Actual Behavior

Error creating entry 0: msg="invalid user input: encountered the following errors: custom field with id 'username' must be part of a section"

Expected Behavior

No error.

SDK version

0.1.5

Additional information

In the 1Password client, I can set a username for a Password-type item no problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions