Maru v0.13.2 Maru.Builder.Parameter.DSLs View Source

Link to this section Summary

Functions

Validator: all_or_none_of

Validator: at_least_one_of

Validator: exactly_one_of

Validator: mutually_exclusive

Define a param should be present or not

Define params block of current endpoint

Define a param should be present

Link to this section Functions

Link to this macro all_or_none_of(attr_names) View Source (macro)

Validator: all_or_none_of

Link to this macro at_least_one_of(attr_names) View Source (macro)

Validator: at_least_one_of

Link to this macro exactly_one_of(attr_names) View Source (macro)

Validator: exactly_one_of

Link to this macro given(attr, do_block) View Source (macro)
Link to this macro group(group_name, options \\ [], block) View Source (macro)

Define a params group.

Link to this macro mutually_exclusive(attr_names) View Source (macro)

Validator: mutually_exclusive

Link to this macro optional(attr_name) View Source (macro)

Define a param should be present or not.

Link to this macro optional(attr_name, block) View Source (macro)
Link to this macro optional(attr_name, options, list) View Source (macro)
Link to this macro params(name, list) View Source (macro)

Define params block of current endpoint.

Link to this macro requires(attr_name) View Source (macro)

Define a param should be present.

Link to this macro requires(attr_name, block) View Source (macro)
Link to this macro requires(attr_name, options, list) View Source (macro)