View Source Ostara.Validation (Ostara v0.4.4)

Functions for converting Ecto.Changeset validators into JSON Schema type-specific validations.

Link to this section Summary

Functions

Annotates the "properties" in the given map based on the changeset/1 function defined in the module.

Link to this section Types

@type ast() :: {marker :: atom(), metadata :: keyword(), args :: list()}

Link to this section Functions

Link to this function

put_validations(map, module)

View Source
@spec put_validations(map(), atom()) :: map()

Annotates the "properties" in the given map based on the changeset/1 function defined in the module.