(content string)
| 166 | } |
| 167 | |
| 168 | func 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 | |
| 177 | func (Spec) JSONSchemaExtend(sc *jsonschema.Schema) { |
| 178 | sc.Properties.Value("batch_timeout").Default = "10s" |