Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 736 Bytes

comparisons.md

File metadata and controls

57 lines (39 loc) · 736 Bytes

Comparisons

A policy rule specifies expected values for each attribute.

An attribute is associated to a comparison.

With this comparison, the library will be able to determine if the attribute matches the expected value.

This is the list of the available comparisons. Feel free to suggest new ones.

Numeric

  • isEqual

  • greaterThan

  • lesserThan

String

  • isEqual

  • isNotEqual

Date

  • isBetween

  • isMoreRecentThan

  • IsLessRecentThan

Array

  • isIn

  • isNotIn

  • intersect

  • doNotIntersect

  • contains

Boolean

  • boolAnd

  • boolOr

  • isNull

  • isNotNull

Object

  • isFieldEqual

User

  • isFieldEqual