We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d40fcc3 commit 9bc9c7bCopy full SHA for 9bc9c7b
packages/models-library/src/models_library/api_schemas_resource_usage_tracker/credit_transactions.py
@@ -13,7 +13,7 @@ class WalletTotalCredits(BaseModel):
13
wallet_id: WalletID
14
available_osparc_credits: Decimal
15
16
- @field_validator("available_osparc_credits", mode="before")
+ @field_validator("available_osparc_credits", mode="after")
17
@classmethod
18
def ensure_rounded(cls, v):
19
return round(v, 2)
0 commit comments