mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-29 17:39:48 +03:00
Retain ordering of paths as provided in urlconf in OpenAPI schemas.
This commit is contained in:
parent
c975a1b554
commit
7d7912b769
|
@ -44,6 +44,7 @@ You can determine your currently installed version using `pip show`:
|
|||
|
||||
**Date**: [Unreleased][3.10.0-milestone]
|
||||
|
||||
* Updated PyYaml dependency for OpenAPI schema generation to `pyyaml>=5.1` [#6680][gh6680]
|
||||
* Resolve DeprecationWarning with markdown. [#6317][gh6317]
|
||||
|
||||
|
||||
|
@ -2137,4 +2138,5 @@ For older release notes, [please see the version 2.x documentation][old-release-
|
|||
[gh6613]: https://github.com/encode/django-rest-framework/issues/6613
|
||||
|
||||
<!-- 3.10.0 -->
|
||||
[gh6680]: https://github.com/encode/django-rest-framework/issues/6680
|
||||
[gh6317]: https://github.com/encode/django-rest-framework/issues/6317
|
||||
|
|
|
@ -54,7 +54,7 @@ def endpoint_ordering(endpoint):
|
|||
'PATCH': 3,
|
||||
'DELETE': 4
|
||||
}.get(method, 5)
|
||||
return (path, method_priority)
|
||||
return (method_priority,)
|
||||
|
||||
|
||||
_PATH_PARAMETER_COMPONENT_RE = re.compile(
|
||||
|
|
Loading…
Reference in New Issue
Block a user