Files
reuse-surface/schemas/federation.schema.yaml
tegwick 40ab8dded0
Some checks failed
ci / validate-registry (push) Has been cancelled
Complete REUSE-WP-0005: registry federation and relation graphs
Add federation manifest and schema, federation compose and graph CLI commands,
relation cycle/reference checks, federated index and Mermaid graph artifacts,
RegistryFederation guide, and CI validation updates.
2026-06-15 01:43:02 +02:00

44 lines
1.0 KiB
YAML

$schema: https://json-schema.org/draft/2020-12/schema
$id: https://reuse-surface.local/schemas/federation.schema.yaml
title: Registry Federation Manifest
description: >
Schema for registry/federation/sources.yaml. Describes local and sibling
capability index sources to compose into a federated index.
type: object
additionalProperties: false
required: [version, domain, collision_policy, sources]
properties:
version:
type: integer
minimum: 1
domain:
type: string
collision_policy:
type: string
enum: [warn, fail]
sources:
type: array
minItems: 1
items:
$ref: '#/$defs/source'
$defs:
source:
type: object
additionalProperties: false
required: [repo, index, enabled]
properties:
repo:
type: string
minLength: 1
index:
type: string
minLength: 1
enabled:
type: boolean
required:
type: boolean
default: false
domain:
type: string
description:
type: string