Skip to content

Commit

Permalink
Add available values for item data source field purpose and type (#179)
Browse files Browse the repository at this point in the history
The descriptions of the field purpose and type for a item data resource also contained the possible values in v1. We're adding them back now since they were missed during the migration.
  • Loading branch information
edif2008 authored Jun 17, 2024
1 parent 09a060d commit fc04c76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/data-sources/item.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ Read-Only:

- `id` (String) A unique identifier for the field.
- `label` (String) The label for the field.
- `purpose` (String) Purpose indicates this is a special field: a username, password, or notes field.
- `type` (String) The type of value stored in the field.
- `purpose` (String) Purpose indicates this is a special field: a username, password, or notes field. One of ["USERNAME" "PASSWORD" "NOTES"]
- `type` (String) The type of value stored in the field. One of ["STRING" "CONCEALED" "EMAIL" "URL" "OTP" "DATE" "MONTH_YEAR" "MENU"]
- `value` (String, Sensitive) The value of the field.
4 changes: 2 additions & 2 deletions internal/provider/onepassword_item_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,11 @@ func (d *OnePasswordItemDataSource) Schema(ctx context.Context, req datasource.S
Computed: true,
},
"purpose": schema.StringAttribute{
MarkdownDescription: fieldPurposeDescription,
MarkdownDescription: fmt.Sprintf(enumDescription, fieldPurposeDescription, fieldPurposes),
Computed: true,
},
"type": schema.StringAttribute{
MarkdownDescription: fieldTypeDescription,
MarkdownDescription: fmt.Sprintf(enumDescription, fieldTypeDescription, fieldTypes),
Computed: true,
},
"value": schema.StringAttribute{
Expand Down

0 comments on commit fc04c76

Please sign in to comment.