Skip to content

Commit cab7f91

Browse files
committed
pydantic validator update
1 parent 2c4a043 commit cab7f91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/idp_common_pkg/idp_common/schema/pydantic_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def create_json_schema_validator(
146146
def validate_against_json_schema(value: BaseModel) -> BaseModel:
147147
"""Validate model data against the original JSON Schema."""
148148
# Convert Pydantic model to dict for JSON Schema validation
149-
data = value.model_dump()
149+
data = value.model_dump(mode="json")
150150

151151
try:
152152
# Validate against JSON Schema

0 commit comments

Comments
 (0)