API Reference

Reified.Constraint

Catalogue

Module

Catalogue is the built-in message catalogue for Reified.Constraint: one canonical source for every interpreted rule's key segments, argument names, neutral English predicate, and plural operand.

Constraint

Module

Creates, executes, composes, and inspects constraints.

ConstraintAtom

Module

Projects message keys and default English phrases from expectation values.

ConstraintDSL

Module

Constraint constructors usable without the Constraint.

ConstraintDescription

Module

Builds and traverses constraint descriptions.

ConstraintValue

Module

Builds and renders portable constraint values.

ConstraintValueInternals

Module

The boxed-value projection behind tryCreate.

MessageDescriptor

Module

Reads and builds message identities.

MessageFormatSpec

Module

Reads and builds catalogue-owned rendering metadata.

Renderer

Module

Builds renderers and renders messages through them.

UnsupportedOperation

Module

Projects message keys and default English phrases from unsupported-operand reports.

Violation

Module

Inspects, traverses, and renders violations.

AtomicViolation

Union

Why one indivisible constraint failed.

Cardinality

Union

What a size rule expects of a text length or collection count.

Constraint<'value>

Type

A reusable description of valid values, coupled to the closures that execute it.

ConstraintAtom

Union

One interpreted primitive: the complete semantic identity of a built-in constraint.

ConstraintDescription

Record

What a constraint says, as inspectable data.

ConstraintExpression

Union

The logical form of a constraint.

ConstraintValue

Union

The closed set of operand and actual-value representations a constraint may carry across a description, diagnostic, or localization boundary.

Format

Union

The built-in text formats.

Membership

Union

What a membership rule expects.

MessageDescriptor

Record

A message identity and the operands its template may interpolate.

MessageFormatSpec

Record

A descriptor plus the rendering metadata its owning catalogue holds: the neutral fallback template and the optional plural operand.

MessageFormatSpecError

Union

Why a message format specification was rejected.

MessageKeyError

Union

Why a relative message key could not be parsed.

MessageLeaf

Union

One leaf of a projected message tree.

MessageLookup

Type

The ordinary resource lookup: an encoded resource key in, a translated template out.

MessageRequest

Record

One contextual level's request to an advanced resolver.

MessageResolution

Union

What an advanced resolver found for one contextual level.

MessageResolver

Type

Resolves one contextual level, or declines so Reified continues to a less specific one.

MessageTree

Union

A violation projected for an external localization system, retaining its grouping.

Number

Union

What a numeric-property rule expects.

OpaqueConstraint

Union

Why a constraint is invisible to export and proof.

PortableFloat

Record

An IEEE double retaining structural self-equality, including NaN and signed zero.

PortableFloat32

Record

An IEEE single retaining structural self-equality, including NaN and signed zero.

Presence

Union

What a presence rule expects of a value's shape.

Relation

Union

What an ordering or equality rule expects.

RelationOperator

Union

The comparison a relation asserts between a value and an operand.

Renderer

Type

Renders localized messages for one document context and attribute.

UnsupportedOperation

Union

A built-in operation that received an operand outside the portable value set.

ValueFormatRequest

Record

A value to format, with the placeholder's format suffix when it carried one.

Violation

Union

Why a value failed its constraint.

Reified.Data

Data

Module

No description available.

DataDSL

Module

Reified.DataDSL provides short names and the => and ?=> operators for data construction and editing.

DataEdit

Module

No description available.

DataErgonomicsHelpers

Module

No description available.

DataPath

Module

Helpers for constructing, parsing, and rendering structured data paths.

Data

Union

A portable tree for structured data.

DataCase

Record

A named materialized structured-data case.

DataConversionLimits

Record

Resource bounds for flattened configuration, environment and CLI conversion.

DataDifference

Record

One focused difference between expected and actual structured data.

DataDifferenceCause

Union

The reason an exact structural comparison differed.

DataDimension

Record

One independent axis in a bounded Cartesian data matrix.

DataEdit

Type

An opaque immutable edit applied by Data.tryPatch or Data.patch.

DataEnvironmentOptions

Record

How Data.ofEnvironmentWith selects environment variables and splits their names into sections.

DataExpectation

Type

An opaque path-based expectation.

DataField

Type

An opaque object-field instruction shared by data literals and object patterns.

