update samples

This commit is contained in:
William Cheng
2022-04-30 17:21:15 +08:00
parent 0c6302a313
commit 324020f09d

View File

@@ -8,14 +8,14 @@ from openapi_server import util
T = typing.TypeVar('T')
class Model(object):
class Model():
# openapiTypes: The key is attribute name and the
# value is attribute type.
openapi_types = {}
openapi_types: typing.Dict[str, type] = {}
# attributeMap: The key is attribute name and the
# value is json key in definition.
attribute_map = {}
attribute_map: typing.Dict[str, str] = {}
@classmethod
def from_dict(cls: typing.Type[T], dikt) -> T: