From 3417314a86de72d23b4b304be11449e8fb72a725 Mon Sep 17 00:00:00 2001 From: p1c2u Date: Fri, 20 Jan 2023 06:32:40 +0000 Subject: [PATCH] PATH_PARAMETER_PATTERN reformatting --- openapi_core/contrib/django/requests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openapi_core/contrib/django/requests.py b/openapi_core/contrib/django/requests.py index bac713ea..67584239 100644 --- a/openapi_core/contrib/django/requests.py +++ b/openapi_core/contrib/django/requests.py @@ -20,7 +20,9 @@ # is exported, after which it matches ">" and everything until a "/". # A check is made to ensure that "/" is not in an excluded character set such # as may be found with Django REST Framwork's default value pattern, "[^/.]+". -PATH_PARAMETER_PATTERN = r"(?:[^/]*?)<(?:(?:.*?:))*?(\w+)>(?:(?:[^/]*?\[\^[^/]*/)?[^/]*)" +PATH_PARAMETER_PATTERN = ( + r"(?:[^/]*?)<(?:(?:.*?:))*?(\w+)>(?:(?:[^/]*?\[\^[^/]*/)?[^/]*)" +) class DjangoOpenAPIRequest: