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

18 lines
492 B
Python
Raw Normal View History

2018-04-17 12:18:40 +00:00
"""OpenAPI core infos models module"""
class Info(object):
2020-02-03 19:23:09 +00:00
def __init__(
self, title, version, description=None, terms_of_service=None,
2020-03-03 13:01:45 +00:00
contact=None, license=None, extensions=None,
2020-02-03 19:23:09 +00:00
):
2018-04-17 12:18:40 +00:00
self.title = title
self.version = version
2020-02-03 19:23:09 +00:00
self.description = description
self.terms_of_service = terms_of_service
self.contact = contact
self.license = license
2020-03-03 13:01:45 +00:00
self.extensions = extensions and dict(extensions) or {}