Fix how `Controller` generates `additionalOperations`
Débutant
buggood first issuehelp wantedopenapi
1 362 ★
Poids du clone léger
Mise à jour
Description
See https://spec.openapis.org/oas/v3.2.0.html#path-item-object
`django-modern-rest` can use custom `allowed_http_methods` to add any desired additional HTTP methods.
But, right now `Controller` does not respect to this option when generating schema: https://github.com/wemake-services/django-modern-rest/blob/3e2874f216bd9507efa46a4e45e32072f86cc327/dmr/controller.py#L529-L555
But, this is not correct. We can only add methods that are defined on `PathItem` directly. All other items must go to `additionalOperations` dict. This needs to be fixed, tested, and schema must be generated and tested as well.
Issues similaires
Tout voir
Python
Débutant
VS Code extension should be robust to YAML parser errors
Seeing this error: ``` Failed to read calkit.yaml: YAMLParseError: A block sequence may not be used as an im…
Mise à jour
Python
Débutant
dash: a manual Refresh control
The dashboard polls: `refreshStats()` (`src/doberman/dash/app.py:408`) every 5 s and `refreshPending()` (`:54…
Mise à jour
Python
Débutant
dash: "Copy details" button on each pending-approval card
Each pending-approval card in the dashboard (`renderPending`, `src/doberman/dash/app.py:448-544`) shows the r…
Mise à jour