openapi-core/openapi_core/schema/infos/models.py
2020-03-04 00:03:48 +00:00

17 lines
492 B
Python

"""OpenAPI core infos models module"""
class Info(object):
def __init__(
self, title, version, description=None, terms_of_service=None,
contact=None, license=None, extensions=None,
):
self.title = title
self.version = version
self.description = description
self.terms_of_service = terms_of_service
self.contact = contact
self.license = license
self.extensions = extensions and dict(extensions) or {}