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
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
-
i'm currently migrate django-ninja v0 to v1
i wonder what to use for Schema configuration
if i have django-ninja Schema like this ,
should i use
or
?
in pydantic v2 ,
class Config
is deprecated so we need to usemodel_config
but django-ninja v1 , it only says
Schema.Config
(https://django-ninja.dev/guides/response/config-pydantic/)I tested both of them , both seems working fine
Should i stick to django-ninja recommend way?
class Config
Beta Was this translation helpful? Give feedback.
All reactions