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

10 lines
238 B
Python

"""OpenAPI core licenses models module"""
class License(object):
def __init__(self, name, url=None, extensions=None):
self.name = name
self.url = url
self.extensions = extensions and dict(extensions) or {}