{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/regrow-ag/json-schema/regrow-ag-enteric-project-response-schema.json",
  "title": "EntericProjectResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/regrow-ag-v1-measure-api-enteric-api-openapi.yml#/components/schemas/EntericProjectResponse",
  "properties": {
    "ranchers": {
      "items": {
        "$ref": "#/$defs/AggregatedRancherEmissions"
      },
      "type": "array",
      "title": "Ranchers"
    },
    "baseline": {
      "$ref": "#/$defs/AggregatedEmissions"
    },
    "reporting_period": {
      "anyOf": [
        {
          "$ref": "#/$defs/AggregatedEmissions"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "ranchers",
    "baseline",
    "reporting_period"
  ],
  "$defs": {
    "AggregatedEmissions": {
      "properties": {
        "co2eq_total": {
          "type": "number",
          "title": "Co2Eq Total"
        },
        "co2eq_per_animal_unit": {
          "type": "number",
          "title": "Co2Eq Per Animal Unit"
        },
        "co2eq_per_terminal_unit": {
          "type": "number",
          "title": "Co2Eq Per Terminal Unit"
        },
        "co2eq_per_pound_of_terminal_unit": {
          "type": "number",
          "title": "Co2Eq Per Pound Of Terminal Unit"
        },
        "co2eq_per_animal_stage": {
          "additionalProperties": {
            "type": "number"
          },
          "propertyNames": {
            "$ref": "#/$defs/BeefCattleAgeClassEnum"
          },
          "type": "object",
          "title": "Co2Eq Per Animal Stage"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "co2eq_total",
        "co2eq_per_animal_unit",
        "co2eq_per_terminal_unit",
        "co2eq_per_pound_of_terminal_unit",
        "co2eq_per_animal_stage"
      ],
      "title": "AggregatedEmissions"
    },
    "AggregatedRancherEmissions": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "baseline": {
          "$ref": "#/$defs/AggregatedEmissions"
        },
        "reporting_period": {
          "anyOf": [
            {
              "$ref": "#/$defs/ReportingPeriodEmissions"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "name",
        "baseline",
        "reporting_period"
      ],
      "title": "AggregatedRancherEmissions"
    },
    "BeefCattleAgeClassEnum": {
      "type": "string",
      "enum": [
        "bull",
        "calf",
        "cow",
        "heifer_calf",
        "steer_calf",
        "weaner",
        "weaned_bull",
        "weaned_heifer",
        "weaned_steer",
        "yearling",
        "yearling_heifer",
        "yearling_steer",
        "feedlot"
      ],
      "title": "BeefCattleAgeClassEnum"
    },
    "PracticeChangeEnum": {
      "type": "string",
      "enum": [
        "fencing",
        "improved_forage",
        "improved_genetics",
        "improved_grazing",
        "soil_biology",
        "water_infrastructure"
      ],
      "title": "PracticeChangeEnum",
      "description": "The type of practice change."
    },
    "ReportingPeriodEmissions": {
      "properties": {
        "co2eq_total": {
          "type": "number",
          "title": "Co2Eq Total"
        },
        "co2eq_per_animal_unit": {
          "type": "number",
          "title": "Co2Eq Per Animal Unit"
        },
        "co2eq_per_terminal_unit": {
          "type": "number",
          "title": "Co2Eq Per Terminal Unit"
        },
        "co2eq_per_pound_of_terminal_unit": {
          "type": "number",
          "title": "Co2Eq Per Pound Of Terminal Unit"
        },
        "co2eq_per_animal_stage": {
          "additionalProperties": {
            "type": "number"
          },
          "propertyNames": {
            "$ref": "#/$defs/BeefCattleAgeClassEnum"
          },
          "type": "object",
          "title": "Co2Eq Per Animal Stage"
        },
        "practice_change": {
          "anyOf": [
            {
              "$ref": "#/$defs/PracticeChangeEnum"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "co2eq_total",
        "co2eq_per_animal_unit",
        "co2eq_per_terminal_unit",
        "co2eq_per_pound_of_terminal_unit",
        "co2eq_per_animal_stage"
      ],
      "title": "ReportingPeriodEmissions"
    }
  }
}