{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/huggingbay-xyz/json-schema/huggingbay-xyz-open-source-radar-response-schema.json",
  "title": "OpenSourceRadarResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/huggingbay-xyz-open-source-radar-api-openapi.yml#/components/schemas/OpenSourceRadarResponse",
  "properties": {
    "schema": {
      "type": "string",
      "const": "bay-run.open-source-radar.v1",
      "title": "Schema"
    },
    "generatedAt": {
      "type": "string",
      "title": "Generatedat"
    },
    "sections": {
      "$ref": "#/$defs/RadarSectionsResponse"
    },
    "policy": {
      "$ref": "#/$defs/RadarPolicyResponse"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "schema",
    "generatedAt",
    "sections",
    "policy"
  ],
  "$defs": {
    "RadarArtifactResponse": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "repo": {
          "type": "string",
          "title": "Repo"
        },
        "type": {
          "type": "string",
          "title": "Type"
        },
        "license": {
          "type": "string",
          "title": "License"
        },
        "provider": {
          "type": "string",
          "title": "Provider"
        },
        "downloads": {
          "type": "integer",
          "minimum": 0.0,
          "title": "Downloads"
        },
        "stars": {
          "type": "integer",
          "minimum": 0.0,
          "title": "Stars"
        },
        "hostingStatus": {
          "type": "string",
          "title": "Hostingstatus"
        },
        "mirrored": {
          "type": "boolean",
          "title": "Mirrored"
        },
        "updatedAt": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Updatedat"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "repo",
        "type",
        "license",
        "provider",
        "downloads",
        "stars",
        "hostingStatus",
        "mirrored",
        "updatedAt"
      ],
      "title": "RadarArtifactResponse"
    },
    "RadarPolicyResponse": {
      "properties": {
        "readOnly": {
          "type": "boolean",
          "const": true,
          "title": "Readonly"
        },
        "publicOnly": {
          "type": "boolean",
          "const": true,
          "title": "Publiconly"
        },
        "removedExcluded": {
          "type": "boolean",
          "const": true,
          "title": "Removedexcluded"
        },
        "scanBlockedExcluded": {
          "type": "boolean",
          "const": true,
          "title": "Scanblockedexcluded"
        },
        "requestIngestionQueuesWork": {
          "type": "boolean",
          "const": false,
          "title": "Requestingestionqueueswork"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "readOnly",
        "publicOnly",
        "removedExcluded",
        "scanBlockedExcluded",
        "requestIngestionQueuesWork"
      ],
      "title": "RadarPolicyResponse"
    },
    "RadarSectionsResponse": {
      "properties": {
        "recent": {
          "items": {
            "$ref": "#/$defs/RadarArtifactResponse"
          },
          "type": "array",
          "title": "Recent"
        },
        "popular": {
          "items": {
            "$ref": "#/$defs/RadarArtifactResponse"
          },
          "type": "array",
          "title": "Popular"
        },
        "mirrored": {
          "items": {
            "$ref": "#/$defs/RadarArtifactResponse"
          },
          "type": "array",
          "title": "Mirrored"
        }
      },
      "type": "object",
      "required": [
        "recent",
        "popular",
        "mirrored"
      ],
      "title": "RadarSectionsResponse"
    }
  }
}