@classmethod
def gen_schemas(cls):
    """Return json schema representation of the artifact type."""
    schemas_prop = {}
    for field_name, field in cls.fields.items():
        schemas_prop[field_name] = cls._schema_field(field, field_name=
            field_name)
    schemas = {'properties': schemas_prop, 'name': cls.get_type_name(),
        'version': cls.VERSION, 'title': 'Artifact type %s of version %s' %
        (cls.get_type_name(), cls.VERSION), 'type': 'object',
        'display_name': cls.get_display_type_name(), 'required': ['name']}
    return schemas
