wps_forward_bot
🚀 New issue to wemake-services/django-modern-rest by @sobolevn
📝 Parse `summary` and `description` from `Controller` for `PathItem` docs (#1446)
Currently we don't parse summary and description from docstrings for controllers, only for endpoints. This is not good.
django-modern-rest/dmr/controller.py
Lines 553 to 561 in 87a02f5
What we can do instead?
• Use Empty as the default value for Controller.summary and Controller.description
• If it is empty, parse summary and description from the docstring, just like EndpointMetadata does
• If it is explicitly None, then do nothing
• Test this
• Update all existing snapshots
#feature #good_first_issue #help_wanted #openapi #opensource_september #django_modern_rest
sent via relator
1 · 188 ·