Vitaliy Kucheryaviy
Vitaliy Kucheryaviy
but yeah.. this question pops up pretty often... maybe it worth at least some documentation section
Per instance It's tricky... imagine you have two NinjaAPI instances and one schema in one instance you may want one datetime format, and in other different... and once pydantic classes...
> can I pull request these contents? sure - never hesitate ;)
Hi @fojetin Initially django-ninja had responses done with return annotations... But it was not covering all cases (like multiple response models and codes #16 ) and looked too long in...
hm.. that's interesting approach ok, I think I will add both options - with `responnse` argument and return-type-annotation but there is a big typing issue if you will use annnotations:...
hi @kristofgilicze Indeed overriding `Router.add_api_operation` is the recommended approach for making return annotations marked as response schemas
@kristofgilicze well this is a very controversial part.. lot of people would like to see this built in and lot of other people are strongly against it (because it just...
@asaff1 well to me this seems like a very uncommon practice to use both (and form/url-ecoded does not allow you to have nested sub objects) do you see any practical...
Technically you can make a custom [Parser](https://django-ninja.rest-framework.com/tutorial/request-parsers/) that will accept both content types but to transfer this information to openapi schema would be some extra trick..
Hi @stephenrauch I've been thinking about this for some time... I like it - but I would add more flexibility by allowing also (`request=2` or `request = Body(...)` type of...