The Pretty.make
function is used to create pretty printers that generate a formatted string representation of values based on a schema.
Example (Pretty Printer for a Struct Schema)
Customizing Pretty Printer Generation
You can customize how the pretty printer formats output by using the pretty
annotation within your schema definition.
The pretty
annotation takes any type parameters provided (typeParameters
) and formats the value into a string.
Example (Custom Pretty Printer for Numbers)