(error: Formatter<E>, defect: Formatter<unknown>)
| 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 | */ |
| 9202 | export function isMinProperties(minProperties: number, annotations?: Annotations.Filter) { |
| 9203 | minProperties = Math.max(0, Math.floor(minProperties)) |
| 9204 | return makeFilter<object>( |
no test coverage detected
searching dependent graphs…