MCPcopy Create free account
hub / github.com/effect-app/libs / causeReasonToFormatter

Function causeReasonToFormatter

repos/effect/packages/effect/src/Schema.ts:9190–9201  ·  view source on GitHub ↗
(error: Formatter<E>, defect: Formatter<unknown>)

Source from the content-addressed store, hash-verified

9188 *
9189 * JSON Schema:
9190 *
9191 * This check corresponds to the `minProperties` constraint in JSON Schema.
9192 *
9193 * Arbitrary:
9194 *
9195 * When generating test data with fast-check, this applies a node-local
9196 * `minLength` constraint. Object generators interpret it as the final number
9197 * of own properties.
9198 *
9199 * @category validation
9200 * @since 4.0.0
9201 */
9202export function isMinProperties(minProperties: number, annotations?: Annotations.Filter) {
9203 minProperties = Math.max(0, Math.floor(minProperties))
9204 return makeFilter<object>(

Callers 2

CauseReasonFunction · 0.85
causeToFormatterFunction · 0.85

Calls 1

errorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…