You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to add a new Schema in the response depending on the parameter of the endpoint, but I'm getting a Pydantic error. Is it possible to include like this or I'll have to split it in two different endpoints?
pydantic_core._pydantic_core.ValidationError: 300 validation errors for NinjaResponseSchema
response.items.0
Input should be a valid list [type=list_type, input_value=<HistoricoAlertaPartial: ...ct (411980620240520123)>, input_type=HistoricoAlertaPartial]
For further information visit https://errors.pydantic.dev/2.11/v/list_type
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to add a new Schema in the response depending on the parameter of the endpoint, but I'm getting a Pydantic error. Is it possible to include like this or I'll have to split it in two different endpoints?
api.py
Traceback
Beta Was this translation helpful? Give feedback.
All reactions