4 Commits

Author SHA1 Message Date
bbd45cbf2d fix indentation on _resolve_spec_env_vars call in __init__ 2026-07-18 20:20:21 +05:30
0dc96907fa resolve {ENV_VAR} placeholders in spec before serving
- app.py: add _resolve_env and _resolve_spec_env_vars to replace
  {ENV_VAR} patterns (e.g. {AUTH_SERVER}) with os.environ values
  so the frontend receives resolved URLs via /openapi.json
2026-07-18 20:07:32 +05:30
cda158e549 build introspect URL from x-server-url + x-introspect-path
- security.py: read x-server-url and x-introspect-path separately
  from resolved security scheme, join to form introspect URL
2026-07-18 19:48:38 +05:30
a2169b2bb1 add spec-driven auth dependency injection
- security.py: parse securitySchemes, resolve {ENV_VAR} from env,
  generate FastAPI Depends for Bearer JWT introspection
- app.py: extract schemes, build deps, pass to binder at init
- binder.py: inject Depends() per operation based on spec's security
- __init__.py: export security module
- pyproject.toml: add httpx dependency
2026-07-17 21:00:23 +05:30

View File

@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "openapi-first"
version = "0.0.6"
version = "0.0.5"
description = "Strict OpenAPI-first application bootstrap for FastAPI."
readme = "README.md"
requires-python = ">=3.10"