SchemaDescriptionRecord

PackageReified.Schema
Helpers for walking inspectable schema descriptions.

Fields

NameTypeDescription
ShapeShapeThe structural shape of the value.
FormatFormatThe declared boundary format, when one was attached with Schema.withFormat.
ConstraintsConstraintsThe constraint descriptions attached to this value schema layer, in declaration order.
SupplySupplyThe boundary supply declaration attached to this layer, when one was made.
DescriptionDescriptionThe description metadata, when one was attached with Schema.describe.
DefaultDefaultThe default-value metadata, when one was attached with Schema.withDefault.

Specification

Kind
Record
Members
1
Examples
0
unwrapOptionalSignature
SchemaDescription.unwrapOptional description

Summary

NameSignatureSynopsis
Operations
unwrapOptionalSchemaDescription.unwrapOptional descriptionReturns the payload description when the supplied description is an optional value.

Operations

kind:member

unwrapOptional

SchemaDescription.unwrapOptional description
Member
Returns the payload description when the supplied description is an optional value.

Parameters

NameTypeDescription
descriptionSchemaDescription

Returns

SchemaDescription option