Skip to content

Commit

Permalink
feat: add enum to form field type
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Aug 6, 2020
1 parent 6fe840f commit 96028d8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions selfservice/form/fields.go
Expand Up @@ -29,6 +29,16 @@ type Field struct {

// Type is the equivalent of `<input type="{{.Type}}">`
//
// enum:
// - hidden
// - email
// - password
// - date
// - url
// - text
// - datetime-local
// - number
// - submit
// required: true
Type string `json:"type"`

Expand Down

0 comments on commit 96028d8

Please sign in to comment.