1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-03 08:14:40 +00:00

Add notnullable attribute

This commit is contained in:
Darren Shepherd
2018-01-27 22:05:16 -07:00
parent 1369734139
commit fe053853bb

View File

@@ -315,6 +315,8 @@ func applyTag(structField *reflect.StructField, field *Field) error {
field.Default = value field.Default = value
case "nullable": case "nullable":
field.Nullable = true field.Nullable = true
case "notnullable":
field.Nullable = false
case "nocreate": case "nocreate":
field.Create = false field.Create = false
case "writeOnly": case "writeOnly":