Skip to content

Commit

Permalink
Minor cleanup and changelog update
Browse files Browse the repository at this point in the history
  • Loading branch information
sloria committed Jan 10, 2024
1 parent 68ed42e commit 27d255a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Features:
- ``MarshmallowPlugin``: Support different datetime formats
for ``marshmallow.fields.DateTime`` fields (:issue:`814`).
Thanks :user:`TheBigRoomXXL` for the suggestion and PR.
- ``MarshmallowPlugin``: Handle resolving names of schemas with spaces in the name (:pr:`856`).
Thanks :user:`duchuyvp` for the PR.

Other changes:

Expand Down
3 changes: 1 addition & 2 deletions src/apispec/ext/marshmallow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ def resolver(schema: type[Schema]) -> str:
schema_cls = resolve_schema_cls(schema)
name = schema_cls.__name__
if name.endswith("Schema"):
name_ = name[:-6] or name
return name_.strip()
name = name[:-6] or name
return name.strip()


Expand Down

0 comments on commit 27d255a

Please sign in to comment.