{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/regrow-ag/json-schema/regrow-ag-explore-apiresults-response-schema.json",
  "title": "ExploreAPIResultsResponse",
  "description": "The schema of the emissions reductions estimates response for a Field.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/regrow-ag-v0-explore-api-intervention-api-openapi.yml#/components/schemas/ExploreAPIResultsResponse",
  "properties": {
    "field_name": {
      "type": "string",
      "title": "Field Name"
    },
    "reporting_information": {
      "$ref": "#/$defs/ReportingInformationWithAreaAndCrop"
    },
    "field_id": {
      "type": "integer",
      "title": "Field Id"
    },
    "emissions_reductions_estimates": {
      "$ref": "#/$defs/EmissionReductionEstimatesWithConservativeDeduction"
    },
    "conservative_deduction": {
      "type": "number",
      "title": "Conservative Deduction"
    }
  },
  "type": "object",
  "required": [
    "field_name",
    "reporting_information",
    "field_id",
    "emissions_reductions_estimates",
    "conservative_deduction"
  ],
  "$defs": {
    "EmissionReductionEntity": {
      "properties": {
        "baseline": {
          "type": "number",
          "title": "Baseline"
        },
        "practice_change": {
          "type": "number",
          "title": "Practice Change"
        },
        "offset": {
          "type": "number",
          "title": "Offset"
        }
      },
      "type": "object",
      "required": [
        "baseline",
        "practice_change",
        "offset"
      ],
      "title": "EmissionReductionEntity",
      "description": "EmissionReductionEntity is similar to an EmissionsEntity, but with an offset instead of a credit."
    },
    "EmissionReductionEntityWithConservativeDeduction": {
      "properties": {
        "baseline": {
          "type": "number",
          "title": "Baseline"
        },
        "practice_change": {
          "type": "number",
          "title": "Practice Change"
        },
        "offset": {
          "type": "number",
          "title": "Offset"
        },
        "deduction": {
          "type": "number",
          "title": "Deduction"
        }
      },
      "type": "object",
      "required": [
        "baseline",
        "practice_change",
        "offset",
        "deduction"
      ],
      "title": "EmissionReductionEntityWithConservativeDeduction"
    },
    "EmissionReductionEstimatesWithConservativeDeduction": {
      "properties": {
        "total_emissions_reductions_estimate": {
          "type": "number",
          "title": "Total Emissions Reductions Estimate"
        },
        "dsoc": {
          "$ref": "#/$defs/EmissionReductionEntityWithConservativeDeduction"
        },
        "indirect_n2o": {
          "$ref": "#/$defs/EmissionReductionEntityWithConservativeDeduction"
        },
        "direct_n2o": {
          "$ref": "#/$defs/EmissionReductionEntityWithConservativeDeduction"
        },
        "soil_ch4": {
          "$ref": "#/$defs/EmissionReductionEntityWithConservativeDeduction"
        },
        "enteric_ch4": {
          "anyOf": [
            {
              "$ref": "#/$defs/EmissionReductionEntity"
            },
            {
              "type": "null"
            }
          ]
        },
        "fossil_fuel_co2": {
          "anyOf": [
            {
              "$ref": "#/$defs/EmissionReductionEntity"
            },
            {
              "type": "null"
            }
          ]
        },
        "liming": {
          "anyOf": [
            {
              "$ref": "#/$defs/EmissionReductionEntity"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object",
      "required": [
        "total_emissions_reductions_estimate",
        "dsoc",
        "indirect_n2o",
        "direct_n2o",
        "soil_ch4"
      ],
      "title": "EmissionReductionEstimatesWithConservativeDeduction"
    },
    "ReportingInformationWithAreaAndCrop": {
      "properties": {
        "start_date": {
          "type": "string",
          "title": "Start Date",
          "description": "Format is \"YYYY-MM-DD\". Represents the date the reporting period begins. Typically, this is the harvest date of the commodity crop from the season prior to the practice change."
        },
        "end_date": {
          "type": "string",
          "title": "End Date",
          "description": "Format is \"YYYY-MM-DD\". Represents the date the reporting period ends. Typically, this is the harvest date of the commodity crop during the practice change season, or the date of the last management event, whichever is later."
        },
        "acres": {
          "type": "number",
          "title": "Area in acres",
          "description": "The area of the field in acres."
        },
        "crop_name": {
          "type": "string",
          "title": "Name",
          "description": "Cash crop harvested on reporting end date."
        },
        "crop_yield": {
          "anyOf": [
            {
              "type": "number",
              "exclusiveMinimum": 0.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Yield",
          "description": "The crop yield in bushels/acre. For Scope 1 and Scope 3 assets generation this means the average yield. This is required for protocols calculating Scope 3 assets. For protocols calculating Scope 1 assets, this is optional and will not be used for Scope 1 asset calculation. If included, it will be passed to the output config for reference."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "start_date",
        "end_date",
        "acres",
        "crop_name"
      ],
      "title": "ReportingInformationWithAreaAndCrop",
      "description": "The `ReportingInformation` object specifies the metadata needed to quantify emissions/removals for a field, including the time period for which emissions should be quantified, and the crop the emissions/removals will be quantified for.\n\nTypically the `ReportingInformation` period correlates with a growing season or crop year for a field where regenerative or intervention practices are adopted."
    }
  }
}