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