api-performance-tests icon indicating copy to clipboard operation
api-performance-tests copied to clipboard

Bug: fastapi not compatible with pydantic v2

Open raphaelauv opened this issue 10 months ago • 1 comments

Description

the fastapi code fail at startup with PydanticUndefinedAnnotation

URL to code causing the issue

No response

MCVE

bug is gone if I edit the the file DockerfileFrameworks.jinja2



RUN apt-get update && apt-get upgrade -y && apt-get install gcc git curl -y && \
    pip install --upgrade pip && \
    pip install uvicorn[standard] pydantic==1.10.12

Steps to reproduce

No response

Screenshots

"In the format of: ![SCREENSHOT_DESCRIPTION](SCREENSHOT_LINK.png)"

Logs

No response

Litestar Version

not related

Platform

  • [X] Linux
  • [ ] Mac
  • [ ] Windows
  • [ ] Other (Please specify in the description above)

raphaelauv avatar Aug 14 '23 00:08 raphaelauv