Table of Contents

Class Attestation

Namespace
SpecWorks.AiCatalog.Models
Assembly
SpecWorks.AiCatalog.dll

An attestation representing a verifiable proof (audit report, compliance cert, etc.).

public sealed class Attestation
Inheritance
object
Attestation

Properties

Description

Optional human-readable description.

[JsonPropertyName("description")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Description { get; set; }

Property Value

string

Digest

Optional digest of the attestation document (e.g., "sha256:abc...").

[JsonPropertyName("digest")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Digest { get; set; }

Property Value

string

ExtensionData

Unknown properties at the object level, preserved for round-trip fidelity.

[JsonExtensionData]
public Dictionary<string, JsonElement>? ExtensionData { get; set; }

Property Value

Dictionary<string, JsonElement>

MediaType

Media type of the attestation document (required).

[JsonPropertyName("mediaType")]
public string MediaType { get; set; }

Property Value

string

Size

Optional size in bytes of the attestation document (must be non-negative).

[JsonPropertyName("size")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public long? Size { get; set; }

Property Value

long?

Type

The attestation type (e.g., "SOC2-Type2") (required).

[JsonPropertyName("type")]
public string Type { get; set; }

Property Value

string

Uri

URI to the attestation document (required).

[JsonPropertyName("uri")]
public string Uri { get; set; }

Property Value

string