openapi-core/openapi_core/schema/contacts/models.py

12 lines
282 B
Python
Raw Normal View History

2020-02-03 19:23:09 +00:00
"""OpenAPI core contacts models module"""
class Contact(object):
2020-03-03 13:01:45 +00:00
def __init__(self, name=None, url=None, email=None, extensions=None):
2020-02-03 19:23:09 +00:00
self.name = name
self.url = url
self.email = email
2020-03-03 13:01:45 +00:00
self.extensions = extensions and dict(extensions) or {}