Skip to content

fix(spec): resolve routes for either decorator order - #736

Merged
yeongseon merged 15 commits into
mainfrom
fix/735-decorator-route-discovery
Oct 7, 2026
Merged

yeongseon merged 15 commits into
mainfrom
fix/735-decorator-route-discovery

Conversation

@yeongseon

Copy link
Copy Markdown
Owner

Summary

  • allow the public generate_openapi_spec API to scan a supplied FunctionApp before compilation
  • document real binding routes, methods, route parameters, and custom prefixes for either decorator order
  • preserve function-name fallback behavior when no explicit route exists
  • clarify the required app scan for innermost @openapi usage

Verification

  • uv run pytest (1024 passed, 29 skipped; 95.93% coverage)
  • uv run ruff check src tests
  • uv run ruff format --check src tests
  • uv run mypy src tests
  • uv run python -m build

Fixes #735

@yeongseon
yeongseon merged commit c7cd677 into main Oct 7, 2026
26 checks passed
@yeongseon
yeongseon deleted the fix/735-decorator-route-discovery branch October 7, 2026 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(spec): document the real route when @openapi is applied below @app.route

1 participant