{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/carboncuretechnologies/json-schema/carboncuretechnologies-remote-unit-production-schema.json",
  "title": "RemoteUnitProduction",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/carboncuretechnologies-mycc-lanes-api-openapi.yml#/components/schemas/RemoteUnitProduction",
  "type": "object",
  "properties": {
    "remoteUnitId": {
      "type": "integer",
      "format": "int32"
    },
    "projectProduction": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/ProductionPoint"
      }
    },
    "nonProjectProduction": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/ProductionPoint"
      },
      "description": "This is the sum of production volumes of baseline mixes that are not included in the MixDesigns field.\nSumming together ProjectProduction + NonProjectProduction + MixDesigns should equal 100% of production."
    },
    "mixDesigns": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/MixDesignProduction"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "MixDesignProduction": {
      "type": "object",
      "properties": {
        "mixDesignId": {
          "type": "integer",
          "format": "int32"
        },
        "mixCode": {
          "type": [
            "string",
            "null"
          ]
        },
        "mixProduction": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/ProductionPoint"
          }
        }
      },
      "additionalProperties": false
    },
    "ProductionPoint": {
      "type": "object",
      "properties": {
        "month": {
          "type": "string",
          "format": "date"
        },
        "volumeM3": {
          "type": "number",
          "format": "double"
        }
      },
      "additionalProperties": false
    }
  }
}