"""Serve the canonical, CI-verified OpenAPI artifact bundled with this release.""" from pathlib import Path from django.http import FileResponse from django.views.decorators.http import require_GET @require_GET def canonical_openapi(request): return FileResponse( Path(__file__).with_name("openapi.json").open("rb"), content_type="application/json", )