1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-01 23:36:58 +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
case "nullable":
field.Nullable = true
case "notnullable":
field.Nullable = false
case "nocreate":
field.Create = false
case "writeOnly":