{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://publicschema.org/agri/CropPlanting.schema.json",
  "title": "CropPlanting",
  "description": "One cultivation of one or more crops on an identified piece of land of an agricultural holding, from sowing or planting to the end of that crop cycle. Growing a crop again on the same land later is a separate planting. A declaration about a planting is a separate administrative record.",
  "type": "object",
  "properties": {
    "planting_holding": {
      "oneOf": [
        {
          "$ref": "https://publicschema.org/agri/Farm.schema.json"
        },
        {
          "type": "string",
          "description": "URI or identifier reference"
        }
      ],
      "description": "The agricultural holding that carries out this planting. It need not own the land."
    },
    "planting_parcel": {
      "oneOf": [
        {
          "$ref": "https://publicschema.org/agri/AgriculturalParcel.schema.json"
        },
        {
          "type": "string",
          "description": "URI or identifier reference"
        }
      ],
      "description": "The agricultural parcel on which the planting takes place."
    },
    "planting_components": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "$ref": "https://publicschema.org/agri/CropPlantingComponent.schema.json"
          },
          {
            "type": "string",
            "description": "URI or identifier reference"
          }
        ],
        "description": "The crops grown in this planting, one component for each crop of a mixture."
      }
    },
    "planting_date": {
      "type": "string",
      "format": "date",
      "description": "The date on which the crop was sown or planted. On a planting it is the date shared by all its components; on a component it is the date of that crop alone."
    },
    "planting_season": {
      "$ref": "https://publicschema.org/CodedValue.schema.json",
      "description": "The cropping season in which the planting took place, as defined by a national or local season scheme. A season need not match a calendar year."
    }
  }
}
