mirror of
https://github.com/correl/openapi-core.git
synced 2024-12-01 19:19:57 +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 {}
|