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

Function decodeJSONValueForSchema

cmd/json_command_schema_test.go:406–414  ·  view source on GitHub ↗
(t *testing.T, data []byte)

Source from the content-addressed store, hash-verified

404}
405
406func 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
416func normalizeJSONValueForSchema(t *testing.T, value any) any {
417 t.Helper()

Calls 1

UnmarshalJSONMethod · 0.80

Tested by

no test coverage detected