{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://agstack.org/schemas/CropStressIndicatorObservation.json",
  "title": "CropStressIndicatorObservation",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "readOnly": true
    },
    "activityType": {
      "type": "string",
      "format": "uuid"
    },
    "title": {
      "type": "string",
      "maxLength": 200
    },
    "details": {
      "type": "string",
      "nullable": true
    },
    "phenomenonTime": {
      "type": "string",
      "format": "date-time"
    },
    "hasEndDatetime": {
      "type": "string",
      "format": "date-time",
      "nullable": true
    },
    "madeBySensor": {
      "allOf": [
        {
          "$ref": "#/components/schemas/MadeBySensorField"
        }
      ],
      "nullable": true
    },
    "hasAgriParcel": {
      "type": "string",
      "format": "uuid"
    },
    "hasAgriCrop": {
      "type": "string",
      "format": "uuid"
    },
    "hasResult": {
      "$ref": "#/components/schemas/GenericQuantityValueField"
    },
    "observedProperty": {
      "type": "string"
    }
  },
  "required": [
    "activityType",
    "hasAgriCrop",
    "hasAgriParcel",
    "hasResult",
    "id",
    "observedProperty",
    "phenomenonTime"
  ]
}