Vitaliy Kucheryaviy

Results 283 comments of Vitaliy Kucheryaviy

@21adrian1996 hard to tell... could you show the code you have for v1 ?

@21adrian1996 so this is a bit backward incompatible thing - in pydantic2 all orm-mode objects converted from dict to objects in new version - object that you got in resolver...

Note to myself: maybe adding dict methods to DjangoGetter will work

Hi @changja88 the expectation for the response is that you define them as schemas (with fields) in your case you can do something like this: ```Python class UnauthorizedResponse(Schema): details: str...

Hi @Andrioden there have been reported higher memory consumption on pydantic2... hard to tell yet - Would be nice if you could investigate or isolate some specific code ? or...

@msopacua could you provide more details - what's CUID ? is it some external field ? could you make some reproducable example ?

Hi @KlemenS189 can you give pseudocode examples and use cases ?

@KlemenS189 I would extend @l1b3r idea and make a custom Permission router: ```Python def check_permission_decorator(permission: str): def decorator(func) def wrapper(request, *a, **kw) if not request.user.has_perm(permission): raise ForbiddenError(f"You do not have...

@sasacocic well django ninja here fully rely on pydantic... can you also try with ``` user: Optional[int] = None ```