Vitaliy Kucheryaviy

Results 245 comments of Vitaliy Kucheryaviy

@jkgenser but what do you mean by adamchainz's approach ? to have all handled by Meta: ```Python class SomeData(ModelSchema): class Meta: model = User fields = '__all__' alias_generator=to_camel # <...

Hi @SonQBChau yeah.. the pagination router does not support multiple codes (for now I guess) what you can do at this moment - define response as just list and throw...

I will keep this open - maybe we simply find first 200 response for paginator (if it is marked as collection)

Hi @stvdrsch See #811 - you need to add `by_alias=True` : ```Python @api.get('/dealers', response=list[DealerSchema], by_alias=True) def dealers(request): return Dealer.objects.all() ``` to make this behaviour by default you can extend the...

Hi @rg3915 since v1 you can extend Docs class : ```Python from ninja.openapi.docs import DocsBase, Swagger, Redoc class MixedDocs(DocsBase): def __init__(self) -> None: super().__init__() self.swagger = Swagger() self.redoc = Redoc()...

Hi @rchoquet Looks good - Could you also add some docs / examples-to-documentation - and to support python3.8/3.7 I think you need to import Literal from typing_extensions

Hi @rchoquet looks good could you also add docs example with JsonField - as this is actually a pretty often question

> Question: is this common to type your fields instead of using django-stubs? > Also, if you support this, are you going to support stubs in general? not this has...

@jellis18 @jkgenser where do you think execution of these middlewares should happen ? - before input validation (basically accessing only to request/response objects) - after input validation (having access to...

Hi @alessandrosp cannot reproduce this - maybe you did some modification ?