Files
structured-media-builder-OPEN/schemas/repository.schema.json
T

397 lines
7.9 KiB
JSON
Raw Normal View History

2026-10-18 09:21:12 -06:00
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://projects.eddiesoehnel.com/adminprojects/repo-template/schemas/repository.schema.json",
"title": "AI-Ready Repository Manifest",
"description": "Machine-readable identity, discovery, rights, provenance, maintenance, and AI retrieval metadata for an AI-ready repository.",
"type": "object",
"required": [
"schema_version",
"repository_id",
"name",
"title",
"description",
"authors",
"publisher",
"repository_status",
"visibility",
"maturity",
"version",
"resource_types",
"entrypoints",
"rights",
"maintenance",
"ai_retrieval"
],
"properties": {
"$schema": {
"type": "string"
},
"schema_version": {
"type": "string",
"pattern": "^\\d+\\.\\d+$"
},
"repository_id": {
"type": "string",
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"name": {
"type": "string",
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"title": {
"type": "string",
"minLength": 1
},
"description": {
"type": "string",
"minLength": 1
},
"summary": {
"type": "string"
},
"canonical_url": {
"type": [
"string",
"null"
],
"format": "uri"
},
"organization": {
"$ref": "#/$defs/namedEntity"
},
"authors": {
"type": "array",
"minItems": 1,
"items": {
"$ref": "#/$defs/namedEntity"
}
},
"publisher": {
"$ref": "#/$defs/namedEntity"
},
"repository_status": {
"enum": [
"draft",
"active",
"deprecated",
"archived",
"superseded"
]
},
"visibility": {
"enum": [
"public",
"restricted",
"private"
]
},
"maturity": {
"enum": [
"concept",
"experimental",
"prototype",
"beta",
"stable",
"production"
]
},
"version": {
"type": "string",
"pattern": "^\\d+\\.\\d+\\.\\d+(?:[-+][0-9A-Za-z.-]+)?$"
},
"created_at": {
"type": "string",
"format": "date"
},
"updated_at": {
"type": "string",
"format": "date"
},
"resource_types": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"topics": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
}
},
"audiences": {
"$ref": "#/$defs/stringArray"
},
"problems_solved": {
"$ref": "#/$defs/stringArray"
},
"capabilities": {
"$ref": "#/$defs/stringArray"
},
"use_cases": {
"$ref": "#/$defs/stringArray"
},
"required_inputs": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"description",
"required",
"sensitivity"
],
"properties": {
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"required": {
"type": "boolean"
},
"sensitivity": {
"type": "string"
}
},
"additionalProperties": false
}
},
"expected_outputs": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"description",
"format"
],
"properties": {
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"format": {
"type": "string"
}
},
"additionalProperties": false
}
},
"entrypoints": {
"type": "object",
"required": [
"human",
"ai"
],
"properties": {
"human": {
"type": "string"
},
"ai": {
"type": "string"
},
"primary_skill": {
"type": [
"string",
"null"
]
},
"primary_agent": {
"type": [
"string",
"null"
]
},
"primary_script": {
"type": [
"string",
"null"
]
},
"primary_template": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"contents": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"type",
"title",
"description",
"required_for_use"
],
"properties": {
"path": {
"type": "string"
},
"type": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"required_for_use": {
"type": "boolean"
}
},
"additionalProperties": false
}
},
"relationships": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/stringArray"
}
},
"access": {
"type": "object",
"additionalProperties": {
"type": "boolean"
}
},
"rights": {
"type": "object",
"required": [
"license",
"license_file"
],
"properties": {
"license": {
"type": "string"
},
"license_file": {
"type": "string"
},
"usage_guidance": {
"type": "string"
}
},
"additionalProperties": false
},
"provenance": {
"type": "object",
"properties": {
"origin_type": {
"type": "string"
},
"creation_method": {
"type": "string"
},
"contributors": {
"type": "array"
},
"source_references": {
"$ref": "#/$defs/stringArray"
}
},
"additionalProperties": false
},
"maintenance": {
"type": "object",
"required": [
"maintainer",
"review_frequency",
"deprecated",
"archived"
],
"properties": {
"maintainer": {
"type": [
"string",
"null"
]
},
"review_frequency": {
"type": "string"
},
"last_reviewed_at": {
"type": [
"string",
"null"
],
"format": "date"
},
"deprecated": {
"type": "boolean"
},
"archived": {
"type": "boolean"
}
},
"additionalProperties": false
},
"ai_retrieval": {
"type": "object",
"required": [
"read_first",
"retrieve_as_needed",
"exclude_by_default",
"instructions"
],
"properties": {
"read_first": {
"$ref": "#/$defs/stringArray"
},
"retrieve_as_needed": {
"$ref": "#/$defs/stringArray"
},
"exclude_by_default": {
"$ref": "#/$defs/stringArray"
},
"instructions": {
"type": "string"
}
},
"additionalProperties": false
}
},
"$defs": {
"stringArray": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"namedEntity": {
"type": "object",
"required": [
"name"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}