{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pkgseek-com/json-schema/pkgseek-com-elf-analysis-schema.json",
  "title": "ElfAnalysis",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pkgseek-com-openapi.yml#/components/schemas/ElfAnalysis",
  "type": "object",
  "required": [
    "filename",
    "sha256",
    "file_size",
    "architecture",
    "bits",
    "endian",
    "object_type",
    "needed_libraries",
    "rpath",
    "runpath",
    "imported_symbols",
    "exported_symbols",
    "version_requirements",
    "hardening",
    "symbols_truncated",
    "warnings"
  ],
  "properties": {
    "architecture": {
      "type": "string"
    },
    "bits": {
      "type": "integer",
      "format": "int32"
    },
    "endian": {
      "type": "string"
    },
    "exported_symbols": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ElfSymbol"
      }
    },
    "file_size": {
      "type": "integer",
      "format": "int64"
    },
    "filename": {
      "type": "string"
    },
    "hardening": {
      "$ref": "#/$defs/ElfHardening"
    },
    "imported_symbols": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ElfSymbol"
      }
    },
    "interpreter": {
      "type": [
        "string",
        "null"
      ]
    },
    "needed_libraries": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "object_type": {
      "type": "string"
    },
    "rpath": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "runpath": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "sha256": {
      "type": "string"
    },
    "soname": {
      "type": [
        "string",
        "null"
      ]
    },
    "symbols_truncated": {
      "type": "boolean"
    },
    "version_requirements": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ElfVersionRequirement"
      }
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "$defs": {
    "ElfHardening": {
      "type": "object",
      "required": [
        "pie",
        "nx_stack",
        "relro"
      ],
      "properties": {
        "nx_stack": {
          "type": "boolean"
        },
        "pie": {
          "type": "boolean"
        },
        "relro": {
          "type": "boolean"
        }
      }
    },
    "ElfSymbol": {
      "type": "object",
      "required": [
        "name",
        "binding",
        "symbol_type",
        "visibility",
        "size"
      ],
      "properties": {
        "binding": {
          "type": "string"
        },
        "library": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": "string"
        },
        "size": {
          "type": "integer",
          "format": "int64"
        },
        "symbol_type": {
          "type": "string"
        },
        "version": {
          "type": [
            "string",
            "null"
          ]
        },
        "visibility": {
          "type": "string"
        }
      }
    },
    "ElfVersionRequirement": {
      "type": "object",
      "required": [
        "library",
        "versions"
      ],
      "properties": {
        "library": {
          "type": "string"
        },
        "versions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}