View Source Flagsmith.Schemas.Types.Operator (flagsmith_engine v1.0.0)

Ecto Type representing an atom based enum mapping to the possible condition operators in Flagsmith.

Link to this section Summary

Functions

Dumps but raises in case of non-valid data

Given a desired format returns the matching values for that format, where format can be :atoms | :strings

Link to this section Types

Specs

t() ::
  :NOT_CONTAINS
  | :REGEX
  | :EQUAL
  | :GREATER_THAN
  | :GREATER_THAN_INCLUSIVE
  | :LESS_THAN
  | :LESS_THAN_INCLUSIVE
  | :NOT_EQUAL
  | :CONTAINS
  | :PERCENTAGE_SPLIT

Link to this section Functions

Dumps but raises in case of non-valid data

Specs

values(:atoms | :strings) :: [t()] | [String.t()]

Given a desired format returns the matching values for that format, where format can be :atoms | :strings