SchemaGenModule
PackageReified.Schema.Testing
FsCheck generators derived from Schema metadata.
Summary
| Name | Signature | Synopsis |
|---|---|---|
| rawWith | SchemaGen.rawWith custom schema | Derives constraint-satisfying structured data, using field-path overrides for unsupported constraints or domain-specific distributions. |
| raw | SchemaGen.raw schema | Derives a generator of constraint-satisfying structured data for a built schema. |
| model | SchemaGen.model schema | Derives models by generating structured data and parsing it through the schema. |
Derives constraint-satisfying structured data, using field-path overrides for unsupported constraints or domain-specific distributions.
Parameters
| Name | Type | Description |
|---|---|---|
| custom | Map<string, Gen<Data>> | |
| schema | Schema<'model> |
Returns
Result<Gen<Data>, SchemaGenerationError>
Derives a generator of constraint-satisfying structured data for a built schema.
Parameters
| Name | Type | Description |
|---|---|---|
| schema | Schema<'model> |
Returns
Result<Gen<Data>, SchemaGenerationError>