text: Title: AttributeError on Startup When Using add_pagination with FastAPI - Pydantic V2 Upgrade 
  Body: 
  Hello!!
  
  My application looks like this (I have also tried in the lifespan context):
  
  ```
  app = FastAPI(
      title=title,
      description=description,
      version=version,
      docs_url=None,
      redoc_url=None,
      openapi_tags=tags_metadata,
      lifespan=lifespan,
  )
  
  add_pagination(app)
  ```
  
  I am getting this error on startup. If I remove add_pagination(app) from main, then every route works except the ones that are using Pages. Look forward to any suggestions!
  
  **Versions**:
  fastapi = 0.104.1
  fastapi_pagination = 0.12.12
  pydantic = 2.5.1
  
  ```
    File "/.venv/lib/python3.10/site-packages/starlette/routing.py", line 677, in lifespan
      async with self.lifespan_context(app) as maybe_state:
    File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/contextlib.py", line 199, in __aenter__
      return await anext(self.gen)
    File "/.venv/lib/python3.10/site-packages/fastapi_pagination/api.py", line 373, in lifespan
      _add_pagination(parent)
    File "/.venv/lib/python3.10/site-packages/fastapi_pagination/api.py", line 362, in _add_pagination
      _update_route(route)
    File "/.venv/lib/python3.10/site-packages/fastapi_pagination/api.py", line 345, in _update_route
      get_parameterless_sub_dependant(
    File "/.venv/lib/python3.10/site-packages/fastapi/dependencies/utils.py", line 125, in get_parameterless_sub_dependant
      return get_sub_dependant(depends=depends, dependency=depends.dependency, path=path)
    File "/.venv/lib/python3.10/site-packages/fastapi/dependencies/utils.py", line 148, in get_sub_dependant
      sub_dependant = get_dependant(
    File "/.venv/lib/python3.10/site-packages/fastapi/dependencies/utils.py", line 269, in get_dependant
      sub_dependant = get_param_sub_dependant(
    File "/.venv/lib/python3.10/site-packages/fastapi/dependencies/utils.py", line 112, in get_param_sub_dependant
      return get_sub_dependant(
    File "/.venv/lib/python3.10/site-packages/fastapi/dependencies/utils.py", line 148, in get_sub_dependant
      sub_dependant = get_dependant(
    File "/.venv/lib/python3.10/site-packages/fastapi/dependencies/utils.py", line 290, in get_dependant
      add_param_to_fields(field=param_field, dependant=dependant)
    File "/.venv/lib/python3.10/site-packages/fastapi/dependencies/utils.py", line 470, in add_param_to_fields
      if field_info.in_ == params.ParamTypes.path:
  AttributeError: 'FieldInfo' object has no attribute 'in_'
  ```