{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.dajotaappfactory.com/demo-request.schema.json",
  "title": "ADX free-demo query after activation",
  "description": "Authenticated free-trial data-query contract. This is not a registration payload. An activated invitation and API key are required.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "packages"
  ],
  "properties": {
    "packages": {
      "type": "array",
      "minItems": 1,
      "maxItems": 5,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "ecosystem",
          "name",
          "version"
        ],
        "properties": {
          "ecosystem": {
            "enum": [
              "npm",
              "PyPI",
              "NuGet"
            ]
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 300
          },
          "version": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          }
        }
      }
    },
    "offset": {
      "type": "integer",
      "minimum": 0,
      "maximum": 5000,
      "default": 0
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50,
      "default": 50
    }
  }
}
