Files
airflow/registry/package.json
T
Kaxil Naik 5ac251bd53 Add schema-validated registry API contracts with API Explorer (#63025)
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.
2026-03-13 04:09:05 +00:00

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"
}
}