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

16 lines
410 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,
contact=None, license=None,
):
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