Skip to content

Initial commit#3

Merged
Temmmmmo merged 2 commits intomainfrom
Pydantic-2.0
Jul 31, 2023
Merged

Initial commit#3
Temmmmmo merged 2 commits intomainfrom
Pydantic-2.0

Conversation

@Wudext
Copy link
Contributor

@Wudext Wudext commented Jul 24, 2023

Изменения

Обновил функционал со старой версии pydantic на новую

Реализации

Добавил новые функции и изменил старые в соответствии с документацией pydantic 2.0

Детали

Я хочу пиццу.

Check-List

  • Вы проверили свой код перед отправкой запроса?
  • [А тут и не надо ] Вы написали тесты к реализованным функциям?
  • Вы не забыли применить black и isort?

P.S. Проставьте x в квадратные скобки в нужных пунктах. Example: [x]

@Wudext Wudext self-assigned this Jul 24, 2023
@Wudext Wudext linked an issue Jul 24, 2023 that may be closed by this pull request
@github-actions
Copy link

github-actions bot commented Jul 24, 2023

Code Coverage

Coverage Report
FileStmtsMissCoverMissing
rating_api
   __init__.py220%1–4
   __main__.py440%1–7
   settings.py16160%1–25
rating_api/models
   base.py13130%1–22
rating_api/routes
   base.py990%1–27
rating_api/routes/models
   base.py880%1–11
TOTAL52520% 

Summary

Tests Skipped Failures Errors Time
0 0 💤 0 ❌ 0 🔥 0.080s ⏱️

@Wudext Wudext requested review from Temmmmmo and annndruha July 24, 2023 09:39
Copy link
Member

@Temmmmmo Temmmmmo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тут все норм. В routes/models/base.py метод .schema() устарел, он там заменяется на .model_json_schema() - вроде чет такое, посмотри, как в аутхе, условно, сделано.

@Wudext Wudext requested a review from Temmmmmo July 31, 2023 14:58
Copy link
Member

@Temmmmmo Temmmmmo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Все ок.

@Temmmmmo Temmmmmo merged commit 1d57353 into main Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Перейти на Pydantic v2 в rating-api

3 participants