(sc *jsonschema.Schema)
| 101 | } |
| 102 | |
| 103 | func (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 | |
| 113 | func (s *Source) Validate(relaxed bool) error { |
| 114 | if err := s.Metadata.Validate(); err != nil { |