🚀 New issue to wemake-services/django-modern-rest by @sobolevn
📝 Change how we work with `FileMetadata` validation (#1493)
Currently, this code is allowed:
But, how can we ever satisfy?
•
•
It is not optional. Every request here will fail.
What we can do? Change
django-modern-rest/dmr/components.py
Lines 866 to 889 in f822e35
from
#bug #good_first_issue #help_wanted #opensource_september #django_modern_rest
sent via relator
📝 Change how we work with `FileMetadata` validation (#1493)
Currently, this code is allowed:
from typing import Literal
import pydantic
from dmr import Body, Controller, FileMetadata
from dmr.plugins.pydantic import PydanticSerializer
from dmr.parsers import JsonParser, MultiPartParser
class Text(pydantic.BaseModel):
content_type: Literal['text/plain']
class Files(pydantic.BaseModel):
text: Text
class MyController(Controller[PydanticSerializer]):
parsers = [JsonParser(), MultiPartParser()]
def post(
self,
parsed_body: Body[dict[str, str]],
parsed_file_metadata: FileMetadata[Files],
) -> str:
return 'done'
But, how can we ever satisfy?
•
JsonParser()•
parsed_file_metadata: FileMetadata[Files]It is not optional. Every request here will fail.
What we can do? Change
django-modern-rest/dmr/components.py
Lines 866 to 889 in f822e35
from
any to all.#bug #good_first_issue #help_wanted #opensource_september #django_modern_rest
sent via relator
🚀 New issue to wemake-services/django-modern-rest by @sobolevn
📝 Test and document that default values for components are supported (#1494)
Currently we don't ever test or document that a code like this:
is even supported.
What is important here?
1. We must call the endpoint function as-is, without any work from our part. Defaults must be real python defaults. And work the same way
2. But, if there are default for
Snapshot test is required for this change.
#good_first_issue #help_wanted #opensource_september #django_modern_rest
sent via relator
📝 Test and document that default values for components are supported (#1494)
Currently we don't ever test or document that a code like this:
from dmr import Body, Controller
from dmr.plugins.pydantic import PydanticSerializer
class MyController(Controller[PydanticSerializer]):
def post(
self,
parsed_body: Body[dict[str, str] | None] = None,
) -> str:
print(parsed_body)
return 'done'
is even supported.
What is important here?
1. We must call the endpoint function as-is, without any work from our part. Defaults must be real python defaults. And work the same way
2. But, if there are default for
Body, we must issue required: false schema for the whole bodySnapshot test is required for this change.
#good_first_issue #help_wanted #opensource_september #django_modern_rest
sent via relator
🚀 New issue to wemake-services/django-modern-rest by @sobolevn
📝 It is possible to produce an empty `description` for `ResponseBody` (#1495)
django-modern-rest/dmr/openapi/generators/component_parsers.py
Lines 193 to 199 in f822e35
It misses
#bug #good_first_issue #help_wanted #openapi #opensource_september #django_modern_rest
sent via relator
📝 It is possible to produce an empty `description` for `ResponseBody` (#1495)
django-modern-rest/dmr/openapi/generators/component_parsers.py
Lines 193 to 199 in f822e35
It misses
or None part. Because we only skip None values from dumping.#bug #good_first_issue #help_wanted #openapi #opensource_september #django_modern_rest
sent via relator
🚀 New issue to wemake-services/django-modern-rest by @sobolevn
📝 Test that nested URL patterns produce correct parameters (#1496)
We need to test a case like:
It might contain a bug: we should get two path parameters, not one.
#good_first_issue #help_wanted #openapi #opensource_september #django_modern_rest
sent via relator
📝 Test that nested URL patterns produce correct parameters (#1496)
We need to test a case like:
Router('tenants/<int:tenant_id>/', [path('users/<int:pk>/', MyController.as_view())])It might contain a bug: we should get two path parameters, not one.
#good_first_issue #help_wanted #openapi #opensource_september #django_modern_rest
sent via relator
🚀 New issue to wemake-services/django-modern-rest by @sobolevn
📝 Test explicit `OpenAPIConfig.security` definition with `auth=None` per-endpoint (#1497)
Looks like we have a potential bug in how we define
Here we always return
django-modern-rest/dmr/openapi/generators/security_scheme.py
Lines 24 to 37 in f822e35
But, if per-document
Which is wrong.
This would require a test and a fix. Maybe we should look at current config's
#bug #good_first_issue #help_wanted #openapi #opensource_september #django_modern_rest
sent via relator
📝 Test explicit `OpenAPIConfig.security` definition with `auth=None` per-endpoint (#1497)
Looks like we have a potential bug in how we define
security in OpenAPI.Here we always return
None:django-modern-rest/dmr/openapi/generators/security_scheme.py
Lines 24 to 37 in f822e35
But, if per-document
security is set, we need to return [] as the value. Otherwise, None won't be dumped by our None-ignoring dump_schema rules. And security rules per this endpoint will be inherited from the document.Which is wrong.
This would require a test and a fix. Maybe we should look at current config's
security to define the return type?#bug #good_first_issue #help_wanted #openapi #opensource_september #django_modern_rest
sent via relator
🚀 New issue to wemake-services/django-modern-rest by @sobolevn
📝 Fix unused `security` field in `EndpointMetadata` and `_BasePayload` (#1499)
We don't use these two things:
1.
django-modern-rest/dmr/metadata.py
Lines 429 to 430 in f822e35
2. django-modern-rest/dmr/validation/payload.py
Line 44 in f822e35
However, I don't think that this is right. Users must have an option to configure this directly.
Let's create this rule:
• Any user provided
• It must be merged with explicit
It might be useful when people define some external security mechanims, for example that work on HTTP proxy level, or in other microservices.
New snapshot test is required for this change.
#bug #good_first_issue #help_wanted #openapi #opensource_september #django_modern_rest
sent via relator
📝 Fix unused `security` field in `EndpointMetadata` and `_BasePayload` (#1499)
We don't use these two things:
1.
security field documentation here:django-modern-rest/dmr/metadata.py
Lines 429 to 430 in f822e35
2. django-modern-rest/dmr/validation/payload.py
Line 44 in f822e35
However, I don't think that this is right. Users must have an option to configure this directly.
Let's create this rule:
• Any user provided
security objects must be saved to the metadata• It must be merged with explicit
auth= providersIt might be useful when people define some external security mechanims, for example that work on HTTP proxy level, or in other microservices.
New snapshot test is required for this change.
#bug #good_first_issue #help_wanted #openapi #opensource_september #django_modern_rest
sent via relator
🚀 New issue to wemake-services/django-modern-rest by @sobolevn
📝 Fix `operation_id` default generation rules (#1500)
Currently it produces:
django-modern-rest/tests/test_unit/test_plugins/test_msgspec/test_msgspec_snapshots.py
Lines 61 to 81 in f822e35
It must produce:
Please, update all existing snapshots.
#bug #good_first_issue #help_wanted #openapi #opensource_september #django_modern_rest
sent via relator
📝 Fix `operation_id` default generation rules (#1500)
Currently it produces:
getAuthedandcookiescontrollerApiCookies for _AuthedAndCookiesController, seedjango-modern-rest/tests/test_unit/test_plugins/test_msgspec/test_msgspec_snapshots.py
Lines 61 to 81 in f822e35
It must produce:
getAuthedAndCookiesControllerApiCookiesPlease, update all existing snapshots.
#bug #good_first_issue #help_wanted #openapi #opensource_september #django_modern_rest
sent via relator
🚀 New issue to wemake-services/django-modern-rest by @milssky
📝 Changes in benchmarking (#1505)
While working toward #207, I ran into the need for reliable benchmarking. We currently have four workers benchmarked using
Furthermore, when multiple workers are used, the benchmark measures more than just the performance of the request-response lifecycle. The load generator creates a limited number of TCP connections, which the operating system distributes among the worker processes. Each keep-alive connection then remains bound to a single worker. This distribution may be uneven and can vary between runs, significantly affecting the resulting RPS.
Therefore, the current results cannot be used to evaluate the impact of individual parts of Django or a future RSGI implementation.
I see two possible approaches:
1. Fix the existing benchmark:
• replace
• run all servers with a single worker;
• add Granian running in ASGI mode and soon add Granian in RSGO mode;
• use the same concurrency level, duration, and other parameters for every server.
2. Keep the existing benchmark unchanged and add a separate benchmark for the request-response lifecycle:
• use a single worker for Uvicorn, Granian, and Gunicorn;
• use
• run all servers under identical conditions;
Let’s discuss which direction we should take.
#feature #help_wanted #django_modern_rest
sent via relator
📝 Changes in benchmarking (#1505)
While working toward #207, I ran into the need for reliable benchmarking. We currently have four workers benchmarked using
ab, which does not properly support HTTP/1.1. In particular, ab turns out to handle the -k flag incorrectly: it sends HTTP/1.0 requests with a Connection: Keep-Alive header, and different servers handle these requests differently. As a result, Uvicorn and Granian are effectively being tested under different conditions.Furthermore, when multiple workers are used, the benchmark measures more than just the performance of the request-response lifecycle. The load generator creates a limited number of TCP connections, which the operating system distributes among the worker processes. Each keep-alive connection then remains bound to a single worker. This distribution may be uneven and can vary between runs, significantly affecting the resulting RPS.
Therefore, the current results cannot be used to evaluate the impact of individual parts of Django or a future RSGI implementation.
I see two possible approaches:
1. Fix the existing benchmark:
• replace
ab with a load generator that properly supports HTTP/1.1, such as hey;• run all servers with a single worker;
• add Granian running in ASGI mode and soon add Granian in RSGO mode;
• use the same concurrency level, duration, and other parameters for every server.
2. Keep the existing benchmark unchanged and add a separate benchmark for the request-response lifecycle:
• use a single worker for Uvicorn, Granian, and Gunicorn;
• use
hey as the primary load generator;• run all servers under identical conditions;
Let’s discuss which direction we should take.
#feature #help_wanted #django_modern_rest
sent via relator
🚀 New issue to wemake-services/django-modern-rest by @sobolevn
📝 `test_custom_union_format` failed in CI (#1533)
Seed for the repro:
https://github.com/wemake-services/django-modern-rest/actions/runs/34912494319/job/104202853421?pr=1510
#bug #help_wanted #ci #opensource_september #django_modern_rest
sent via relator
📝 `test_custom_union_format` failed in CI (#1533)
Seed for the repro:
--randomly-seed=1177358910FAILED tests/test_unit/test_plugins/test_pydantic/test_pydantic_schema.py::test_custom_union_format[PydanticSerializer] - AssertionError: assert Schema(all_of...ne, defs=None) == Schema(all_of...ne, defs=None)
Omitting 58 identical items, use -vv to show
Differing attributes:
['type']
Drill down into differing attribute type:
type: [<OpenAPIType.STRING: 'string'>, <OpenAPIType.INTEGER: 'integer'>] != [<OpenAPIType.INTEGER: 'integer'>, <OpenAPIType.STRING: 'string'>]
At index 0 diff: <OpenAPIType.STRING: 'string'> != <OpenAPIType.INTEGER: 'integer'>
Full diff:
[
+ <OpenAPIType.STRING: 'string'>,
<OpenAPIType.INTEGER: 'integer'>,
- <OpenAPIType.STRING: 'string'>,
]
FAILED tests/test_unit/test_plugins/test_pydantic/test_pydantic_schema.py::test_custom_union_format[PydanticFastSerializer] - AssertionError: assert Schema(all_of...ne, defs=None) == Schema(all_of...ne, defs=None)
Omitting 58 identical items, use -vv to show
Differing attributes:
['type']
Drill down into differing attribute type:
type: [<OpenAPIType.STRING: 'string'>, <OpenAPIType.INTEGER: 'integer'>] != [<OpenAPIType.INTEGER: 'integer'>, <OpenAPIType.STRING: 'string'>]
At index 0 diff: <OpenAPIType.STRING: 'string'> != <OpenAPIType.INTEGER: 'integer'>
Full diff:
[
+ <OpenAPIType.STRING: 'string'>,
<OpenAPIType.INTEGER: 'integer'>,
- <OpenAPIType.STRING: 'string'>,
]
https://github.com/wemake-services/django-modern-rest/actions/runs/34912494319/job/104202853421?pr=1510
#bug #help_wanted #ci #opensource_september #django_modern_rest
sent via relator
🚀 New issue to wemake-services/django-modern-rest by @sobolevn
📝 `CookieJWT[A]syncAuth` and `HeaderJWT[A]syncAuth` have the same security schema name (#1587)
This makes it impossible to use them together in a single endpoint / contoller together by default. Only a single
Which is not correct. We need to change the
#bug #good_first_issue #help_wanted #openapi #opensource_september #django_modern_rest
sent via relator
📝 `CookieJWT[A]syncAuth` and `HeaderJWT[A]syncAuth` have the same security schema name (#1587)
This makes it impossible to use them together in a single endpoint / contoller together by default. Only a single
jwt security schema / requirement will be generated.Which is not correct. We need to change the
CookieJWT[A]syncAuth one to be jwt_cookie#bug #good_first_issue #help_wanted #openapi #opensource_september #django_modern_rest
sent via relator
🚀 New issue to wemake-services/django-modern-rest by @sobolevn
📝 Flaky `test_empty_validate_responses` (#1588)
Link: https://github.com/wemake-services/django-modern-rest/actions/runs/36040317321/job/107770717079
The fix is very welcome!
#bug #good_first_issue #help_wanted #opensource_september #django_modern_rest
sent via relator
📝 Flaky `test_empty_validate_responses` (#1588)
________________________ test_empty_validate_responses _________________________
settings = <pytest_django.fixtures.Settings object at 0x7f00e6dbba90>
def test_empty_validate_responses(settings: LazySettings) -> None:
"""Ensure that `EMPTY` on `validate_responses` raises."""
settings.DMR_SETTINGS = {
Settings.validate_responses: EMPTY,
}
> with pytest.raises(EndpointMetadataError, match='validate_responses'):
E AssertionError: Regex pattern did not match.
E Expected regex: 'validate_responses'
E Actual message: 'Settings validation failed'
Link: https://github.com/wemake-services/django-modern-rest/actions/runs/36040317321/job/107770717079
The fix is very welcome!
#bug #good_first_issue #help_wanted #opensource_september #django_modern_rest
sent via relator
🚀 New issue to wemake-services/django-modern-rest by @sobolevn
📝 `_validate_throttling` check is a bad design :( (#1600)
This code
django-modern-rest/dmr/validation/endpoint_metadata.py
Lines 934 to 971 in 6649d05
knows a lot about specific backends for throttling. But, why do we do this in metadata validation? Why don't we create
Like we do for
django-modern-rest/dmr/parsers.py
Lines 47 to 58 in 6649d05
This way we can validate objects directly where they know how to self-validate.
#feature #good_first_issue #help_wanted #opensource_september #django_modern_rest
sent via relator
📝 `_validate_throttling` check is a bad design :( (#1600)
This code
django-modern-rest/dmr/validation/endpoint_metadata.py
Lines 934 to 971 in 6649d05
knows a lot about specific backends for throttling. But, why do we do this in metadata validation? Why don't we create
.validate method in throttling (and auth just in case) objects instead?Like we do for
parser and renderer objects:django-modern-rest/dmr/parsers.py
Lines 47 to 58 in 6649d05
This way we can validate objects directly where they know how to self-validate.
#feature #good_first_issue #help_wanted #opensource_september #django_modern_rest
sent via relator
🚀 New issue to wemake-services/django-modern-rest by @sobolevn
📝 `Settings.throttling_allow_unsafe_cache` is a bad design (#1611)
After #1600 we moved the throttling validation to throttling classes.
So, there's no need for a global setting now. It must be removed and we must add
#feature #good_first_issue #help_wanted #opensource_september #django_modern_rest
sent via relator
📝 `Settings.throttling_allow_unsafe_cache` is a bad design (#1611)
After #1600 we moved the throttling validation to throttling classes.
So, there's no need for a global setting now. It must be removed and we must add
allow_unsafe_cache parameter to _DjangoCache instead.#feature #good_first_issue #help_wanted #opensource_september #django_modern_rest
sent via relator
🚀 New issue to wemake-services/django-modern-rest by @vyhuholl
📝 Seeded OpenAPI examples of `datetime` and `time` change with the current time (#1632)
What's wrong?
Found while working on #1629. With
Two runs 3 seconds apart, both with
polyfactory generates these with Faker, and Faker's defaults end at the current time:
So a schema with such fields is never the same on two runs, even though the
How it should be?
The same
Used versions
Reproduced on c35128a.
OS information
macOS 27.0
#bug #good_first_issue #help_wanted #openapi #opensource_september #django_modern_rest
sent via relator
📝 Seeded OpenAPI examples of `datetime` and `time` change with the current time (#1632)
What's wrong?
Found while working on #1629. With
DMR_SETTINGS = {'openapi_examples_seed': 1} and the same PYTHONHASHSEED, examples of datetime and time fields are different on every run:class _Event(msgspec.Struct):
created_at: dt.datetime
day: dt.date
at: dt.time
duration: dt.timedelta
class _EventController(Controller[MsgspecSerializer]):
def get(self) -> _Event:
raise NotImplementedError
Two runs 3 seconds apart, both with
PYTHONHASHSEED=0:02:18:43 {"created_at": "2000-10-08T03:39:12.378838", "day": "2025-09-16", "at": "18:36:00.366279", "duration": "P0D"}
02:18:46 {"created_at": "2000-10-08T03:39:16.378838", "day": "2025-09-16", "at": "18:36:03.421377", "duration": "P0D"}
polyfactory generates these with Faker, and Faker's defaults end at the current time:
datetime uses date_time_between, which ends at "now", and time uses time_object, which picks a time between 1970 and now. The seed fixes the random part, but the range moves with the clock, so the value moves too. date uses date_this_decade, which ends at today, so it changes once a day.So a schema with such fields is never the same on two runs, even though the
seed_example_factory docstring says that seeding per build "keeps a schema reproducible on its own".How it should be?
The same
openapi_examples_seed should give the same examples at any time. _ExampleFactory in dmr/openapi/mappers/example.py can override get_provider_map() and give datetime, date and time fixed bounds instead of "now".timedelta could get a range there too: its examples are always P0D now, because time_delta() without end_datetime starts and ends at "now".Used versions
django-modern-rest 0.15.0, polyfactory 3.3.0, faker 40.39.0Reproduced on c35128a.
OS information
macOS 27.0
#bug #good_first_issue #help_wanted #openapi #opensource_september #django_modern_rest
sent via relator
🚀 New issue to wemake-services/django-modern-rest by @Izcarmt95
📝 OpenAPI: duplicated tags when both Router(tags=...) and @modify(tags=...) set the same tag (#1656)
When an operation has a tag in
Expected:
This looks related to the change for #1299, which now propagates router metadata to included routes.
• django-modern-rest 0.15.0
• Django 5.2, Python 3.13
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
AI disclaimer: an AI assistant was used only to help write this issue.
#bug #good_first_issue #help_wanted #openapi #opensource_september #django_modern_rest
sent via relator
📝 OpenAPI: duplicated tags when both Router(tags=...) and @modify(tags=...) set the same tag (#1656)
When an operation has a tag in
@modify(tags=...) and its Router has the same tag in Router(tags=...), the generated OpenAPI operation lists the tag twice. UIs like Scalar then show every operation twice, once per tag entry.from dmr import Controller, modify
from dmr.openapi import build_schema
from dmr.plugins.pydantic import PydanticSerializer
from dmr.routing import Router, path
class UserController(Controller[PydanticSerializer]):
@modify(tags=['Users'])
def get(self) -> str:
return 'ok'
users = Router('/users', [path('/all', UserController.as_view(), name='users')], tags=['Users'])
api = Router('api')
api.include(users, namespace='users')
schema = build_schema(api)
print(schema.paths['/api/users/all'].get.tags) # ['Users', 'Users']
Expected:
['Users']. The router tags and the endpoint tags should be merged without duplicates.This looks related to the change for #1299, which now propagates router metadata to included routes.
• django-modern-rest 0.15.0
• Django 5.2, Python 3.13
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
AI disclaimer: an AI assistant was used only to help write this issue.
#bug #good_first_issue #help_wanted #openapi #opensource_september #django_modern_rest
sent via relator
🚀 New issue to wemake-services/django-modern-rest by @Izcarmt95
📝 Router.include() raises KeyError for a route with an empty pattern ('') (#1657)
Workaround: use an empty router prefix and write the full segment in each route (
• django-modern-rest 0.15.0 (it worked in 0.13.0, before
• Django 5.2, Python 3.13
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
AI disclaimer: an AI assistant was used only to help write this issue.
#bug #good_first_issue #help_wanted #opensource_september #django_modern_rest
sent via relator
📝 Router.include() raises KeyError for a route with an empty pattern ('') (#1657)
Router.include() raises KeyError when the included router has a route with an empty pattern (path('', ...)), which is the usual way to mount a list endpoint at the router's prefix.from dmr import Controller
from dmr.plugins.pydantic import PydanticSerializer
from dmr.routing import Router, path
class UserListController(Controller[PydanticSerializer]):
def get(self) -> str:
return 'ok'
users = Router('/users', [path('', UserListController.as_view(), name='users')])
api = Router('api')
api.include(users, namespace='users') # KeyError: '/users'
File ".../dmr/routing.py", line 173, in include
router.metadata_for(original_path),
File ".../dmr/routing.py", line 217, in metadata_for
return self._path_metadata[pattern]
KeyError: '/users'
Router.__init__ stores the metadata of the empty route under '/users/' (normalized with original_prefix=''), but include() looks it up as '/users' (normalized with original_prefix=router.prefix). Routes with a non-empty pattern (path('/<id>', ...)) are fine.Workaround: use an empty router prefix and write the full segment in each route (
Router('', [path('/users', ...)])).• django-modern-rest 0.15.0 (it worked in 0.13.0, before
include() looked up the metadata)• Django 5.2, Python 3.13
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
AI disclaimer: an AI assistant was used only to help write this issue.
#bug #good_first_issue #help_wanted #opensource_september #django_modern_rest
sent via relator
🚀 New issue to wemake-services/django-modern-rest by @sobolevn
📝 Improve `dmr` skill with `concrete_views` example (#1670)
We should state that using
Add this to the
#feature #good_first_issue #help_wanted #django_modern_rest
sent via relator
📝 Improve `dmr` skill with `concrete_views` example (#1670)
We should state that using
concrete_views is better than implementing your own views that do not change anything.Add this to the
dmr skill.#feature #good_first_issue #help_wanted #django_modern_rest
sent via relator
🚀 New issue to wemake-services/django-modern-rest by @sobolevn
📝 Improve `dmr` skill with CSRF example (#1671)
Currently this example shows how to protect a view with CSRF:
django-modern-rest/dmr/.agents/skills/dmr/references/security.md
Lines 117 to 176 in 1cb33fb
However, there are better ways for CSRF protection, see
This example must show something else :)
#feature #good_first_issue #help_wanted #django_modern_rest
sent via relator
📝 Improve `dmr` skill with CSRF example (#1671)
Currently this example shows how to protect a view with CSRF:
django-modern-rest/dmr/.agents/skills/dmr/references/security.md
Lines 117 to 176 in 1cb33fb
However, there are better ways for CSRF protection, see
csrf_exempt=False.This example must show something else :)
#feature #good_first_issue #help_wanted #django_modern_rest
sent via relator
🚀 New issue to wemake-services/django-modern-rest by @sobolevn
📝 Set `security=None` for concrete login views (#1719)
We already set
#bug #good_first_issue #help_wanted #openapi #django_modern_rest
sent via relator
📝 Set `security=None` for concrete login views (#1719)
We already set
auth=None for them, but security= must also be disabled for the consistency.#bug #good_first_issue #help_wanted #openapi #django_modern_rest
sent via relator
❤1
🚀 New issue to wemake-services/django-modern-rest by @joefefs
📝 None endpoints still document a JSON null response body. (#1733)
What's wrong?
For endpoints that returns nothing, the server correctly sends an empty body, but the schema describes that response as
Anything that trusts that schema (like an SDK generator) might try to read this null body as JSON and crash.
How it should be?
The response should NOT have a content key, only a
Used versions
• django-modern-rest 0.16.0
• Django 5.2.17
• Python 3.13.12
• pydantic 2.13.5
• msgspec 0.22.0
OS information
macOS 26.3.2
#bug #good_first_issue #help_wanted #openapi #django_modern_rest
sent via relator
📝 None endpoints still document a JSON null response body. (#1733)
What's wrong?
For endpoints that returns nothing, the server correctly sends an empty body, but the schema describes that response as
application/json with a null schema.Anything that trusts that schema (like an SDK generator) might try to read this null body as JSON and crash.
How it should be?
The response should NOT have a content key, only a
{ "description": "No Content" } should suffice so that clients relying on the spec won't try to read a body that does not exist.Used versions
• django-modern-rest 0.16.0
• Django 5.2.17
• Python 3.13.12
• pydantic 2.13.5
• msgspec 0.22.0
OS information
macOS 26.3.2
#bug #good_first_issue #help_wanted #openapi #django_modern_rest
sent via relator