MCPcopy Create free account
hub / github.com/cloudquery/cloudquery / UnmarshalJSON

Method UnmarshalJSON

cli/internal/specs/v0/write_mode.go:38–47  ·  view source on GitHub ↗
(data []byte)

Source from the content-addressed store, hash-verified

36}
37
38func (m *WriteMode) UnmarshalJSON(data []byte) (err error) {
39 var writeMode string
40 if err := json.Unmarshal(data, &writeMode); err != nil {
41 return err
42 }
43 if *m, err = WriteModeFromString(writeMode); err != nil {
44 return err
45 }
46 return nil
47}
48
49func (WriteMode) JSONSchemaExtend(sc *jsonschema.Schema) {
50 sc.Type = "string"

Callers

nothing calls this directly

Calls 1

WriteModeFromStringFunction · 0.85

Tested by

no test coverage detected