Skip to content

Pretty printers for encodings

Laure Runser requested to merge laure-encoding-pretty-printers into data-encoding-V2

Context

This MR aims to add pretty printers for several types in data-encoding:

  • Json.t
  • Encoding.t
  • the values described by the encodings

Manually testing the MR

I wrote expect_tests that can be run with dune runtest.

Checklist

The pretty-printer for Json.t is in the JSON.ml file. The pretty-printers for encodings and values are in the encoding.ml file

  • to_string for encodings
  • value_to_string for values
Edited by Laure Runser

Merge request reports