Vitaliy Kucheryaviy
Vitaliy Kucheryaviy
@pmdevita ist's a part of OpenAPI spec - fields can be marked as readonly and I assume swagger UI f.e. will not let you pass it as payloads https://swagger.io/docs/specification/data-models/data-types/
@robinsandstrom `repr` is used for representation (in console) - [see docs ](https://docs.pydantic.dev/latest/concepts/fields/#field-representation) basically that means that when you do this: ``` >>> x = ModelExample(...) >>> x # ^ no...
@shmulvad [well docs say that indeed exclude only applies to serialization](https://docs.pydantic.dev/latest/api/fields/#pydantic.fields.Field) maybe for you case you can overwrite `model_json_schema` method: ```python class MySchema(Schema): ... def model_json_schema(self, by_alias: bool = True)...
Hi @torx-cz You can do it with [@decorate_view](https://django-ninja.dev/whatsnew_v1/?h=decorate_view#decorators) - which decorates your view function before any validation ```python from ninja.decorators import decorate_view def my_header_checker(func): def wrapper(request, *a, **kw): # check...
Could you also add some unit tests for this ?
@bulldogukbcm the fix already in master branch - you cant test against it
I think this might be done better... `AuthenticationError`, `AuthorizationError` should be both inherited from HttpError (with corresponding codes and messages) that way only one default http-error handler is needed (and...
Hi @jceipek Basically you need to use Path marker (and PathEx to pass EXtras + P param): ```Python from ninja import NinjaAPI, PathEx, P api = NinjaAPI() @api.get("/items/{item_id}") def read_item(request,...
> Is there any documentation about when and how to use different parameter constructs like: > `params: MyParams = Query(...)` vs `params: Query[MyParams]` vs `QueryEx`? `Query` - `QueryEx` - is...