View Source Ostara.Properties (Ostara v0.4.3)

Functions for converting Ecto.Schema fields to JSON Schema properties.

Link to this section Summary

Functions

Puts a "properties" key in the given map based on the fields defined in the source.

Link to this section Functions

Link to this function

put_properties(map, source)

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

Puts a "properties" key in the given map based on the fields defined in the source.

source should be an Ecto.Schema module.