{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hempdata-io/json-schema/hempdata-io-compliance-reformulate-request-schema.json",
  "title": "ComplianceReformulateRequest",
  "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/ComplianceReformulateRequest",
  "type": "object",
  "properties": {
    "current_formulation": {
      "type": "object",
      "properties": {
        "thc_per_serving_mg": {
          "type": "number",
          "minimum": 0
        },
        "servings_per_container": {
          "type": "integer",
          "minimum": 1
        },
        "total_thc_mg": {
          "type": "number",
          "minimum": 0
        },
        "product_type": {
          "type": "string"
        }
      },
      "required": [
        "thc_per_serving_mg",
        "servings_per_container",
        "total_thc_mg",
        "product_type"
      ]
    },
    "target_states": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 2,
        "maxLength": 2
      },
      "minItems": 1,
      "maxItems": 56
    },
    "save_request": {
      "type": "boolean",
      "default": false
    }
  },
  "required": [
    "current_formulation",
    "target_states"
  ]
}