Сделать
Сейчас она используется только для парсинга
Нам нет никакой сложности сделать модуль с нативным
Задача на несколько часов.
https://github.com/wemake-services/django-modern-rest/issues/43
#django_modern_rest
msgspec
опциональной зависимостью.Сейчас она используется только для парсинга
json
, однако, она может не собраться по какой-то причине.Нам нет никакой сложности сделать модуль с нативным
json
для парсинга, если ее нет.Задача на несколько часов.
https://github.com/wemake-services/django-modern-rest/issues/43
#django_modern_rest
GitHub
Do not depend on `msgspec` directly · Issue #43 · wemake-services/django-modern-rest
Right now we always install msgspec directly as the main dependency: django-modern-rest/pyproject.toml Lines 49 to 54 in 25513fd [tool.poetry.dependencies] python = "^3.11" typing_extensi...
👍5
https://github.com/wemake-services/django-modern-rest/issues/47
Супер простая задача: добавить
#django_modern_rest #typing
Супер простая задача: добавить
TypedDict
для типизации kwarg'ов.#django_modern_rest #typing
GitHub
Implement `TypedDict` types for `model_dump_kwargs` and `from_python_kwargs` · Issue #47 · wemake-services/django-modern-rest
Right now we just type them as dict, which is not ideal. django-modern-rest/django_modern_rest/plugins/pydantic.py Lines 53 to 61 in 5cf21e6 # TODO: use `TypedDict` model_dump_kwargs: ClassVar[dict...
💘3
New issue to wemake-services/django-modern-rest by @sobolevn
Write tests for "double validation" problem (#85)
We need to be sure that double validation does not happen. Ever.
See what "double validation" is: fastapi/fastapi#3021
To be sure, we need to write tests for it.
Tests would be rather easy to write:
• One for
• One for
• One for raw data return
Also test disabled response validation mode to do 0 validations.
See the attached issue to learn how to make sure that double validation happened.
No matter what - we need to do a 1 or 0 validations.
#django_modern_rest #help_wanted #enhancement #good_first_issue
sent via relator
Write tests for "double validation" problem (#85)
We need to be sure that double validation does not happen. Ever.
See what "double validation" is: fastapi/fastapi#3021
To be sure, we need to write tests for it.
Tests would be rather easy to write:
• One for
@modify
• One for
@validate
• One for raw data return
Also test disabled response validation mode to do 0 validations.
See the attached issue to learn how to make sure that double validation happened.
No matter what - we need to do a 1 or 0 validations.
#django_modern_rest #help_wanted #enhancement #good_first_issue
sent via relator
🔥1