-
### Description
I cant set the Required attribute with **kwargs in an pydantic model/factory.
### MCVE
```python
from pydantic import BaseModel, Field
from typing import Optional
from…
-
### Description
I'm porting my app from FastAPI to Litestar.
Models which worked in FastAPI using SQLAlchemy (async) + Alembic no longer work in Litestar
It throws the following error
```
…
-
### Description
Given this little app that basically enables in a browser to post a form to 6 different routes: atrts/msgspec/pydantic times url-encoded/multi-part version, I have isues to understan…
-
I just upgraded from 0.23.8 to 0.24.0 and my tests are now failing with:
```
File ".../venv/lib/python3.10/site-packages/pytest_asyncio/plugin.py", line 35, in
from pytest import (
Import…
-
### Description
Hello! I just stumbled across your great project, but I ran into a problem:
I am inheriting some types from pydantic like
`pydantic.SecretBytes` or `pydantic.SecretStr` and extendin…
-
### Description
It seems like the pydantic_factory completely disregards a given [Json](https://docs.pydantic.dev/latest/usage/types/json/) type for a field if it has any nesting.
I ran into the…
-
### Description
`factory.build()` fails for models with a field declared as `List[Literal[...]]` because `issubclass()` doesn't support checking Literal types.
A PR with a proposed fix will be o…
-
### Description
Litestar version: 2.0.0rc1
Pydantic version: 2.1.1
(coming from #2101)
Swagger creation fails if multiple responses are defined on the endpoint definition and the responses s…
-
### Description
Trying to set a constraint like `min_length` or `max_length` for a field that's a union of types supporting this constraint results in a `TypeError`:
```python
from typing impor…
-
### Description
When returning a `msgspec.Struct` in a route handler:
```py
IDType = Annotated[
str,
msgspec.Meta(
min_length=16,
max_length=16,
description…