{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hempdata-io/json-schema/hempdata-io-compliance-scan-request-schema.json",
  "title": "ComplianceScanRequest",
  "description": "COA numbers for a finished product. All potency fields are percentages from the certificate of analysis.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/hempdata-io-api-openapi.json#/components/schemas/ComplianceScanRequest",
  "type": "object",
  "properties": {
    "total_thc_percent": {
      "type": "number",
      "minimum": 0,
      "maximum": 100
    },
    "delta9_thc_percent": {
      "type": "number",
      "minimum": 0,
      "maximum": 100
    },
    "thca_percent": {
      "type": "number",
      "minimum": 0,
      "maximum": 100
    },
    "substance": {
      "type": "string"
    },
    "product_type": {
      "type": "string"
    },
    "serving_size_mg": {
      "type": "number",
      "exclusiveMinimum": 0
    },
    "servings_per_container": {
      "type": "integer",
      "minimum": 1
    }
  },
  "required": [
    "total_thc_percent",
    "delta9_thc_percent",
    "thca_percent",
    "product_type",
    "serving_size_mg",
    "servings_per_container"
  ]
}