DataMatchException

Type

Raised by matching when one or more expectations fail.

DataMismatch

Record

One failed selective or recursive data expectation.

DataPatchException

Type

Raised by Data.patch when an edit cannot be applied.

DataPatchFailure

Record

Describes why one immutable data edit could not be applied.

DataPath

Type

A path that addresses a location in structured data.

DataPathSegment

Union

A segment in a structured data path.

DataPattern

Type

DataPattern is the closed vocabulary of produced-data expectations.

DataVariation

Record

A named immutable variation from one baseline value.

PatternConversion

Type

No description available.

Reified.Parse

Reified.Refinements

Refinements

Namespace

No description available.

Bounded

Module

Operations over values that carry their permitted range.

BoundedFloat

Module

Operations over bounded values whose bounds carry a numeric width.

DistinctList

Module

Operations over lists known to hold no duplicates.

FiniteFloat

Module

Operations over floats that are known to be neither infinite nor <c>NaN</c>.

FiniteFloat32

Module

Operations over single-precision floats that are known to be finite.

Interval

Module

Operations over inclusive ranges of ordered values.

NonBlankString

Module

Operations over text known to carry non-whitespace content.

NonEmptyArray

Module

Operations over arrays that carry their non-emptiness in the type.

NonEmptyList

Module

Operations over lists that carry their non-emptiness in the type.

Refine

Module

Smart constructors for built-in refined values, and the refinements behind them.

Character

Module

Character predicate helpers.

Choice

Module

Choice combinators for ordinary fallible conversion functions.

Collection

Module

Collection refined value constructors and helpers.

Text

Module

Text refined value constructors and helpers.

Refinement

Module

Creates and applies reusable refinement definitions.

Secret

Module

Explicit creation and access for secret values.

UnitInterval

Module

Operations over proportions between zero and one.

Bounded<'value>

Record

A value paired with the inclusive interval it is known to lie within.

DateRange

Type

An inclusive range of instants.

DistinctList<'value>

Union

A list with no duplicate items, preserving first-seen order.

FiniteFloat

Union

A double-precision float that is neither infinite nor NaN.

FiniteFloat32

Union

A single-precision float that is neither infinite nor NaN.

Interval<'value>

Record

An inclusive range of ordered values where Lower <= Upper.

NonBlankString

Union

A string that is not null, empty, or whitespace.

NonEmptyArray<'value>

Union

An array that contains at least one item.

NonEmptyList<'value>

Union

A list that contains at least one item.

Refinement<'underlying, 'refined>

Type

Admission into an invariant-carrying value, and its total reverse projection.

Secret<'value>

Type

A reference-equality value with redacted display and explicit Secret.reveal access.

UnitInterval

Union

A finite double between zero and one inclusive.

Reified.Result

Reified.Schema

Declare schemas

Schema

Module

The Schema module contains primitive schemas, collection and recursion combinators, union constructors, and the operations that parse or check a completed declaration.

SchemaDSL

Module

The concise schema-definition vocabulary: the record computation expression, its field and constructor forms, and the collection-schema operations.

Field

Module

Functions for inspecting schema field metadata.

field<'model, 'target>

Type

Declares one field inside schema<'model> { }, and configures it when followed by a block.

EnumCase

Module

Functions for defining explicit payload-less enum schema cases.

UnionCase

Module

Functions for defining explicit tagged union schema cases.

ExternalFieldName

Type

Represents the source-facing name of a schema field.

FieldOrder

Type

Represents the zero-based position of a schema field in a model constructor and ordered interpreter output.

RefinedSchemas

Module

Ready-made schemas for the built-in refined values.

SchemaDefaults

Type

Canonical value-schema resolution for a schema field.

SchemaFormat

Type

Identifies the portable named format of a schema value, such as email.

Supply

Union

Whether boundary input for a field must be supplied.

UnionRepresentation

Union

UnionRepresentation is a complete, inspectable union wire representation.

UnionRepresentations

Module

UnionRepresentations holds complete, ready-made union wire representations for recommended authoring and serializer-compatible lifting.

UnionPayloadStyle

Union

UnionPayloadStyle controls how a case's authored fields are represented inside adjacent or external union tagging.

IRecordPlanCompiler<'model, 'result>

Type

Builds an interpreter-specific typed record plan from a model schema's authored shape.

IRecordPlanState<'model, 'constructorIn, 'constructorOut>

Type

Holds an interpreter-specific typed record-plan fragment while compiling a schema.

Parse and validate

Interpret schemas

Schema descriptions

Generated schema declarations

AtLeastAttribute

Type

Bounds a numeric field's value inclusively from below (>= in the contract grammar).

AtMostAttribute

Type

Bounds a numeric field's value inclusively from above (<= in the contract grammar).

DefaultAttribute

Type

Supplies the field's default when the payload omits it.

DeriveSchemaAttribute

Type

Marks a plain record for schema derivation: schemagen generates its permissive schema.

DeriveUnionAttribute

Type

Marks a discriminated union for generated Schema support.

DistinctAttribute

Type

Requires the elements of a list field to be distinct.

EmailAttribute

Type

Constrains a text field to the email format.

FormatAttribute

Type

Adds open format metadata to the field schema.

GreaterThanAttribute

Type

Bounds a numeric field's value exclusively from below (> in the contract grammar).

LengthAttribute

Type

Requires the natural length of a text, list, or map field to equal the supplied value.

LengthBetweenAttribute

Type

Bounds the natural length of a text, list, or map field inclusively.

LessThanAttribute

Type

Bounds a numeric field's value exclusively from above (< in the contract grammar).

MaxAttribute

Type

Bounds the natural length of a text, list, or map field from above.

MinAttribute

Type

Bounds the natural length of a text, list, or map field from below.

MultipleOfAttribute

Type

Constrains a numeric field's value to whole multiples of the given step.

PatternAttribute

Type

Constrains a text field to the given regular expression.

PresentAttribute

Type

Requires a string, collection, or optional field value to be present.

SchemaAliasAttribute

Type

Adds one exact, input-only alternate wire name for a generated record field.

SchemaConstructorAttribute

Type

Marks the static member the derived schema calls to assemble the record, instead of a record literal.

SchemaNameAttribute

Type

Overrides the external name of one record field or one nullary union case.

SuppliedAttribute

Type

Requires the input payload to supply the field key.

UnionPayloadStyleKind

Type

Selects how generated case fields are nested by adjacent or external representations.

UnionRepresentationKind

Type

Selects a complete generated union wire representation.

Reified.SchemaGen

SchemaGen

Namespace

No description available.

Emitter

Module

Emits the checked-in F# for a resolved contract file: one public record, schema, validate, parse, and Fields module per contract, in declaration order.

FieldDecl

Module

No description available.

GenerationPipeline

Module

Shared parse, resolve, and emit pipeline used by the CLI and the MSBuild task.

GeneratedFile

Record

One emitted source file: the input it was generated from and its resulting content.

Parser

Module

Parses .contract source text into the contract AST with line-precise diagnostics.

Records

Module

The record frontend: parses F# source with the F# compiler's syntax tree (no type checking) and lowers [<DeriveSchema>]-marked records into the same ContractDecl AST the .contract parser produces, so both entry points share the resolver and emitter.

Resolver

Module

Semantic validation over parsed contract files: reference resolution, constraint/type compatibility, defaults, and declaration ordering.

Annotation

Record

An @name literal?

ConstraintDecl

Union

One portable constraint retained by the shared generation pipeline.

ContractDecl

Record

One declared contract at one version.

ContractDiagnostic

Record

A line-precise parse or resolution problem.

ContractFile

Record

A parsed contract source file.

ContractRef

Record

A reference to another contract at a pinned version, e.g.

ExternalEnumCase

Record

One case of a user-owned nullary discriminated union used as an enum field.

ExternalUnionCase

Record

One case of a user-owned internally tagged union.

ExternalUnionField

Record

One named field carried directly by a user-owned union case.

ExternalUnionPayload

Union

The payload shape of one user-owned internally tagged union case.

ExternalUnionRepresentation

Union

No description available.

FieldDecl

Record

One declared contract field.

FieldType

Union

A field's declared type.

Literal

Union

A literal value in a contract declaration.

PrimitiveType

Union

The primitive type heads the grammar knows.

SchemaNaming

Union

How field names and nullary union case names become external names when no [<SchemaName>] override is present.

UnionCaseDecl

Record

One case of an inline tagged union block.

Reified.Schema.Testing