Hyperlinkv0.8.0-beta.28

Schema

Schema.isLessThanconsteffect/Schema.ts:7397
(
  exclusiveMaximum: number,
  annotations?: Annotations.Filter
): SchemaAST.Filter<number>

Validates that a number is less than the specified value (exclusive).

Details

JSON Schema:

This check corresponds to the exclusiveMaximum constraint in JSON Schema.

Arbitrary:

When generating test data with fast-check, this applies an exclusiveMaximum constraint to ensure generated numbers are less than the specified value.

Number checks
Source effect/Schema.ts:73979 lines
export const isLessThan = makeIsLessThan({
  order: Order.Number,
  annotate: (exclusiveMaximum) => ({
    meta: {
      _tag: "isLessThan",
      exclusiveMaximum
    }
  })
})
Referenced by 1 symbols