Catalog Schema#
The catalog/catalog.yaml file is the organization-wide index of released API schemas. It is generated automatically by apx catalog generate (run by canonical CI on every merge) and consumed by apx search, apx show, apx add, apx update, and apx upgrade.
Catalog File Structure#
version: 1
org: acme
repo: apis
modules:
- id: proto/payments/ledger/v1
format: proto
domain: payments
api_line: v1
description: Payments ledger service API
lifecycle: stable
version: v1.2.3
latest_stable: v1.2.3
latest_prerelease: v1.3.0-beta.1
path: proto/payments/ledger/v1
tags: [payments, internal]
owners: [payments-team]
Top-Level Fields#
Field |
Type |
Description |
|---|---|---|
|
integer |
Catalog schema version (always |
|
string |
GitHub organization name |
|
string |
Canonical API repository name |
|
list |
List of API module entries |
Module Entry Fields#
Each entry in modules describes a single released API line.
Identity#
Field |
Type |
Required |
Description |
|---|---|---|---|
|
string |
yes |
Canonical API ID: |
|
string |
yes |
Schema format: |
|
string |
no |
Business domain (e.g. |
|
string |
no |
API compatibility line (e.g. |
|
string |
yes |
Filesystem path in the canonical repository |
|
string |
no |
Human-readable description |
Versions#
Field |
Type |
Description |
|---|---|---|
|
string |
Current/latest version of this API line |
|
string |
Latest stable release tag (no prerelease suffix) |
|
string |
Latest prerelease tag ( |
apx update uses latest_stable first, falling back to latest_prerelease, then version.
Lifecycle and Compatibility#
Field |
Type |
Allowed Values |
Description |
|---|---|---|---|
|
string |
|
Maturity/support state |
|
string |
|
Derived compatibility signal |
|
string |
Human-readable production recommendation |
Metadata#
Field |
Type |
Description |
|---|---|---|
|
list of strings |
Searchable tags (e.g. |
|
list of strings |
Team or individual owners (e.g. |
External API Provenance#
These fields are populated only for external and forked APIs (registered via external_apis in apx.yaml). First-party APIs leave them empty.
Field |
Type |
Allowed Values |
Description |
|---|---|---|---|
|
string |
|
Classification of the API source |
|
string |
Internal repository hosting curated snapshots |
|
|
string |
Original external repository URL |
|
|
string |
Path within the upstream repository |
|
|
string |
|
Import path handling strategy |
How the Catalog Is Generated#
apx catalog generate (or apx catalog generate --from-tags) scans the canonical repository and builds catalog.yaml from:
Git tags β tags matching
<format>/<domain>/<name>/<line>/v<semver>are parsed to populateversion,latest_stable, andlatest_prereleaseExternal API registrations β
external_apisentries inapx.yamlare merged in to add provenance fields
The canonical CI workflow runs apx catalog generate on every merge to keep the catalog current.
# Regenerate from git tags (canonical CI)
apx catalog generate --from-tags
# Regenerate from directory scan
apx catalog generate
Configuring Remote Catalog Access#
App repos and CI pipelines that donβt clone the canonical repository can point at a hosted catalog via catalog_url in apx.yaml:
catalog_url: https://raw.githubusercontent.com/acme/apis/main/catalog/catalog.yaml
All five consumer commands (search, show, add, update, upgrade) check catalog_url automatically when --catalog is not provided. See Configuration Reference.
See Also#
Dependency Discovery β search and show
Adding Dependencies β
apx addUpdates and Upgrades β
apx update/apx upgradeExternal APIs β registering third-party APIs