Skip to content

Commit

Permalink
Merge pull request #819 from kkirsche/fix/spelling-errors
Browse files Browse the repository at this point in the history
fix: various spelling mistakes
  • Loading branch information
lafrech committed Jan 26, 2023
2 parents f49a435 + 4df4895 commit 28a0f33
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Expand Up @@ -584,7 +584,7 @@ Features:

- ``apispec.core.Components`` is added. Each ``APISpec`` instance has a
``Components`` object used to define components such as schemas, parameters
or reponses. "Components" is the OpenAPI v3 terminology for those reusable
or responses. "Components" is the OpenAPI v3 terminology for those reusable
top-level objects.
- ``apispec.core.Components.parameter`` and ``apispec.core.Components.response``
are added.
Expand Down
2 changes: 1 addition & 1 deletion docs/special_topics.rst
Expand Up @@ -67,7 +67,7 @@ The ``APISpec`` object contains helpers to add top-level components:
* - Parameter
- `spec.components.parameter <apispec.core.Components.parameter>`
- 2, 3
* - Reponse
* - Response
- `spec.components.response <apispec.core.Components.response>`
- 2, 3
* - Header
Expand Down
2 changes: 1 addition & 1 deletion src/apispec/ext/marshmallow/field_converter.py
Expand Up @@ -149,7 +149,7 @@ def add_attribute_function(self, func):
merged with the return values of all other attribute functions called on the field.
User added attribute functions will be called after all built-in attribute
functions in the order they were added. The merged results of all
previously called attribute functions are accessable via the `ret`
previously called attribute functions are accessible via the `ret`
argument.
"""
bound_func = func.__get__(self)
Expand Down
2 changes: 1 addition & 1 deletion src/apispec/ext/marshmallow/openapi.py
Expand Up @@ -102,7 +102,7 @@ def resolve_nested_schema(self, schema):
Typically will return a dictionary with the reference to the schema's
path in the spec unless the `schema_name_resolver` returns `None`, in
which case the returned dictoinary will contain a JSON Schema Object
which case the returned dictionary will contain a JSON Schema Object
representation of the schema.
:param schema: schema to add to the spec
Expand Down
4 changes: 2 additions & 2 deletions tests/test_core.py
Expand Up @@ -526,8 +526,8 @@ def test_schema_lazy(self, spec):
assert schemas["Pet_2"]["properties"] == self.properties

def test_response_lazy(self, spec):
response_1 = {"description": "Reponse 1"}
response_2 = {"description": "Reponse 2"}
response_1 = {"description": "Response 1"}
response_2 = {"description": "Response 2"}
spec.components.response("Response_1", response_1, lazy=False)
spec.components.response("Response_2", response_2, lazy=True)
responses = get_responses(spec)
Expand Down

0 comments on commit 28a0f33

Please sign in to comment.