PropSchema v0.1.0 PropSchema.BaseProperties
Base collection of properties according to their requirement and other considerations. See PropSchema.AdditionalProperties
for how to add to this collection or override any of these.
Link to this section Summary
Functions
Covers a few cases of the integer
and string
types. For integers required
and positive
are provided. For strings required
and string_type
are provided
Link to this section Functions
Link to this function
generate_prop(field, type, opts)
generate_prop(atom(), :integer | :string, %{ optional(atom()) => atom() | boolean() }) :: PropSchema.Types.ast_expression()
Covers a few cases of the integer
and string
types. For integers required
and positive
are provided. For strings required
and string_type
are provided.