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

11 lines
238 B
Python
Raw Normal View History

2020-02-03 19:23:09 +00:00
"""OpenAPI core licenses models module"""
class License(object):
2020-03-03 13:01:45 +00:00
def __init__(self, name, url=None, extensions=None):
2020-02-03 19:23:09 +00:00
self.name = name
self.url = url
2020-03-03 13:01:45 +00:00
self.extensions = extensions and dict(extensions) or {}