Skir.RPC.TypeDescriptor (skir_elixir_client v0.2.2)

Copy Markdown View Source

Builds the self-describing type JSON used by SkirRPC's list endpoint and Studio.

Summary

Functions

Returns the type descriptor as a UTF-8 JSON string.

Returns a JSON-compatible type descriptor with nested records, field numbers, documentation, and removed slots.

Functions

to_json(type)

@spec to_json(Skir.type()) :: binary()

Returns the type descriptor as a UTF-8 JSON string.

to_map(type)

@spec to_map(Skir.type()) :: map()

Returns a JSON-compatible type descriptor with nested records, field numbers, documentation, and removed slots.