Repository navigation
build: prepare the 0.22.0 release - #754
Conversation
Citation metadata and the curated release notes, now covering every pull request merged since 0.21.0, with the new defaults of `detail` and of the INFO logs under Breaking changes. The migration guide gets a section on routes that aren't operations, no longer says that nothing breaks, says that names chosen by clients still reach `detail` and the INFO logs, and drops a wrong example. A mention of 0.22.0 in the exceptions docs, which the version guard rejects once the citation says 0.22.0, is reworded. Closes #751 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's GuideConfigurationUpdate the citation metadata for the 0.22.0 release.
DocumentationCurate the 0.22.0 release notes to cover the breaking changes, features, security updates, fixes, documentation, and maintenance since 0.21.0.
Explain the 0.22 migration impact, including changed validation defaults, routes outside the specifications, and the remaining exposure of client-chosen names.
Adjust the exception configuration guidance to refer to the previous FOCA version rather than 0.22.0.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #754 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 74 74
Lines 9443 9443
=========================================
Hits 9443 9443
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Hey - I've found 2 issues
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="docs/releases/0.22.0.md" line_range="19" />
<code_context>
+- Responses to invalid requests list all invalid fields, of the body and the parameters together, in the new member `errors` of their problem details, with the problem type [Invalid request](https://foca.readthedocs.io/en/v0.22.0/problems/invalid-request/); `title` and `status` stay as before, and `detail` changes as described under Breaking changes. Raise `foca.errors.InvalidFieldsProblem` to list the invalid fields of checks of your own the same way (#586, #711, #712, #734)
</code_context>
<issue_to_address>
**Error list can be truncated**
When a request has more than 100 invalid fields, `add_field_errors()` caps the response at `MAX_FIELD_ERRORS` (100), so requests with more than 100 invalid fields receive an incomplete list, contrary to the release note’s promise that responses list all of them.
Say that responses list up to 100 invalid fields.
</issue_to_address>
### Comment 2
<location path="docs/releases/0.22.0.md" line_range="7" />
<code_context>
+- FOCA finds routes in its own route table of the operations of the specifications instead of Flask's `url_map`; for routes that aren't operations (e.g., the Swagger UI, `openapi.json`, routes added to Flask directly), `is_permitted_for()` is now `False`, `me_path` is no longer checked, and ownership controllers refuse requests; the log field `operation_id` is the specification's `operationId` (see [Routes that aren't operations](https://foca.readthedocs.io/en/v0.22.0/migration-0.22/#routes-that-arent-operations)) (#632, #707; #718, #726)
</code_context>
<issue_to_address>
**Log field names a resolved identifier**
When an OpenAPI operation omits `operationId`, `_RecordingApi` falls back to Connexion’s resolved `operation.operation_id`, so the `operation_id` log field contains that identifier rather than a specification `operationId`, contrary to the release note.
Clarify that the log field uses Connexion’s resolved identifier when the specification omits `operationId`.
</issue_to_address>Linked issues
#751 build: prepare the 0.22.0 release · 4 of 5 met
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | Citation metadata (version and date) | ✅ Met | CITATION.cff sets version 0.22.0 and date-released 2026-11-09. |
| 2 | Curated release notes covering every PR since v0.21.0 | ✅ Met | The 0.22.0 notes cover the release categories and include the related PR references. |
| 3 | Migration guide complete for the behaviour changes in 0.22.0 | ✅ Met | The guide describes the route-table changes, changed validation and logging defaults, and relevant deprecations. |
| 4 | Reword version mentions rejected by the version guard | ✅ Met | The exceptions documentation now says “up to FOCA 0.21” rather than “before FOCA 0.22.0.” |
| 5 | Dead or moving links in the docs | 🟡 Partly met | The new route link resolves and the release-note links pin to v0.22.0, but the migration guide still links to the moving GitHub dev branch for the ast-grep rule. |
Sourcery assessment
Approval pending. 2 findings to address first.
Blocking findings: docs/releases/0.22.0.md:19, docs/releases/0.22.0.md:7
Responses list up to 100 invalid fields, and the log field operation_id falls back to Connexion's resolved identifier for operations without an operationId. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Summary
Release preparation for FOCA 0.22.0 (no tag):
CITATION.cff: version 0.22.0, date-released 2026-11-09 (set withscripts/citation.py; if the tag slips, set the date again before tagging).docs/releases/0.22.0.md: the curated notes now cover every pull request merged since v0.21.0. Following the pre-release review:app.config.foca,www_authenticate, raw Werkzeug classes in exception maps,x-body-name: permission); the new defaultdetailof responses to invalid requests, which also replaces thedetailofBadRequestProblem/RequestValidationProblemthat apps raise (useInvalidFieldsProblem), with the opt-outexceptions.validation_reasons; theINFOlog format (route templates, reasons atDEBUG); routes that aren't operations.detailstays as before.detailand in theINFOrecordRequest rejected.docs/migration-0.22.md:required).docs/configuration/exceptions.md: one mention of 0.22.0 thattests/test_version_mentions.pyrejects once the citation says 0.22.0, reworded.The version itself comes from the git tag (setuptools-scm); nav and changelog entries were already on
dev.Closes #751
Lane
Light lane: docs, release notes and citation metadata only, no code. I reviewed the diff myself.
Verification
Local, Python 3.13:
python scripts/release_notes.py check docs/releases/0.22.0.mdandrequire 0.22.0: passedpython scripts/citation.py check 0.22.0: passedpytest tests/test_version_mentions.py tests/test_citation.py tests/test_release_notes.py tests/test_release_assets.py: 260 passedmkdocs build --strict: passed; anchors of the new links checked in the built sitegit diff --check: cleanpreparejob ofrelease.ymlrun locally against the release commit: README image rewrite and check,python -m buildwithSETUPTOOLS_SCM_PRETEND_VERSION=0.22.0(foca-0.22.0.tar.gz,foca-0.22.0-py3-none-any.whl),twine check --strict,release_assets.py state(none): passedCI: see the checks of this PR.
Declined review findings
None.
Open questions
None.
🤖 Generated with Claude Code
Summary by Sourcery
Prepare the FOCA 0.22.0 release with updated citation metadata, release notes, and migration guidance for its ASGI transition and behavior changes.
Documentation:
Chores: