View Source Ostara.JSONSchema (Ostara v0.4.4)

Functions for transforming an Ecto.Schema module into a JSON Schema.

Link to this section Summary

Functions

Transforms the given source module into a valid JSON Schema map.

Link to this section Functions

@spec field_name(atom()) :: String.t()
Link to this function

generate(source, opts \\ [])

View Source
@spec generate(atom(), [{:root, boolean()}]) :: map()

Transforms the given source module into a valid JSON Schema map.