SchemaErrorUnion
PackageReified.Schema
Schema input, checking, and contextual rule failures attached to diagnostics paths.
Specification
Kind
Union
Members
22
Examples
0
IsCustomSignature
this.IsCustom
IsExpectedObjectSignature
this.IsExpectedObject
IsConstructorFailedSignature
this.IsConstructorFailed
IsExpectedScalarSignature
this.IsExpectedScalar
IsParseOutOfRangeSignature
this.IsParseOutOfRange
Summary
| Name | Signature | Synopsis |
|---|---|---|
| IsCustom | this.IsCustom | No description available. |
| IsExpectedObject | this.IsExpectedObject | No description available. |
| IsConstructorFailed | this.IsConstructorFailed | No description available. |
| IsExpectedScalar | this.IsExpectedScalar | No description available. |
| IsParseOutOfRange | this.IsParseOutOfRange | No description available. |
| IsViolation | this.IsViolation | No description available. |
| IsOmitted | this.IsOmitted | No description available. |
| IsInvalidFormat | this.IsInvalidFormat | No description available. |
| IsExpectedMany | this.IsExpectedMany | No description available. |
| IsBlank | this.IsBlank | No description available. |
| IsUnknownTag | this.IsUnknownTag | No description available. |
| Omitted | Omitted | Required boundary input was not supplied. |
| Blank | Blank | Boundary input was present but carried no value. |
| ExpectedScalar | ExpectedScalar | A scalar was expected at this path. |
| ExpectedObject | ExpectedObject | An object was expected at this path. |
| ExpectedMany | ExpectedMany | A collection was expected at this path. |
| InvalidFormat | InvalidFormat expected | The input could not be read as the named target type. |
| ParseOutOfRange | ParseOutOfRange target | The input was well-formed but outside the target type's representable range. |
| UnknownTag | UnknownTag choices | A union or enum discriminator did not name one of the declared cases. |
| Violation | Violation violation | The value was read successfully and then failed its constraint. |
| ConstructorFailed | ConstructorFailed message | The model constructor rejected an otherwise admissible set of field values. |
| Custom | Custom(code, message) | A Schema-owned intrinsic check failed. |
Boundary input was present but carried no value. The parse-side lowering of a missing value.
Returns
unit
The input could not be read as the named target type.
Parameters
| Name | Type | Description |
|---|---|---|
| expected | string |
Returns
unit
The input was well-formed but outside the target type's representable range.
Parameters
| Name | Type | Description |
|---|---|---|
| target | string |
Returns
unit
A union or enum discriminator did not name one of the declared cases.
Parameters
| Name | Type | Description |
|---|---|---|
| choices | string |
Returns
unit
The value was read successfully and then failed its constraint.
Parameters
| Name | Type | Description |
|---|---|---|
| violation | Violation |
Returns
unit
The model constructor rejected an otherwise admissible set of field values.
Parameters
| Name | Type | Description |
|---|---|---|
| message | string |
Returns
unit