Skip to content

Allow for model extensions#76

Merged
forman merged 6 commits intomainfrom
forman/x-model_extensions
Mar 13, 2026
Merged

Allow for model extensions#76
forman merged 6 commits intomainfrom
forman/x-model_extensions

Conversation

@forman
Copy link
Copy Markdown
Collaborator

@forman forman commented Mar 12, 2026

The following models are now extendable, e.g., using "x-" prefixed fields:
- gavicore.models.InputDescription (e.g., extra "x-ui")
- gavicore.models.OutputDescription (e.g., extra "x-ui")
- gavicore.models.JobStatus (e.g., extra "x-traceback")
- gavicore.models.ApiError (e.g., extra "x-traceback")

Lifted some mypy restrictions and enabled mypy pydantic plugin.

Needed for #75

Checklist (strike out non-applicable):

  • Changes documented in CHANGES.md
  • Related issue exists and is referred to in the PR description and CHANGES.md
  • Added docstrings and API docs for any new/modified user-facing classes and functions
  • Changes/features documented in docs/*
  • Unit-tests adapted/added for changes/features
  • Test coverage remains or increases (target 100%)

@forman forman marked this pull request as ready for review March 13, 2026 06:57
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@forman forman merged commit 9cbbee9 into main Mar 13, 2026
2 checks passed
@forman forman deleted the forman/x-model_extensions branch March 13, 2026 10:21
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.

2 participants