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:
@@ -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":
|
||||
|
Reference in New Issue
Block a user