View Source Flagsmith.Schemas.Types.Operator (flagsmith_engine v2.1.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

@type t() ::
  :NOT_CONTAINS
  | :REGEX
  | :EQUAL
  | :GREATER_THAN
  | :GREATER_THAN_INCLUSIVE
  | :LESS_THAN
  | :LESS_THAN_INCLUSIVE
  | :NOT_EQUAL
  | :CONTAINS
  | :IS_SET
  | :IS_NOT_SET
  | :MODULO
  | :PERCENTAGE_SPLIT
  | :IN

Link to this section Functions

Dumps but raises in case of non-valid data

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

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