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

Function normalizeJSONValueForSchema

cmd/json_command_schema_test.go:416–424  ·  view source on GitHub ↗
(t *testing.T, value any)

Source from the content-addressed store, hash-verified

414}
415
416func normalizeJSONValueForSchema(t *testing.T, value any) any {
417 t.Helper()
418
419 data, err := json.Marshal(value)
420 if err != nil {
421 t.Fatalf("marshal JSON value for schema validation: %v", err)
422 }
423 return decodeJSONValueForSchema(t, data)
424}

Calls 1

decodeJSONValueForSchemaFunction · 0.85

Tested by

no test coverage detected