ProgramFacts.Manifest (program_facts v0.2.1)

Copy Markdown View Source

JSON manifest for a generated program.

Summary

Functions

Decodes a JSON manifest into a manifest struct.

Builds a manifest struct from decoded JSON data.

Builds the JSON manifest for a generated program.

Converts a manifest or supported ProgramFacts struct to JSON-friendly Elixir data.

Types

t()

@type t() :: %ProgramFacts.Manifest{
  facts: map(),
  files: [map()],
  id: String.t(),
  metadata: map(),
  program_facts_version: String.t(),
  schema_version: pos_integer(),
  seed: integer()
}

Functions

decode!(json)

Decodes a JSON manifest into a manifest struct.

from_map!(manifest)

Builds a manifest struct from decoded JSON data.

new(program)

Builds the JSON manifest for a generated program.

to_map(manifest)

Converts a manifest or supported ProgramFacts struct to JSON-friendly Elixir data.