This PR fixes a few Pydantic deprecation warnings:
Misuse of deprecated functions
Misuse of extra keyword arguments in Field
Models with a schema field shadows out the internal BaseModule.schema field
Issue link
Closes #3507
QA notes
Check if you can create and update OOIs
Check the boefje setup/ variants view and validate that the schema gets saved
Code Checklist
[x] All the commits in this PR are properly PGP-signed and verified.
[x] This PR only contains functionality relevant to the issue.
[x] I have written unit tests for the changes or fixes I made.
[ ] I have checked the documentation and made changes where necessary.
[x] I have performed a self-review of my code and refactored it to the best of my abilities.
[ ] Tickets have been created for newly discovered issues.
[ ] For any non-trivial functionality, I have added integration and/or end-to-end tests.
[ ] I have informed others of any required .env changes files if required and changed the .env-dist accordingly.
[ ] I have included comments in the code to elaborate on what is not self-evident from the code itself, including references to issues and discussions online, or implicit behavior of an interface.
Changes
This PR fixes a few Pydantic deprecation warnings:
Field
schema
field shadows out the internalBaseModule.schema
fieldIssue link
Closes #3507
QA notes
Code Checklist
.env
changes files if required and changed the.env-dist
accordingly.Checklist for code reviewers:
Copy-paste the checklist from the docs/source/templates folder into your comment.
Checklist for QA:
Copy-paste the checklist from the docs/source/templates folder into your comment.