Skip to content

Commit

Permalink
Release 0.0.16 (#15)
Browse files Browse the repository at this point in the history
* fix additional properties

* Release 0.0.16
  • Loading branch information
avanov committed Jan 11, 2021
1 parent 1629540 commit 18be534
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion openapi_type/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class Reference(NamedTuple):

class ObjectWithAdditionalProperties(NamedTuple):
type: Literal['object']
additional_properties: Mapping[str, Any]
additional_properties: Optional['SchemaType'] = None # type: ignore


class ArrayValue(NamedTuple):
Expand Down
4 changes: 2 additions & 2 deletions openapi_type/custom_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ class EmptyValue(NamedTuple):

class EmptyValueSchema(typeit.schema.meta.SchemaType):
def deserialize(self, node, cstruct: Any) -> EmptyValue:
""" Converts input string value ``cstruct`` to ``EmptyValue``
""" Converts input value ``cstruct`` to ``EmptyValue``
"""
if cstruct == {}:
if cstruct != {}:
error = Invalid(node, "Not an empty type", cstruct)
raise error
return _empty
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def requirements(at_path: Path):
# ----------------------------

setup(name='openapi-type',
version='0.0.15',
version='0.0.16',
description='OpenAPI Type',
long_description=README,
classifiers=[
Expand Down

0 comments on commit 18be534

Please sign in to comment.