Class GovernanceSchemaVersions
- Namespace
- AsiBackbone.Core.Serialization
- Assembly
- AsiBackbone.Core.dll
Defines schema version constants for persisted or exported AsiBackbone governance artifacts.
public static class GovernanceSchemaVersions
- Inheritance
-
GovernanceSchemaVersions
- Inherited Members
Fields
StableArtifactsV1
Gets the initial stable schema version for persisted or exported AsiBackbone governance artifacts.
public const string StableArtifactsV1 = "1.0.0"
Field Value
StableArtifactsV2
Gets the second stable schema version, which adds the issuer-bound capability grant use limit.
public const string StableArtifactsV2 = "2.0.0"
Field Value
Remarks
A grant recording StableArtifactsV1 is canonicalized without the use limit, so grants signed before this version continue to verify unchanged. Only a grant recording this version binds a use limit into its signature.
Methods
Normalize(string?)
Normalizes a caller-supplied schema version to the current stable artifact schema version when none is supplied.
public static string Normalize(string? schemaVersion)
Parameters
schemaVersionstringThe caller-supplied schema version.
Returns
- string
The normalized schema version.