Skip to content

Conversation

@paradoxxxzero
Copy link
Contributor

This is #540 with pre-commit fixes and rebased

lmignon and others added 24 commits January 13, 2026 14:41
When a field is of an extended type, the assemebled class is not part of the know classes computed by fastapi from the fastapi endepoint definition. Is such a case, we must add the extented type to the list of knwon classes
extendable_fastapi 16.0.2.0.0
[UPD] README.rst
On the StrictExtendableBaseModel, disable strict mode to enable coercion from json by FastAPI
A specialized verion of the PagedCollection from
odoo.addons.fastapi.schemas but supporting extendable models as type a
args.
Register the cleanup of the extendable registry just after its initialisation by calling the  method from unittest. If setUpClass() fails, meaning that tearDownClass() is not called, then any cleanup functions added with a call to  will still be called.

refs OCA#392
@paradoxxxzero
Copy link
Contributor Author

@lmignon can we merge this migration?

@lmignon
Copy link
Contributor

lmignon commented Jan 21, 2026

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 18.0-ocabot-merge-pr-582-by-lmignon-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 38cebf7 into OCA:18.0 Jan 21, 2026
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at cf01890. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants