add json tags to schema.Field
This commit is contained in:
parent
370ddcbdf1
commit
d3a70e91eb
@ -64,12 +64,12 @@ type Field struct {
|
||||
StructField reflect.StructField
|
||||
Tag reflect.StructTag
|
||||
TagSettings map[string]string
|
||||
Schema *Schema
|
||||
EmbeddedSchema *Schema
|
||||
OwnerSchema *Schema
|
||||
ReflectValueOf func(reflect.Value) reflect.Value
|
||||
ValueOf func(reflect.Value) (value interface{}, zero bool)
|
||||
Set func(reflect.Value, interface{}) error
|
||||
Schema *Schema `json:"-"`
|
||||
EmbeddedSchema *Schema `json:"-"`
|
||||
OwnerSchema *Schema `json:"-"`
|
||||
ReflectValueOf func(reflect.Value) reflect.Value `json:"-"`
|
||||
ValueOf func(reflect.Value) (value interface{}, zero bool) `json:"-"`
|
||||
Set func(reflect.Value, interface{}) error `json:"-"`
|
||||
IgnoreMigration bool
|
||||
}
|
||||
|
||||
|
@ -299,7 +299,6 @@ func TestEmbeddedStructForCustomizedNamingStrategy(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
func TestSchemaParseMarshalJson(t *testing.T) {
|
||||
type model struct {
|
||||
gorm.Model
|
||||
@ -314,4 +313,4 @@ func TestSchemaParseMarshalJson(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatalf("error while json marshaling schema %v", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user