Hyperlinkv0.8.0-beta.28

Schema

Schema.isGreaterThanconsteffect/Schema.ts:7341
(
  exclusiveMinimum: number,
  annotations?: Annotations.Filter
): SchemaAST.Filter<number>

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

Details

JSON Schema:

This check corresponds to the exclusiveMinimum constraint in JSON Schema.

Arbitrary:

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

Number checks
Source effect/Schema.ts:73419 lines
export const isGreaterThan = makeIsGreaterThan({
  order: Order.Number,
  annotate: (exclusiveMinimum) => ({
    meta: {
      _tag: "isGreaterThan",
      exclusiveMinimum
    }
  })
})
Referenced by 1 symbols