Skip to content

Conversation

@1yam
Copy link
Member

@1yam 1yam commented Oct 14, 2024

No description provided.

@1yam 1yam changed the title Fix: Allow 1000 GiB Persistent volume Fix: Allow 512 GB Persistent volume Oct 14, 2024
@hoh
Copy link
Member

hoh commented Oct 16, 2024

Due to the refactoring in #110 , this branch must be rebased and update in

gt=0, le=gigabyte_to_mebibyte(Gigabytes(100)), strict=True # Limit to 100GiB

Antonyjin and others added 2 commits October 21, 2024 08:03
Pydantic used to be in 1.10.5 now moving to up to v2 accepting from v2.x to the latest

Replaced `__get_pydantic_core_schema__` with a more efficient schema
handling using `core_schema.str_schema()` and custom validation for ItemHash.

- Updated code to explicitly specify optional keys where necessary.
- Replaced direct `.get` calls with `data.get()` to handle new validation logic.
- Migrated model configuration to use `model_config = ConfigDict(extra="forbid")`
or `model_config = ConfigDict(extra="allow")` in place of Pydantic v1's configuration style.
- Fix: Refactor to use `model_dump` and `model_dump_json` in place of deprecated methods.
- Replaced `.dict()` with `.model_dump()` for model serialization.
- Replaced deprecated `.json()` with `.model_dump_json()` for JSON serialization.

---------

Co-authored-by: Hugo Herter <git@hugoherter.com>
@1yam 1yam closed this Oct 21, 2024
@1yam
Copy link
Member Author

1yam commented Oct 21, 2024

now is #112

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.

3 participants