{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://publicschema.org/agri/CropPlantingComponent.schema.json",
  "title": "CropPlantingComponent",
  "description": "One crop, optionally of an identified variety, grown within a planting. Several components describe inter-planted, mixed or associated crops, and each can have its own planting date.",
  "type": "object",
  "properties": {
    "crop_kind": {
      "$ref": "https://publicschema.org/CodedValue.schema.json",
      "description": "The kind of crop grown, as a code from an identified crop classification such as the FAO Indicative Crop Classification or the Central Product Classification."
    },
    "planted_variety": {
      "oneOf": [
        {
          "$ref": "https://publicschema.org/PlantVariety.schema.json"
        },
        {
          "type": "string",
          "description": "URI or identifier reference"
        }
      ],
      "description": "The variety grown in this component, when identified."
    },
    "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."
    },
    "component_planted_area": {
      "$ref": "https://publicschema.org/QuantityValue.schema.json",
      "description": "The area attributed to this component, with an area unit. For inter-planted, mixed or associated crops the area of the plot or field is apportioned among the components, so the component areas add up to the area of the plot or field."
    }
  }
}
