{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://nao1215.github.io/jsonize/schemas/dpkg-deb/info.json",
  "title": "dpkg-deb/info",
  "description": "dpkg-deb -I, a Debian package's control archive and control fields",
  "x-jsonize": {
    "definition": "dpkg-deb/info",
    "version": 1
  },
  "type": "object",
  "properties": {
    "package": {
      "type": "object",
      "properties": {
        "format": {
          "type": "string"
        },
        "size": {
          "type": "integer"
        },
        "control_size": {
          "type": "integer"
        }
      },
      "required": [
        "format",
        "size",
        "control_size"
      ]
    },
    "members": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "bytes": {
            "type": "integer"
          },
          "lines": {
            "type": "integer"
          },
          "executable": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "interpreter": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "bytes",
          "lines",
          "executable",
          "name",
          "interpreter"
        ]
      }
    },
    "control": {
      "type": "object",
      "properties": {
        "Breaks": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "Conflicts": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "Depends": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "Enhances": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "Installed-Size": {
          "type": "integer"
        },
        "Pre-Depends": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "Provides": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "Recommends": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "Replaces": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "Suggests": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": {
        "type": "string"
      }
    }
  },
  "required": [
    "package",
    "members",
    "control"
  ]
}
