MCPcopy Create free account
hub / github.com/dropbox/dbxcli / loadPublicJSONSchema

Function loadPublicJSONSchema

cmd/json_contract_test.go:586–599  ·  view source on GitHub ↗
(t *testing.T, file string)

Source from the content-addressed store, hash-verified

584}
585
586func 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
601func expectedJSONErrorCodes() []string {
602 return []string{

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected