InspectModule
PackageReified.Schema
Inspect
Inspect.model turns a schema into finite metadata without parsing input or running application code. The result
contains field names, nested shapes, union cases, and the inspectable constraints attached to each value.
Forms, admin interfaces, and documentation tools can use this model to choose controls and display rules before a user submits data. Opaque constraints remain identified as runtime-only because their predicates cannot be exported.
Summary
| Name | Signature | Synopsis |
|---|---|---|
| model | Inspect.model schema | Describes a built model schema as inspectable field metadata. |
| schema | Inspect.schema schema | Describes a value schema as inspectable shape, format, and constraint metadata. |
| field | Inspect.field field | Describes a standalone schema field as inspectable field metadata. |
Describes a built model schema as inspectable field metadata.
Parameters
| Name | Type | Description |
|---|---|---|
| schema | Schema<'model> | The built model schema to describe. |
Returns
ModelDescription
Verification Examples
let description = Inspect.model customerSchema
let names = description.Fields |> List.map _.NameDescribes a value schema as inspectable shape, format, and constraint metadata.
Parameters
| Name | Type | Description |
|---|---|---|
| schema | Schema<'value> | The value schema to describe. |
Returns
SchemaDescription