{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/proxmint/json-schema/proxmint-pricing-schema.json",
  "title": "Pricing",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/proxmint-openapi.json#/components/schemas/Pricing",
  "type": "object",
  "properties": {
    "currency": {
      "type": "string",
      "const": "USD"
    },
    "products": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "product": {
            "type": "string",
            "enum": [
              "datacenter",
              "residential",
              "premium-residential",
              "mobile"
            ]
          },
          "name": {
            "type": "string"
          },
          "packs": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "gb": {
                  "type": "number"
                },
                "priceUsd": {
                  "type": "number"
                },
                "perGbUsd": {
                  "type": "number"
                }
              },
              "required": [
                "gb",
                "priceUsd",
                "perGbUsd"
              ]
            }
          }
        },
        "required": [
          "product",
          "name",
          "packs"
        ]
      }
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "currency",
    "products",
    "notes"
  ]
}