Skip to content

Commit 2bc4ee9

Browse files
committed
fix typos
1 parent 2293daa commit 2bc4ee9

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

docs/changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1313
- Account for the `format` query parameter raising 404 errors when generating the API schema for error responses. This
1414
will result in any project using the default value for `REST_FRAMEWORK["URL_FORMAT_OVERRIDE"]"` showing 404 errors for
1515
every operation. That's because DRF enables the `format` query parameter in every endpoint by default. If you don't
16-
need the `format` query parameter for content negotiation, you can disable it with by setting `"URL_FORMAT_OVERRIDE"`
16+
need the `format` query parameter for content negotiation, you can disable it by setting `"URL_FORMAT_OVERRIDE"`
1717
to `None` in DRF settings. Refer
1818
to [DRF docs](https://www.django-rest-framework.org/api-guide/settings/#url_format_override) for more information.
1919

drf_standardized_errors/openapi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def _should_add_http404_error_response(self) -> bool:
205205
]
206206
)
207207
# the default content negotiator can raise a 404 when no renderer can handle
208-
# to the format parameter in the URL
208+
# the format parameter in the URL
209209
content_negotiator = self.view.get_content_negotiator()
210210
view_can_have_no_renderers = (
211211
self.view.format_kwarg or drf_settings.URL_FORMAT_OVERRIDE
@@ -218,7 +218,7 @@ def _should_add_http404_error_response(self) -> bool:
218218
)
219219

220220
def _should_add_http405_error_response(self) -> bool:
221-
# API consumers can at all ties use the wrong method against any endpoint
221+
# API consumers can at all times use the wrong method against any endpoint
222222
return True
223223

224224
def _should_add_http406_error_response(self) -> bool:

0 commit comments

Comments
 (0)