MCPcopy Create free account
hub / github.com/apache/fory / WithCompatible

Function WithCompatible

go/fory/fory.go:121–126  ·  view source on GitHub ↗

WithCompatible sets schema evolution compatibility mode

(enabled bool)

Source from the content-addressed store, hash-verified

119
120// WithCompatible sets schema evolution compatibility mode
121func WithCompatible(enabled bool) Option {
122 return func(f *Fory) {
123 f.config.Compatible = enabled
124 f.compatibleSet = true
125 }
126}
127
128// WithMaxTypeFields sets the maximum field count limit for schema definition deserialization
129func WithMaxTypeFields(size int) Option {

Callers 15

TestSerializePrimitivesFunction · 0.85
TestSerializeInterfaceFunction · 0.85
TestSerializePtrFunction · 0.85
TestSerializeSliceFunction · 0.85
TestSerializeMapFunction · 0.85
TestSerializeSetFunction · 0.85
TestSerializeArrayFunction · 0.85

Calls

no outgoing calls

Tested by 15

TestSerializePrimitivesFunction · 0.68
TestSerializeInterfaceFunction · 0.68
TestSerializePtrFunction · 0.68
TestSerializeSliceFunction · 0.68
TestSerializeMapFunction · 0.68
TestSerializeSetFunction · 0.68
TestSerializeArrayFunction · 0.68