VersionSourceUnion
PackageReified.Schema
VersionSource
VersionSource is the explicit source of a contract version, chosen with Contract.build when a versioned contract is
declared.
| Source | Use |
|---|---|
VersionSource.Field "schemaVersion" |
Read a positive integer version from an input field. |
VersionSource.External |
The caller knows the version out of band and calls Contract.parseVersion. |
VersionSource.UnversionedMeans 1 |
Treat input without a marker as one registered version. |
Contract.parse reads the declared source to select the frozen schema for the input version before parsing and
migrating. See Versioned Contracts for the full workflow.
Specification
Kind
Union
Members
6
Examples
0
IsFieldSignature
this.IsField
IsExternalSignature
this.IsExternal
IsUnversionedMeansSignature
this.IsUnversionedMeans
FieldSignature
Field wireName
ExternalSignature
External
Summary
| Name | Signature | Synopsis |
|---|---|---|
| Union cases | ||
| IsField | this.IsField | No description available. |
| IsExternal | this.IsExternal | No description available. |
| IsUnversionedMeans | this.IsUnversionedMeans | No description available. |
| Field | Field wireName | No description available. |
| External | External | No description available. |
| UnversionedMeans | UnversionedMeans version | No description available. |