Skip to content

Commit

Permalink
Merge pull request #55 from drdaeman/fix-totp-field-type
Browse files Browse the repository at this point in the history
Fix (T)OTP field type
  • Loading branch information
jpcoenen authored Jan 26, 2022
2 parents 025b665 + f756ad9 commit c0a0c7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/resources/item.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Optional:
- **id** (String, Optional) A unique identifier for the field.
- **password_recipe** (Block List, Max: 1) Password for this item. (see [below for nested schema](#nestedblock--section--field--password_recipe))
- **purpose** (String, Optional) Purpose indicates this is a special field: a username, password, or notes field. One of ["USERNAME" "PASSWORD" "NOTES"]
- **type** (String, Optional) The type of value stored in the field. One of ["STRING" "EMAIL" "CONCEALED" "URL" "TOTP" "DATE" "MONTH_YEAR" "MENU"]
- **type** (String, Optional) The type of value stored in the field. One of ["STRING" "EMAIL" "CONCEALED" "URL" "OTP" "DATE" "MONTH_YEAR" "MENU"]
- **value** (String, Optional) The value of the field.

<a id="nestedblock--section--field--password_recipe"></a>
Expand Down
2 changes: 1 addition & 1 deletion onepassword/resource_onepassword_item.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const (
var categories = []string{"login", "password", "database"}
var dbTypes = []string{"db2", "filemaker", "msaccess", "mssql", "mysql", "oracle", "postgresql", "sqlite", "other"}
var fieldPurposes = []string{"USERNAME", "PASSWORD", "NOTES"}
var fieldTypes = []string{"STRING", "EMAIL", "CONCEALED", "URL", "TOTP", "DATE", "MONTH_YEAR", "MENU"}
var fieldTypes = []string{"STRING", "EMAIL", "CONCEALED", "URL", "OTP", "DATE", "MONTH_YEAR", "MENU"}

func resourceOnepasswordItem() *schema.Resource {
passwordRecipe := &schema.Schema{
Expand Down

0 comments on commit c0a0c7e

Please sign in to comment.