Skip to content

Fix Pydantic deprecations and update dependencies to latest versions#172

Open
be-ant wants to merge 6 commits into
btoron:masterfrom
be-ant:master
Open

Fix Pydantic deprecations and update dependencies to latest versions#172
be-ant wants to merge 6 commits into
btoron:masterfrom
be-ant:master

Conversation

@be-ant
Copy link
Copy Markdown
Contributor

@be-ant be-ant commented May 26, 2026

This pull request updates the OFSC Python wrapper to version 2.26.0 and includes improvements to model validation logic and configuration. The changes primarily focus on enhancing data model validation and updating versioning information.

Version and documentation updates:

  • Bumped the package version from 2.25.0 to 2.26.0 in both pyproject.toml and the API endpoints documentation (docs/ENDPOINTS.md). [1] [2]

Model validation improvements:

  • Updated the Recurrence model's check_week_days validator to use instance attributes (self) instead of the previous classmethod-style (cls and values), ensuring that validation logic is more idiomatic and robust.
  • Enhanced the InventoryType model configuration by enabling both validate_by_name and validate_by_alias in model_config, improving compatibility with different field naming conventions.

Copilot AI and others added 6 commits May 26, 2026 02:17
…-config-references

Fix obsolete Pydantic config/validator usage and bump version to 2.26.0
Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.6.3 to 2.7.0.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](urllib3/urllib3@2.6.3...2.7.0)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-version: 2.7.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: be-ant <91206666+be-ant@users.noreply.github.com>
Bumps [idna](https://github.com/kjd/idna) from 3.11 to 3.15.
- [Release notes](https://github.com/kjd/idna/releases)
- [Changelog](https://github.com/kjd/idna/blob/master/HISTORY.md)
- [Commits](kjd/idna@v3.11...v3.15)

---
updated-dependencies:
- dependency-name: idna
  dependency-version: '3.15'
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: be-ant <91206666+be-ant@users.noreply.github.com>
Rebase branch onto upstream/master and replay local commits
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