(t *testing.T, file string)
| 584 | } |
| 585 | |
| 586 | func loadPublicJSONSchema(t *testing.T, file string) publicJSONSchema { |
| 587 | t.Helper() |
| 588 | |
| 589 | data, err := os.ReadFile(file) |
| 590 | if err != nil { |
| 591 | t.Fatalf("read public JSON schema %s: %v", file, err) |
| 592 | } |
| 593 | |
| 594 | var schema publicJSONSchema |
| 595 | if err := json.Unmarshal(data, &schema); err != nil { |
| 596 | t.Fatalf("decode public JSON schema %s: %v", file, err) |
| 597 | } |
| 598 | return schema |
| 599 | } |
| 600 | |
| 601 | func expectedJSONErrorCodes() []string { |
| 602 | return []string{ |
no outgoing calls
no test coverage detected