mirror of
https://github.com/apache/airflow.git
synced 2026-11-04 07:12:48 +00:00
Pydantic contract models validate every JSON payload the registry
produces (providers catalog, modules, parameters, connections,
version metadata, provider versions). Validation runs at generation
time — no separate jsonschema layer needed.
An OpenAPI 3.1 spec is generated from these contracts at build time
and powers an interactive API Explorer at /api-explorer/, using
swagger-ui vendored from node_modules (Apache Infra blocks external
CDN via CSP). The explorer shares the site layout (header, nav,
footer) and uses swagger-ui's native dark-mode class for theme sync.
Also adds a /api/providers/{id}/versions.json endpoint used by CI
to publish new provider versions without a full site rebuild.
20 lines
632 B
JSON
20 lines
632 B
JSON
{
|
|
"name": "airflow-registry",
|
|
"version": "1.0.0",
|
|
"description": "Apache Airflow Provider Registry",
|
|
"scripts": {
|
|
"dev": "REGISTRY_PATH_PREFIX=/ pnpm build && REGISTRY_PATH_PREFIX=/ eleventy --serve --port=8080",
|
|
"prebuild": "uv run python ../dev/registry/export_registry_schemas.py",
|
|
"build": "rm -rf _site && eleventy",
|
|
"postbuild": "cleancss -o _site/css/main.css _site/css/main.css && node scripts/build-pagefind-index.mjs"
|
|
},
|
|
"dependencies": {
|
|
"@11ty/eleventy": "^3.1.2",
|
|
"swagger-ui-dist": "^5.32.0"
|
|
},
|
|
"devDependencies": {
|
|
"clean-css-cli": "^5.6.3",
|
|
"pagefind": "^1.1.0"
|
|
}
|
|
}
|