-
### Summary
I'm a big fan of Litestar, but I've been a bit lost when it comes to finding the preferred best practices for actually validating data in a strict, security minded fashion, as the main Li…
bdoms updated
1 month ago
-
### Description
By analogy, I assume the line:
```
"max_length": getattr(value, "max_length", getattr(value, "max_length", None)),
```
should be:
```
"max_length": getattr(value, "max_lengt…
-
### Summary
I was playing around with [hypothesis](https://hypothesis.readthedocs.io/) and noticed that it can't create strategies when there are constraints on the fields. So, I'm proposing that `po…
-
### Description
When using tagged unions, while the correct OpenAPI schema is generated, decoding the request fails. It also doesn't work with the MsgpackDTO. It seems that the internal litestar.ty…
ahrzb updated
7 months ago
-
### Description
In the below example, you would expect `foo.id` to be an `int`
When `get_field_value` is called, `field_meta.type_args` has correctly been identified as an `int` - however, we en…
-
### Description
I discovered this bug when using pydantic, which makes heavy use of annotated types and type aliases when defining custom validators for types. From their documentation:
```python
…
-
### Summary
https://docs.litestar.dev/2/usage/requests.html#request-body states that:
> The type of data an be any supported type, including
>
> - [dataclasses](https://docs.python.org/3/libr…
-
In working with `PydanticDTO` from [litestar](https://github.com/litestar-org/litestar), realized that columns with `secret=True` parameter were not being added to `Table._meta.secret_columns`
Seem…
-
**Describe the bug**
I can crash the server using the below app, it happens evertime I run the second wrk command, and the stacktrace is:
```bash
❯ python main_socketify.py
ERROR:root:Uncaught Exc…
-
### Description
I have been playing with https://docs.litestar.dev/2/tutorials/todo-app/3-assembling-the-app.html#final-application and wanted to create some tests for it.
Namely, I wanted a test …
dybi updated
9 months ago