SchemaGenModule

PackageReified.Schema.Testing
FsCheck generators derived from Schema metadata.

Summary

NameSignatureSynopsis
rawWithSchemaGen.rawWith custom schemaDerives constraint-satisfying structured data, using field-path overrides for unsupported constraints or domain-specific distributions.
rawSchemaGen.raw schemaDerives a generator of constraint-satisfying structured data for a built schema.
modelSchemaGen.model schemaDerives models by generating structured data and parsing it through the schema.

rawWith

SchemaGen.rawWith custom schema
Member
Derives constraint-satisfying structured data, using field-path overrides for unsupported constraints or domain-specific distributions.

Parameters

NameTypeDescription
customMap<string, Gen<Data>>
schemaSchema<'model>

Returns

Result<Gen<Data>, SchemaGenerationError>

raw

SchemaGen.raw schema
Member
Derives a generator of constraint-satisfying structured data for a built schema.

Parameters

NameTypeDescription
schemaSchema<'model>

Returns

Result<Gen<Data>, SchemaGenerationError>

model

SchemaGen.model schema
Member
Derives models by generating structured data and parsing it through the schema.

Parameters

NameTypeDescription
schemaSchema<'model>

Returns

Result<Gen<'model>, SchemaGenerationError>