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

Method UnmarshalSpec

cli/internal/specs/v0/source.go:92–101  ·  view source on GitHub ↗

UnmarshalSpec unmarshals the internal spec into the given interface

(out any)

Source from the content-addressed store, hash-verified

90
91// UnmarshalSpec unmarshals the internal spec into the given interface
92func (s *Source) UnmarshalSpec(out any) error {
93 b, err := json.Marshal(s.Spec)
94 if err != nil {
95 return err
96 }
97 dec := json.NewDecoder(bytes.NewReader(b))
98 dec.UseNumber()
99 dec.DisallowUnknownFields()
100 return dec.Decode(out)
101}
102
103func (Source) JSONSchemaExtend(sc *jsonschema.Schema) {
104 tables := sc.Properties.Value("tables")

Callers 5

ValidateMethod · 0.45
ValidateMethod · 0.45
ValidateMethod · 0.45
ValidateMethod · 0.45
ValidateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected