Skip to content

Commit d9becd0

Browse files
committed
fix "ommitted" typo
1 parent 89877d6 commit d9becd0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

openapi_python_client/parser/openapi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def _add_responses(
155155
ParseError(
156156
detail=(
157157
f"Invalid response status code {code} (not a valid HTTP "
158-
f"status code), response will be ommitted from generated "
158+
f"status code), response will be omitted from generated "
159159
f"client"
160160
)
161161
)
@@ -175,7 +175,7 @@ def _add_responses(
175175
ParseError(
176176
detail=(
177177
f"Cannot parse response for status code {status_code}{detail_suffix}, "
178-
f"response will be ommitted from generated client"
178+
f"response will be omitted from generated client"
179179
),
180180
data=response.data,
181181
)

tests/test_parser/test_openapi.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def test__add_responses_status_code_error(self, response_status_code, mocker):
9090
assert response.errors == [
9191
ParseError(
9292
detail=f"Invalid response status code {response_status_code} (not a valid HTTP status code), "
93-
"response will be ommitted from generated client"
93+
"response will be omitted from generated client"
9494
)
9595
]
9696
response_from_data.assert_not_called()
@@ -121,12 +121,12 @@ def test__add_responses_error(self, mocker):
121121
assert response.errors == [
122122
ParseError(
123123
detail="Cannot parse response for status code 200 (some problem), "
124-
"response will be ommitted from generated client",
124+
"response will be omitted from generated client",
125125
data=parse_error.data,
126126
),
127127
ParseError(
128128
detail="Cannot parse response for status code 404 (some problem), "
129-
"response will be ommitted from generated client",
129+
"response will be omitted from generated client",
130130
data=parse_error.data,
131131
),
132132
]

0 commit comments

Comments
 (0)