mirror of
https://github.com/correl/openapi-core.git
synced 2024-11-28 19:19:52 +00:00
17 lines
492 B
Python
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 {}
|