(t *testing.T, data []byte)
| 404 | } |
| 405 | |
| 406 | func decodeJSONValueForSchema(t *testing.T, data []byte) any { |
| 407 | t.Helper() |
| 408 | |
| 409 | value, err := jsonschema.UnmarshalJSON(bytes.NewReader(data)) |
| 410 | if err != nil { |
| 411 | t.Fatalf("decode JSON value for schema validation: %v", err) |
| 412 | } |
| 413 | return value |
| 414 | } |
| 415 | |
| 416 | func normalizeJSONValueForSchema(t *testing.T, value any) any { |
| 417 | t.Helper() |
no test coverage detected