FUNCTION

convert_gtv_to_text

function convert_gtv_to_text(gtv: gtv, indentation_index: integer, in_dict: boolean): text

Converts a gtv value to a pretty text representation, with newlines and indentations. Used to create pretty auth messages which include all parameters passed to a certain operation, regardless of complexity.

It's still recommended to create custom auth messages for complex operations, as they will always be more readable than any automatically generated text.

Parameters

  • gtv — the gtv value to convert.
  • indentation_index — how many collections deep we are. Used for recursive iteration on collections
  • in_dict — if inside a dictionary, it will not add indent output except collections. This prevents dicts having \t between key and value.
© 2024 Chromia