{
  "id": "mimetype",
  "kind": "datatype",
  "status": "stable",
  "name": "Media type (MIME type)",
  "doc": "Two-part identifier of a data format, type/subtype, such as text/html, image/png or application/vnd.ms-excel, defined by RFC 6838 and registered by IANA. Email (MIME), the HTTP Content-Type header, file metadata and data catalogs use it. The top-level type is one of application, audio, example, font, haptics, image, message, model, multipart, text and video; vendor subtypes start with vnd., personal ones with prs., and unregistered ones often with x-. A value may carry parameters after a semicolon, as in text/html; charset=utf-8. Type names are case-insensitive, but the regexp accepts only the usual lowercase top-level type.",
  "aliases": [
    "mime_type"
  ],
  "is_pii": false,
  "categories": [
    "common",
    "internet"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^(?:application|audio|example|font|haptics|image|message|model|multipart|text|video)/[A-Za-z0-9][A-Za-z0-9!#$&^_.+-]{0,126}(?:[ \\t]*;[ \\t]*[A-Za-z0-9!#$%&'*+.^_`|~-]+=(?:[A-Za-z0-9!#$%&'*+.^_`|~-]+|\"[^\"]*\"))*$",
  "examples": [
    {
      "value": "text/html",
      "description": "HyperText Markup Language",
      "valid": true
    },
    {
      "value": "image/jpeg",
      "description": "JPEG image",
      "valid": true
    },
    {
      "value": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
      "description": "Excel workbook (XLSX), a vendor subtype",
      "valid": true
    },
    {
      "value": "text/html; charset=utf-8",
      "description": "Content-Type value with a parameter",
      "valid": true
    },
    {
      "value": "html",
      "description": "No subtype",
      "valid": false
    },
    {
      "value": "text/",
      "description": "Empty subtype",
      "valid": false
    }
  ],
  "mappings": {
    "schema_org": "encodingFormat",
    "wikidata": "P1163"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Media_type"
    },
    {
      "type": "wikidata",
      "url": "https://www.wikidata.org/wiki/Property:P1163"
    },
    {
      "type": "doc",
      "url": "https://www.rfc-editor.org/rfc/rfc6838"
    },
    {
      "type": "doc",
      "url": "https://www.iana.org/assignments/media-types/media-types.xhtml"
    }
  ],
  "translations": {
    "ru": {
      "name": "Тип медиа (MIME-тип)",
      "doc": "Идентификатор формата данных вида тип/подтип, например text/html (RFC 6838)."
    }
  },
  "detected_by": {
    "tools": [
      "greatexpectations",
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "mimetypebyknown",
        "type": "field",
        "match": "text",
        "file": "common/common.yaml"
      },
      {
        "rule": "mimetypebyknown1",
        "type": "field",
        "match": "text",
        "file": "common/common.yaml",
        "key": "mime_type"
      },
      {
        "rule": "mimetypebyvalue",
        "type": "data",
        "match": "text",
        "file": "common/common.yaml"
      }
    ]
  },
  "quality": {
    "score": 100,
    "missing": []
  },
  "source": {
    "path": "data/datatypes/any/internet/mimetype.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/internet/mimetype.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/internet/mimetype.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/mimetype",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/mimetype.json"
  }
}