Noizu.Github.Format (Noizu Labs: Github API v0.5.0)

Hand-maintained, curated views over generated structs.

The generated structs under lib/api/structs/ are full, spec-faithful and permissive — great for fidelity, noisy for display. This module layers the curated :basic projections that the original hand-written client exposed via per-struct format/2 helpers, without touching (or being wiped by) the generator.

Unknown shapes pass through unchanged, so format/2 is always safe to call.

Noizu.Github.Format.format(issue)              # => %{id: 1, title: ..., ...}
Noizu.Github.Format.format(collection, :basic) # => [%{...}, ...]

Link to this section Summary

Functions

Project a generated struct (or list/collection of them) into a curated view.

Link to this section Types

@type format() :: :basic

Link to this section Functions

Link to this function

format(value, format \\ :basic)

@spec format(term(), format()) :: term()

Project a generated struct (or list/collection of them) into a curated view.