fastapi/tests/test_duplicate_model_names_.../b
Gustav Larsson 44125260cf Fix non-deterministic openapi spec
v0.128.0 introduced non-deterministic openapi spec schema naming in
the case of multiple pydantic models with the same name.

Commit [e300630](e300630551 (diff-1086603fdd56511aafd1d279396b142b803e48164327148e6de26cef4cdaed81L504))
removed the check for conflicting names.

The component names two classes named `User` would randomly be either

```
User
tests__test_duplicate_model_names_openapi__b__model__User
```

```
tests__test_duplicate_model_names_openapi__a__model__User
User
```

With this change, we reintroduce the conflict check to always use
fully qualified names in case of conflict.
2026-02-01 16:29:10 +02:00
..
__init__.py Fix non-deterministic openapi spec 2026-02-01 16:29:10 +02:00
model.py Fix non-deterministic openapi spec 2026-02-01 16:29:10 +02:00