Skip to content

Commit

Permalink
Fix issue for extra fields not appearing in the errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nofalx authored Sep 7, 2023
1 parent b632bb9 commit b1ce406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ninja/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ class Schema(BaseModel, metaclass=ResolverMetaclass):
class Config:
from_attributes = True # aka orm_mode

@model_validator(mode="before")
@model_validator(mode="after")
def _run_root_validator(cls, values: Any, info: ValidationInfo) -> Any:
values = DjangoGetter(values, cls, info.context)
return values
Expand Down

0 comments on commit b1ce406

Please sign in to comment.