MCPcopy Index your code
hub / github.com/cloudquery/cloudquery / JSONSchemaExtend

Method JSONSchemaExtend

cli/internal/specs/v0/source.go:103–111  ·  view source on GitHub ↗
(sc *jsonschema.Schema)

Source from the content-addressed store, hash-verified

101}
102
103func (Source) JSONSchemaExtend(sc *jsonschema.Schema) {
104 tables := sc.Properties.Value("tables")
105 *tables = *tables.OneOf[0] // only value
106
107 destinations := sc.Properties.Value("destinations")
108 *destinations = *destinations.OneOf[0] // only value
109
110 Metadata{}.JSONSchemaExtend(sc) // have to call manually
111}
112
113func (s *Source) Validate(relaxed bool) error {
114 if err := s.Metadata.Validate(); err != nil {

Callers

nothing calls this directly

Calls 1

ValueMethod · 0.65

Tested by

no test coverage detected