You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Re-lands the spp_api_v2 portion of PR #76, which was reverted wholesale
in d38ff9d. Restores the OpenAPI polymorphic schema utilities and app
hook, the OAuth2 client-credentials security scheme in the auth
middleware, the polymorphic BundleEntry.resource schema, and the
OpenAPI contract tests, exactly as merged in 8bf9a3a. Bumps the module
version to 19.0.2.1.0 with a matching HISTORY entry.
Copy file name to clipboardExpand all lines: spp_api_v2/readme/HISTORY.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,10 @@
1
+
### 19.0.2.1.0
2
+
3
+
- Add OpenAPI polymorphic schema utilities (`utils/openapi_polymorphic.py`): `polymorphic_body()` for declaring dict-typed fields that accept one of several Pydantic models, plus an app-level OpenAPI hook that injects the corresponding `anyOf` schemas into the generated document
4
+
- Auth middleware: replace the plain `HTTPBearer` scheme with an OAuth2 client-credentials security scheme so the OpenAPI document advertises the token endpoint and consumers (Swagger UI, QGIS, etc.) can discover how to authenticate; strip the `Bearer` prefix from the raw Authorization header value
5
+
- Bundle schemas: document `BundleEntry.resource` as a polymorphic Individual/Group body instead of an opaque dict, so bundle payloads are fully described in the OpenAPI document
6
+
- Add OpenAPI contract tests covering bundle schema rendering, the polymorphic utilities, and the overall OpenAPI document contract
7
+
1
8
### 19.0.2.0.1
2
9
3
10
- Fix `SerializationFailure` race when multiple Odoo workers rebuild their routing map simultaneously (e.g. after `-u all`) and all try to sync the same `fastapi.endpoint` rows
0 commit comments