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

Function isValidJson

plugins/destination/bigquery/client/spec.go:168–175  ·  view source on GitHub ↗
(content string)

Source from the content-addressed store, hash-verified

166}
167
168func isValidJson(content string) error {
169 var v map[string]any
170 err := json.Unmarshal([]byte(content), &v)
171 if err != nil {
172 return err
173 }
174 return nil
175}
176
177func (Spec) JSONSchemaExtend(sc *jsonschema.Schema) {
178 sc.Properties.Value("batch_timeout").Default = "10s"

Callers 1

ValidateMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected