schema/field: add option to set the Go identifier for enums (#635)

This commit is contained in:
Ariel Mashraki
2020-07-22 20:22:24 +03:00
committed by GitHub
parent 5ad267d862
commit daaa9f2db1
34 changed files with 587 additions and 84 deletions

View File

@@ -66,6 +66,8 @@ func init() {
file.DefaultSize = fileDescSize.Default.(int)
// file.SizeValidator is a validator for the "size" field. It is called by the builders before save.
file.SizeValidator = fileDescSize.Validators[0].(func(int) error)
filetypeFields := schema.FileType{}.Fields()
_ = filetypeFields
groupFields := schema.Group{}.Fields()
_ = groupFields
// groupDescActive is the schema descriptor for active field.