TGViewer
Находки в опенсорсе: Python Находки в опенсорсе: Python @opensource_findings_python · 1.06K subscribers
Post #194 746
🚀 New issue to wemake-services/django-modern-rest by @sobolevn
📝 Support conditional parsing in components (#453)


Right now we support conditional return types:

django-modern-rest/django_modern_rest/negotiation.py

Lines 212 to 228 in 35051cd

But, incomming Body / Headers / Query can also be conditional, depending on the content-type.
Should we reuse the same feature for parsing?

OpenAPI fully supports this feature:

      requestBody:
description: Optional description in *Markdown*
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/Pet"
application/xml:
schema:
$ref: "#/components/schemas/Pet"

For people who want to solve this: this is not easy!
Here's how the process should look like:

1. You present the idea and prototype implementation
2. We iterate on the design (several times maybe)
3. I approve the design
4. We can then continue with the implementation :)

#enhancement #help_wanted #django_modern_rest
sent via relator
More from @opensource_findings_python
  1. Sep 25, 2026🚀 New issue to wemake-services/django-modern-rest by @sobolevn 📝 `Settings.throttling_al…
  2. Sep 25, 2026🚀 New issue to wemake-services/wemake-python-styleguide by @sobolevn 📝 Incorrect Jones c…
  3. Sep 25, 2026🚀 New issue to wemake-services/django-modern-rest by @sobolevn 📝 `_validate_throttling`…
  4. Sep 24, 2026🚀 New issue to wemake-services/django-modern-rest by @sobolevn 📝 Flaky `test_empty_valid…
  5. Sep 24, 2026🚀 New issue to wemake-services/django-modern-rest by @sobolevn 📝 `CookieJWT[A]syncAuth`…
  6. Sep 23, 2026🚀 New issue to ag2ai/faststream by @IvanKirpichnikov 📝 Feature: Implementation of the `A…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →