{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/growvib-com/json-schema/growvib-com-service-schema.json",
  "title": "Service",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/growvib-com-openapi.json#/components/schemas/Service",
  "additionalProperties": true,
  "properties": {
    "id": {
      "format": "uuid",
      "type": "string"
    },
    "long_description": {
      "type": "string"
    },
    "metric": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "options": {
      "items": {
        "$ref": "#/$defs/ServiceOption"
      },
      "type": "array"
    },
    "platform_key": {
      "type": "string"
    },
    "quality_tier": {
      "type": "string"
    },
    "service_category_key": {
      "type": "string"
    },
    "service_category_name": {
      "type": "string"
    },
    "short_description": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "speed_label": {
      "type": "string"
    },
    "speed_tier": {
      "type": "string"
    },
    "start_label": {
      "type": "string"
    },
    "starting_price_usd": {
      "description": "Cheapest option price per 1000 units, USD.",
      "type": "number"
    },
    "tags": {
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "type": "object",
  "$defs": {
    "ServiceOption": {
      "additionalProperties": true,
      "description": "One plan of a service: a quality or speed variant with its own price and quantity bounds.",
      "properties": {
        "cancelable": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "display_label": {
          "type": "string"
        },
        "id": {
          "format": "uuid",
          "type": "string"
        },
        "instructions": {
          "type": "string"
        },
        "max_quantity": {
          "type": [
            "number",
            "null"
          ]
        },
        "min_quantity": {
          "type": [
            "number",
            "null"
          ]
        },
        "option_group": {
          "type": "string"
        },
        "price_usd": {
          "description": "Price per 1000 units, USD.",
          "type": "number"
        },
        "slug": {
          "type": "string"
        },
        "status": {
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}