src/aaz_dev/swagger/model/schema/contact.py (8 lines of code) (raw):
from schematics.models import Model
from schematics.types import StringType, URLType
class Contact(Model):
"""Contact information for the exposed API."""
name = StringType() # The identifying name of the contact person/organization.
url = URLType() # The URL pointing to the contact information. MUST be in the format of a URL.
email = StringType() # The email address of the contact person/organization. MUST be in the format of an email address.
class Options:
serialize_when_none = False