1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-01 23:36:58 +00:00

Add dynamic field to field struct

This change adds a dynamic field indicator to the field struct.  This is so
we can remove the dynamic fields from an existing schema before merging the
dynamic schema and actual schema to prevent removed dynamic fields form being
incorrectly left behind on the schema.

Issue:
https://github.com/rancher/rancher/issues/12698
This commit is contained in:
Nathan Jenan
2018-08-21 13:30:34 -07:00
parent 3a7e3090fb
commit e2fa956b64
2 changed files with 7 additions and 1 deletions

View File

@@ -136,6 +136,7 @@ type Field struct {
InvalidChars string `json:"invalidChars,omitempty"`
Description string `json:"description,omitempty"`
CodeName string `json:"-"`
DynamicField bool `json:"dynamicField,omitempty"`
}
type Action struct {