CalCom.Rule (cal_com v0.3.0)

Copy Markdown

A fixed wire-value rule compiled from the Cal.com API contract.

Summary

Types

A closed description of a supported wire value.

t()

A value rule, including the provider's constraints.

Types

kind()

@type kind() ::
  :json
  | :string
  | :integer
  | :number
  | :boolean
  | :date
  | :datetime
  | {:object, module()}
  | {:array, t()}
  | {:enum, [{term(), atom() | number() | boolean()}]}
  | {:one_of, [t()]}
  | {:any_of, [t()]}

A closed description of a supported wire value.

t()

@type t() :: %CalCom.Rule{
  kind: kind(),
  max_items: non_neg_integer() | nil,
  max_length: non_neg_integer() | nil,
  maximum: number() | nil,
  min_items: non_neg_integer() | nil,
  min_length: non_neg_integer() | nil,
  minimum: number() | nil,
  nullable: boolean(),
  pattern: String.t() | nil,
  unique_items: boolean()
}

A value rule, including the provider's constraints.