Skip to content

Commit

Permalink
Fix issue when setting __path__ to an empty string.
Browse files Browse the repository at this point in the history
It would interpret that as "no path" and ignore the endpoints.

Bump to 0.4.1.
  • Loading branch information
luhn committed Jan 25, 2019
1 parent aaf3fd1 commit a49b670
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pyramid-marshmallow"
version = "0.4.0"
version = "0.4.1"
description = "Validate request and response data with Marshmallow and optionally generate an OpenAPI spec."
readme = "README.md"
homepage = "https://github.com/luhn/pyramid-marshmallow"
Expand Down
2 changes: 1 addition & 1 deletion pyramid_marshmallow/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def make_path(introspector, introspectable):
elif introspectable['context']:
context = introspectable['context']
base = getattr(context, '__path__', None)
if not base:
if base is None:
return None
else:
return base + '/' + (introspectable['name'] or '')
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name='pyramid-marshmallow',
version='0.4.0',
version='0.4.1',
package_data={
'pyramid_marshmallow': ['assets/*'],
},
Expand Down

0 comments on commit a49b670

Please sign in to comment.