DeriveSchemaAttributeType

PackageReified.Schema
Marks a plain record for schema derivation: schemagen generates its permissive schema. The advice is to put this on wire DTOs — records that carry no invariants of their own. The attributes in this namespace are inert metadata: they are read from source text at generation time, never by runtime reflection.

Specification

Kind
Type
Members
3
Examples
0
``.ctor``Signature
DeriveSchemaAttribute()
VersionSignature
this.Version
ContractSignature
this.Contract

Summary

NameSignatureSynopsis
Operations
``.ctor``DeriveSchemaAttribute()No description available.
Versionthis.VersionThe frozen version number of this record within its contract.
Contractthis.ContractThe versioned contract this record belongs to, when its name does not follow the `XxxVn` / `Xxx` convention.

Operations

kind:typekind:member

``.ctor``

DeriveSchemaAttribute()
Member

Returns

DeriveSchemaAttribute
kind:member

Version

this.Version
Member
The frozen version number of this record within its contract. Omit it on the contract's current version, whose number is always one past the highest frozen version.

Returns

int
kind:member

Contract

this.Contract
Member
The versioned contract this record belongs to, when its name does not follow the `XxxVn` / `Xxx` convention. A dotted name is fully qualified (`"My.Contracts.Profile"`); a bare name is relative to the record's own namespace or module. Versions of one contract may live in any files and containers, as long as compile order declares them oldest to newest.

Returns

string