{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/carboncuretechnologies/main/json-schema/carboncuretechnologies-mix-group-batch-sample-args-schema.json",
  "title": "MixGroupBatchSampleArgs",
  "x-generated": "2026-10-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/carboncuretechnologies-openapi.json#/components/schemas/MixGroupBatchSampleArgs",
  "type": "object",
  "properties": {
    "batchSampleId": {
      "type": "integer",
      "format": "int32"
    },
    "externalTicketId": {
      "type": [
        "string",
        "null"
      ]
    },
    "airContent": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "slumpMm": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "concreteTemperature": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "ambientTemperature": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "batchWaterCementRatio": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "productionDate": {
      "type": "string",
      "format": "date"
    },
    "cO2Dosage": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "cO2DosageUnit": {
      "$ref": "#/$defs/CO2DosageUnit"
    },
    "cementReduction": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "averageStrength7Days": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "averageStrength28Days": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "densityKgPerM3": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "cementContent": {
      "type": [
        "number",
        "null"
      ],
      "description": "Though the name is lacking in units, this field is measured in kg",
      "format": "double"
    },
    "cementContentKgPerM3": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "scmPercent": {
      "type": [
        "number",
        "null"
      ],
      "description": "The percentage of SCMs out of the total cementitious content",
      "format": "double"
    },
    "strengthReadings": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/BatchSampleStrengthReading"
      }
    },
    "notes": {
      "type": [
        "string",
        "null"
      ]
    },
    "testCategory": {
      "$ref": "#/$defs/ConcreteTestCategory"
    },
    "hourlyStrengthAvg": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "$ref": "#/$defs/StrengthAverage"
      }
    },
    "outlierType": {
      "$ref": "#/$defs/OutlierType"
    },
    "outlierReason": {
      "type": [
        "string",
        "null"
      ]
    },
    "cementitiousEfficiency": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "cementSupplier": {
      "type": [
        "string",
        "null"
      ]
    },
    "cementType": {
      "$ref": "#/$defs/CementType"
    },
    "cementitiousContentKg": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "cementitiousContentKgPerM3": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "BatchSampleStrengthReading": {
      "type": "object",
      "properties": {
        "batchStrength": {
          "type": "number",
          "format": "double"
        },
        "batchInterval": {
          "type": "number",
          "format": "double"
        }
      },
      "additionalProperties": false
    },
    "CO2DosageUnit": {
      "enum": [
        "Litre",
        "PercentOfCement"
      ],
      "type": "string"
    },
    "CementType": {
      "enum": [
        "CementTypeI",
        "CementTypeIS",
        "CementTypeIP",
        "CementTypeIL",
        "CementTypeII",
        "CementTypeI_II",
        "CementTypeI_IIMH",
        "CementTypeI_II_LA",
        "CementTypeIII",
        "CementTypeIV",
        "CementTypeII_V",
        "CementTypeN",
        "CementTypeS",
        "CementCemI",
        "CementCemII",
        "CementCemIII",
        "CementCemIV",
        "CementCemV",
        "CementCemVI",
        "CementBlendedHydraulic"
      ],
      "type": "string"
    },
    "ConcreteTestCategory": {
      "enum": [
        "HistoricalData",
        "FieldData",
        "CommissioningTrial",
        "ThreePointCurves",
        "CarbonCureResearch",
        "ExternalLab",
        "Regulatory"
      ],
      "type": "string"
    },
    "OutlierType": {
      "enum": [
        "Orca"
      ],
      "type": "string"
    },
    "StrengthAverage": {
      "type": "object",
      "properties": {
        "cylinderCount": {
          "type": "integer",
          "format": "int32"
        },
        "averageMpa": {
          "type": "number",
          "format": "double"
        }
      },
      "additionalProperties": false
    }
  }
}