Table of Contents

Class CatalogEntry

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

A single catalog entry describing an AI artifact. Must have exactly one of Url or Data.

public sealed class CatalogEntry
Inheritance
object
CatalogEntry
Extension Methods

Properties

Data

Embedded artifact content (opaque JSON value). Mutually exclusive with Url.

[JsonPropertyName("data")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonConverter(typeof(PreservingNullableJsonElementConverter))]
public JsonElement? Data { get; set; }

Property Value

JsonElement?

Description

Optional human-readable description of the artifact.

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

Property Value

string

Digest

Optional digest of the artifact.

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

Property Value

string

DisplayName

The optional human-readable display name.

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

Property Value

string

ExtensionData

Unknown properties preserved for forward compatibility (MUST ignore per VH-2).

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

Property Value

Dictionary<string, JsonElement>

Extensions

Optional namespaced extension values.

[JsonPropertyName("extensions")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public Dictionary<string, JsonElement>? Extensions { get; set; }

Property Value

Dictionary<string, JsonElement>

Identifier

The unique identifier for this entry.

[JsonPropertyName("identifier")]
public string Identifier { get; set; }

Property Value

string

MediaType

Compatibility property; it is not a v0.9 wire member.

[JsonIgnore]
public string MediaType { get; set; }

Property Value

string

Metadata

Compatibility property; it is not a v0.9 wire member.

[JsonIgnore]
public JsonElement? Metadata { get; set; }

Property Value

JsonElement?

Publisher

Optional publisher information.

[JsonPropertyName("publisher")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public Publisher? Publisher { get; set; }

Property Value

Publisher

Tags

Optional string tags for categorization.

[JsonPropertyName("tags")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<string>? Tags { get; set; }

Property Value

List<string>

TrustManifest

Compatibility property; it is not a v0.9 wire member.

[JsonIgnore]
public TrustManifest? TrustManifest { get; set; }

Property Value

TrustManifest

TrustManifests

Optional trust manifests for this entry.

[JsonPropertyName("trustManifests")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<TrustManifest>? TrustManifests { get; set; }

Property Value

List<TrustManifest>

Type

The required artifact type.

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

Property Value

string

UpdatedAt

Optional RFC 3339 datetime when the entry was last updated.

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

Property Value

string

Url

URL to the artifact. Mutually exclusive with Data.

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

Property Value

string

Version

Optional version string for multi-version entries.

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

Property Value

string