Validations history

Validation #1062

Failure

The input JSON schema does not validate the input JSON instance (JSON Schema Draft 4). Errors:

  • The property '#/stages/0' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/1' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/2' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/3' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/4' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/5' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/6' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/7' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "DefaultFungicideDayRisks_2225": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "globalRiskLevel": {
          "type": "integer"
        },
        "globalRiskLevelLabel": {
          "type": "string"
        },
        "globalRiskPictureURL": {
          "type": "string"
        },
        "organs": {
          "items": {
            "$ref": "#/definitions/DefaultFungicideOrgan_2222",
            "type": "object"
          },
          "type": "array"
        },
        "targets": {
          "items": {
            "$ref": "#/definitions/FungicideDetailTarget_2224",
            "type": "object"
          },
          "type": "array"
        }
      },
      "required": [
        "globalRiskLevelLabel",
        "targets"
      ],
      "title": "FungicideDayRisks - DefaultFungicideDayRisks",
      "type": "object"
    },
    "DefaultFungicideOrgan_2222": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "organId": {
          "type": "integer"
        },
        "organLabel": {
          "type": "string"
        },
        "organRiskLevel": {
          "type": "integer"
        },
        "organRiskLevelLabel": {
          "type": "string"
        }
      },
      "required": [
        "organId",
        "organLabel",
        "organRiskLevel",
        "organRiskLevelLabel"
      ],
      "title": "FungicideOrgan - DefaultFungicideOrgan",
      "type": "object"
    },
    "DefaultFungicideStage_2221": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "observationId": {
          "description": "Obligatoire si stageType == 1",
          "type": "integer"
        },
        "position": {
          "type": "integer"
        },
        "stageDate": {
          "type": "string"
        },
        "stageDescription": {
          "type": "string"
        },
        "stageId": {
          "type": "integer"
        },
        "stageLabel": {
          "type": "string"
        },
        "stagePictureURL": {
          "type": "string"
        },
        "stageType": {
          "type": "integer"
        }
      },
      "required": [
        "observationId",
        "position",
        "stageDate",
        "stageDescription",
        "stageId",
        "stageLabel",
        "stagePictureURL",
        "stageType"
      ],
      "title": "FungicideStage - DefaultFungicideStage",
      "type": "object"
    },
    "DefaultFungicideWorkOperation_2227": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "operationDate": {
          "type": "string"
        },
        "operationId": {
          "type": "integer"
        },
        "operationsProducts": {
          "items": {
            "$ref": "#/definitions/FungicideOperationProduct_2226",
            "type": "object"
          },
          "type": "array"
        },
        "workOperationLabel": {
          "type": "string"
        },
        "workOperationType": {
          "type": "integer"
        }
      },
      "required": [
        "operationDate",
        "operationId",
        "operationsProducts",
        "workOperationLabel",
        "workOperationType"
      ],
      "title": "FungicideWorkOperation - DefaultFungicideWorkOperation",
      "type": "object"
    },
    "DefaultLocalization_2210": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "latitude": {
          "type": "number"
        },
        "longitude": {
          "type": "number"
        }
      },
      "required": [
        "latitude",
        "longitude"
      ],
      "title": "Localization - DefaultLocalization",
      "type": "object"
    },
    "FungicideDetailTarget_2224": {
      "additionalProperties": false,
      "properties": {
        "isTargetInTest": {
          "type": "boolean"
        },
        "numberOfDays": {
          "type": "integer"
        },
        "organs": {
          "items": {
            "$ref": "#/definitions/DefaultFungicideOrgan_2222",
            "type": "object"
          },
          "type": "array"
        },
        "plantAlertLevel": {
          "type": "integer"
        },
        "plantAlertLevelLabel": {
          "type": "string"
        },
        "targetDescription": {
          "type": "string"
        },
        "targetId": {
          "type": "integer"
        },
        "targetLabel": {
          "type": "string"
        }
      },
      "required": [
        "isTargetInTest",
        "organs",
        "plantAlertLevel",
        "plantAlertLevelLabel",
        "targetId",
        "targetLabel"
      ],
      "title": "FungicideTarget - FungicideDetailTarget",
      "type": "object"
    },
    "FungicideOperationProduct_2226": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "productId": {
          "type": "integer"
        },
        "productLabel": {
          "type": "string"
        },
        "quantity": {
          "type": "number"
        },
        "unitCode": {
          "type": "string"
        },
        "unitId": {
          "type": "integer"
        }
      },
      "required": [
        "productId",
        "productLabel",
        "quantity",
        "unitCode",
        "unitId"
      ],
      "title": "FungicideProduct - FungicideOperationProduct",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "antePreviousCropId": {
      "type": "integer"
    },
    "antePreviousCropLabel": {
      "type": "string"
    },
    "calculationDate": {
      "description": "Non utilisé",
      "type": "string"
    },
    "cityCode": {
      "type": "string"
    },
    "cityName": {
      "type": "string"
    },
    "countryCode": {
      "description": "Non utilisé",
      "type": "string"
    },
    "cropId": {
      "type": "integer"
    },
    "cropLabel": {
      "type": "string"
    },
    "currentDayRisks": {
      "$ref": "#/definitions/DefaultFungicideDayRisks_2225",
      "type": "object"
    },
    "farmId": {
      "description": "Non utilisé",
      "type": "integer"
    },
    "fieldId": {
      "type": "integer"
    },
    "fieldName": {
      "type": "string"
    },
    "groupId": {
      "type": "integer"
    },
    "groupLabel": {
      "type": "string"
    },
    "localization": {
      "$ref": "#/definitions/DefaultLocalization_2210",
      "type": "object"
    },
    "missingObservations": {
      "type": "integer"
    },
    "nextDaysRisks": {
      "items": {
        "$ref": "#/definitions/DefaultFungicideDayRisks_2225",
        "type": "object"
      },
      "type": "array"
    },
    "ploughed": {
      "type": "string"
    },
    "predictionDate": {
      "type": "string"
    },
    "predictionModelLabel": {
      "description": "Non utilisé",
      "type": "string"
    },
    "previousCropId": {
      "type": "integer"
    },
    "previousCropLabel": {
      "type": "string"
    },
    "soilTextureId": {
      "type": "integer"
    },
    "soilTextureLabel": {
      "type": "string"
    },
    "sowingDate": {
      "type": "string"
    },
    "stages": {
      "items": {
        "$ref": "#/definitions/DefaultFungicideStage_2221",
        "type": "object"
      },
      "type": "array"
    },
    "surface": {
      "type": "number"
    },
    "workOperations": {
      "items": {
        "$ref": "#/definitions/DefaultFungicideWorkOperation_2227",
        "type": "object"
      },
      "type": "array"
    },
    "yieldPotential": {
      "type": "string"
    }
  },
  "required": [
    "antePreviousCropId",
    "antePreviousCropLabel",
    "calculationDate",
    "cityCode",
    "countryCode",
    "cropId",
    "cropLabel",
    "currentDayRisks",
    "farmId",
    "fieldId",
    "fieldName",
    "groupId",
    "groupLabel",
    "localization",
    "missingObservations",
    "nextDaysRisks",
    "ploughed",
    "predictionDate",
    "predictionModelLabel",
    "previousCropId",
    "previousCropLabel",
    "soilTextureId",
    "soilTextureLabel",
    "sowingDate",
    "stages",
    "surface",
    "workOperations",
    "yieldPotential"
  ],
  "title": "FungicideParcel - DefaultFungicideFieldDetail",
  "type": "object"
}

JSON instance

{
  "antePreviousCropId": 559,
  "antePreviousCropLabel": "Pailles",
  "calculationDate": "2021-03-11T11:32:48",
  "cityCode": "CY_FR_37032",
  "cityName": "BOURNAN",
  "countryCode": "FR",
  "cropId": 169,
  "cropLabel": "FILON",
  "currentDayRisks": {
    "globalRiskLevel": 3,
    "globalRiskLevelLabel": "En dehors des stades de traitement pour la maladie concernée",
    "globalRiskPictureURL": "https://static-cf.farmi.com/plantsimages/220F93301109896455B377F62E41D779.png",
    "organs": [
      {
        "organId": 2,
        "organLabel": "F1",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 3,
        "organLabel": "F2",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 4,
        "organLabel": "F3",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 5,
        "organLabel": "F4",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 6,
        "organLabel": "F5",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      }
    ],
    "targets": [
      {
        "isTargetInTest": true,
        "organs": [],
        "plantAlertLevel": 3,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période d'intervention ",
        "targetId": 1,
        "targetLabel": "Piétin-verse"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          }
        ],
        "plantAlertLevel": 3,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période d'intervention ",
        "targetId": 2,
        "targetLabel": "Septoriose"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          }
        ],
        "plantAlertLevel": 3,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période d'intervention ",
        "targetId": 3,
        "targetLabel": "Rouille brune"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          }
        ],
        "plantAlertLevel": 3,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période d'intervention ",
        "targetId": 4,
        "targetLabel": "Rouille jaune"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          }
        ],
        "plantAlertLevel": 3,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "Période pertinente non atteinte",
        "targetId": 6,
        "targetLabel": "Oïdium"
      },
      {
        "isTargetInTest": true,
        "organs": [],
        "plantAlertLevel": 3,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période d'intervention ",
        "targetId": 7,
        "targetLabel": "Fusariose"
      }
    ]
  },
  "farmId": 174,
  "fieldId": 1534,
  "fieldName": "Le Château d'eau",
  "groupId": 2,
  "groupLabel": "Blé tendre",
  "localization": {
    "latitude": 47.01351,
    "longitude": 0.18223
  },
  "missingObservations": 1,
  "nextDaysRisks": [
    {
      "globalRiskLevel": 3,
      "globalRiskLevelLabel": "En dehors des stades de traitement pour la maladie concernée",
      "globalRiskPictureURL": "https://static-cf.farmi.com/plantsimages/220F93301109896455B377F62E41D779.png",
      "organs": [
        {
          "organId": 2,
          "organLabel": "F1",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        },
        {
          "organId": 3,
          "organLabel": "F2",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        },
        {
          "organId": 4,
          "organLabel": "F3",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        },
        {
          "organId": 5,
          "organLabel": "F4",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        },
        {
          "organId": 6,
          "organLabel": "F5",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        }
      ],
      "targets": [
        {
          "isTargetInTest": true,
          "organs": [],
          "plantAlertLevel": 3,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période d'intervention ",
          "targetId": 1,
          "targetLabel": "Piétin-verse"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            }
          ],
          "plantAlertLevel": 3,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période d'intervention ",
          "targetId": 2,
          "targetLabel": "Septoriose"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            }
          ],
          "plantAlertLevel": 3,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période d'intervention ",
          "targetId": 3,
          "targetLabel": "Rouille brune"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            }
          ],
          "plantAlertLevel": 3,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période d'intervention ",
          "targetId": 4,
          "targetLabel": "Rouille jaune"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            }
          ],
          "plantAlertLevel": 3,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "Période pertinente non atteinte",
          "targetId": 6,
          "targetLabel": "Oïdium"
        },
        {
          "isTargetInTest": true,
          "organs": [],
          "plantAlertLevel": 3,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période d'intervention ",
          "targetId": 7,
          "targetLabel": "Fusariose"
        }
      ]
    }
  ],
  "ploughed": "Labour",
  "predictionDate": "2021-03-11T00:00:00",
  "predictionModelLabel": "Simulation agroclimatique",
  "previousCropId": 555,
  "previousCropLabel": "Tournesol",
  "soilTextureId": 10,
  "soilTextureLabel": "Argile calcaire",
  "sowingDate": "2020-11-05T00:00:00",
  "stages": [
    {
      "position": 1,
      "stageDate": "2021-03-12T00:00:00",
      "stageDescription": "Les plantes se redressent : c'est la fin du tallage herbacé et la tige principale commence à s'allonger. La distance entre le sommet de l'épi et le plateau de tallage est en moyenne d'1cm.\n  Pour l'observer :\n   - Isoler le maitre-brin de chaque plante arrachée et éliminer les talles.\n  - Couper les racines à la base de la tige.\n  - Fendre la base de la tige avec une lame de couteau dans le sens de la longueur\n  - Mesurer la distance entre le sommet de l'épi et la base du plateau de tallage",
      "stageId": 2285,
      "stageLabel": "Épi 1 cm, début montaison",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH30_EPI1CM.jpg",
      "stageType": 0
    },
    {
      "position": 2,
      "stageDate": "2021-03-26T00:00:00",
      "stageDescription": "Il faut l'observer 10 à 15 jours après le stade épi 1cm. Le premier nœud est situé le plus près de la base de la tige.\n  La hauteur entre le sommet de l'épi et le plateau de tallage varie entre 3 à 5 cm.",
      "stageId": 2286,
      "stageLabel": "1er nœud formé",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH31_1NOEUD.jpg",
      "stageType": 0
    },
    {
      "position": 3,
      "stageDate": "2021-04-04T00:00:00",
      "stageDescription": "Les deux premiers nœuds sont bien visibles à la base de la tige quand on atteint 2 nœuds.\n  La hauteur entre le sommet de l'épi et le plateau de tallage varie entre 6 à 12 cm.",
      "stageId": 2287,
      "stageLabel": "2ème nœud formé",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH32_2NOEUD.jpg",
      "stageType": 0
    },
    {
      "position": 4,
      "stageDate": "2021-04-19T00:00:00",
      "stageDescription": "La dernière feuille est visible mais encore enroulée.  ",
      "stageId": 2292,
      "stageLabel": "Dernière feuille pointante",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH37_DERNIERE_FEUILLE_POINTANTE.jpg",
      "stageType": 0
    },
    {
      "position": 5,
      "stageDate": "2021-04-21T00:00:00",
      "stageDescription": "La ligule de la dernière feuille est entièrement développée. La gaine est gonflée au niveau de l'épi",
      "stageId": 2293,
      "stageLabel": "Dernière feuille étalée",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH39_DERNIERE_FEUILLE_ETALEE.png",
      "stageType": 0
    },
    {
      "position": 6,
      "stageDate": "2021-05-11T00:00:00",
      "stageDescription": "L'épiaison est le stade phénologique qui correspond à l'apparition de l'épi hors de la gaine de la dernière feuille.\n  Le stade mi-épaison correspond à 50 % de l'inflorescence sortie et la gaine est éclatée.",
      "stageId": 2303,
      "stageLabel": "Mi épiaison",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH55_MI_EPIAISON.png",
      "stageType": 0
    },
    {
      "position": 7,
      "stageDate": "2021-05-19T00:00:00",
      "stageDescription": "La floraison se caractérise par l'apparition des étamines hors des épillets.\n C'est la fin de la montaison, la croissance des tiges est terminée.\n L'appréciaiton précise du stade est délicate en raison de la présence des étamines sur les épi longtemps après la floraision.",
      "stageId": 2329,
      "stageLabel": "Floraison",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH60_FLORAISON.png",
      "stageType": 0
    },
    {
      "position": 8,
      "stageDate": "2021-06-30T00:00:00",
      "stageDescription": "",
      "stageId": 2324,
      "stageLabel": "Maturité complète",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH89_MATURITECOMPLETE.png",
      "stageType": 0
    }
  ],
  "surface": 5.69,
  "workOperations": [],
  "yieldPotential": "de 70 à 80 q/ha"
}

Validation #1061

Failure

The input JSON schema does not validate the input JSON instance (JSON Schema Draft 4). Errors:

  • The property '#/stages/0' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/1' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/2' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/3' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/4' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/5' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/6' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/7' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "DefaultFungicideDayRisks_2225": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "globalRiskLevel": {
          "type": "integer"
        },
        "globalRiskLevelLabel": {
          "type": "string"
        },
        "globalRiskPictureURL": {
          "type": "string"
        },
        "organs": {
          "items": {
            "$ref": "#/definitions/DefaultFungicideOrgan_2222",
            "type": "object"
          },
          "type": "array"
        },
        "targets": {
          "items": {
            "$ref": "#/definitions/FungicideDetailTarget_2224",
            "type": "object"
          },
          "type": "array"
        }
      },
      "required": [
        "globalRiskLevelLabel",
        "targets"
      ],
      "title": "FungicideDayRisks - DefaultFungicideDayRisks",
      "type": "object"
    },
    "DefaultFungicideOrgan_2222": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "organId": {
          "type": "integer"
        },
        "organLabel": {
          "type": "string"
        },
        "organRiskLevel": {
          "type": "integer"
        },
        "organRiskLevelLabel": {
          "type": "string"
        }
      },
      "required": [
        "organId",
        "organLabel",
        "organRiskLevel",
        "organRiskLevelLabel"
      ],
      "title": "FungicideOrgan - DefaultFungicideOrgan",
      "type": "object"
    },
    "DefaultFungicideStage_2221": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "observationId": {
          "description": "Obligatoire si stageType == 1",
          "type": "integer"
        },
        "position": {
          "type": "integer"
        },
        "stageDate": {
          "type": "string"
        },
        "stageDescription": {
          "type": "string"
        },
        "stageId": {
          "type": "integer"
        },
        "stageLabel": {
          "type": "string"
        },
        "stagePictureURL": {
          "type": "string"
        },
        "stageType": {
          "type": "integer"
        }
      },
      "required": [
        "observationId",
        "position",
        "stageDate",
        "stageDescription",
        "stageId",
        "stageLabel",
        "stagePictureURL",
        "stageType"
      ],
      "title": "FungicideStage - DefaultFungicideStage",
      "type": "object"
    },
    "DefaultFungicideWorkOperation_2227": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "operationDate": {
          "type": "string"
        },
        "operationId": {
          "type": "integer"
        },
        "operationsProducts": {
          "items": {
            "$ref": "#/definitions/FungicideOperationProduct_2226",
            "type": "object"
          },
          "type": "array"
        },
        "workOperationLabel": {
          "type": "string"
        },
        "workOperationType": {
          "type": "integer"
        }
      },
      "required": [
        "operationDate",
        "operationId",
        "operationsProducts",
        "workOperationLabel",
        "workOperationType"
      ],
      "title": "FungicideWorkOperation - DefaultFungicideWorkOperation",
      "type": "object"
    },
    "DefaultLocalization_2210": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "latitude": {
          "type": "number"
        },
        "longitude": {
          "type": "number"
        }
      },
      "required": [
        "latitude",
        "longitude"
      ],
      "title": "Localization - DefaultLocalization",
      "type": "object"
    },
    "FungicideDetailTarget_2224": {
      "additionalProperties": false,
      "properties": {
        "isTargetInTest": {
          "type": "boolean"
        },
        "numberOfDays": {
          "type": "integer"
        },
        "organs": {
          "items": {
            "$ref": "#/definitions/DefaultFungicideOrgan_2222",
            "type": "object"
          },
          "type": "array"
        },
        "plantAlertLevel": {
          "type": "integer"
        },
        "plantAlertLevelLabel": {
          "type": "string"
        },
        "targetDescription": {
          "type": "string"
        },
        "targetId": {
          "type": "integer"
        },
        "targetLabel": {
          "type": "string"
        }
      },
      "required": [
        "isTargetInTest",
        "organs",
        "plantAlertLevel",
        "plantAlertLevelLabel",
        "targetId",
        "targetLabel"
      ],
      "title": "FungicideTarget - FungicideDetailTarget",
      "type": "object"
    },
    "FungicideOperationProduct_2226": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "productId": {
          "type": "integer"
        },
        "productLabel": {
          "type": "string"
        },
        "quantity": {
          "type": "number"
        },
        "unitCode": {
          "type": "string"
        },
        "unitId": {
          "type": "integer"
        }
      },
      "required": [
        "productId",
        "productLabel",
        "quantity",
        "unitCode",
        "unitId"
      ],
      "title": "FungicideProduct - FungicideOperationProduct",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "antePreviousCropId": {
      "type": "integer"
    },
    "antePreviousCropLabel": {
      "type": "string"
    },
    "calculationDate": {
      "description": "Non utilisé",
      "type": "string"
    },
    "cityCode": {
      "type": "string"
    },
    "cityName": {
      "type": "string"
    },
    "countryCode": {
      "description": "Non utilisé",
      "type": "string"
    },
    "cropId": {
      "type": "integer"
    },
    "cropLabel": {
      "type": "string"
    },
    "currentDayRisks": {
      "$ref": "#/definitions/DefaultFungicideDayRisks_2225",
      "type": "object"
    },
    "farmId": {
      "description": "Non utilisé",
      "type": "integer"
    },
    "fieldId": {
      "type": "integer"
    },
    "fieldName": {
      "type": "string"
    },
    "groupId": {
      "type": "integer"
    },
    "groupLabel": {
      "type": "string"
    },
    "localization": {
      "$ref": "#/definitions/DefaultLocalization_2210",
      "type": "object"
    },
    "missingObservations": {
      "type": "integer"
    },
    "nextDaysRisks": {
      "items": {
        "$ref": "#/definitions/DefaultFungicideDayRisks_2225",
        "type": "object"
      },
      "type": "array"
    },
    "ploughed": {
      "type": "string"
    },
    "predictionDate": {
      "type": "string"
    },
    "predictionModelLabel": {
      "description": "Non utilisé",
      "type": "string"
    },
    "previousCropId": {
      "type": "integer"
    },
    "previousCropLabel": {
      "type": "string"
    },
    "soilTextureId": {
      "type": "integer"
    },
    "soilTextureLabel": {
      "type": "string"
    },
    "sowingDate": {
      "type": "string"
    },
    "stages": {
      "items": {
        "$ref": "#/definitions/DefaultFungicideStage_2221",
        "type": "object"
      },
      "type": "array"
    },
    "surface": {
      "type": "number"
    },
    "workOperations": {
      "items": {
        "$ref": "#/definitions/DefaultFungicideWorkOperation_2227",
        "type": "object"
      },
      "type": "array"
    },
    "yieldPotential": {
      "type": "string"
    }
  },
  "required": [
    "antePreviousCropId",
    "antePreviousCropLabel",
    "calculationDate",
    "cityCode",
    "countryCode",
    "cropId",
    "cropLabel",
    "currentDayRisks",
    "farmId",
    "fieldId",
    "fieldName",
    "groupId",
    "groupLabel",
    "localization",
    "missingObservations",
    "nextDaysRisks",
    "ploughed",
    "predictionDate",
    "predictionModelLabel",
    "previousCropId",
    "previousCropLabel",
    "soilTextureId",
    "soilTextureLabel",
    "sowingDate",
    "stages",
    "surface",
    "workOperations",
    "yieldPotential"
  ],
  "title": "FungicideParcel - DefaultFungicideFieldDetail",
  "type": "object"
}

JSON instance

{
  "antePreviousCropId": 559,
  "antePreviousCropLabel": "Pailles",
  "calculationDate": "2021-03-11T11:32:38",
  "cityCode": "CY_FR_37032",
  "cityName": "BOURNAN",
  "countryCode": "FR",
  "cropId": 169,
  "cropLabel": "FILON",
  "currentDayRisks": {
    "globalRiskLevel": 0,
    "globalRiskLevelLabel": "Pas de risque",
    "globalRiskPictureURL": "https://static-cf.farmi.com/plantsimages/3E4C1248996412A3F246B87350AD225E.png",
    "organs": [
      {
        "organId": 2,
        "organLabel": "F1",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 3,
        "organLabel": "F2",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 4,
        "organLabel": "F3",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 5,
        "organLabel": "F4",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 6,
        "organLabel": "F5",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      }
    ],
    "targets": [
      {
        "isTargetInTest": true,
        "organs": [],
        "plantAlertLevel": 0,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "Pas de risque ",
        "targetId": 1,
        "targetLabel": "Piétin-verse"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          }
        ],
        "plantAlertLevel": 0,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période d'intervention ",
        "targetId": 2,
        "targetLabel": "Septoriose"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          }
        ],
        "plantAlertLevel": 0,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période d'intervention ",
        "targetId": 3,
        "targetLabel": "Rouille brune"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          }
        ],
        "plantAlertLevel": 0,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "Pas de risque",
        "targetId": 4,
        "targetLabel": "Rouille jaune"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          }
        ],
        "plantAlertLevel": 0,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "Période pertinente non atteinte",
        "targetId": 6,
        "targetLabel": "Oïdium"
      },
      {
        "isTargetInTest": true,
        "organs": [],
        "plantAlertLevel": 3,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période d'intervention ",
        "targetId": 7,
        "targetLabel": "Fusariose"
      }
    ]
  },
  "farmId": 174,
  "fieldId": 1536,
  "fieldName": "La Grande",
  "groupId": 2,
  "groupLabel": "Blé tendre",
  "localization": {
    "latitude": 47.07422,
    "longitude": 0.10295
  },
  "missingObservations": 1,
  "nextDaysRisks": [
    {
      "globalRiskLevel": 0,
      "globalRiskLevelLabel": "Pas de risque",
      "globalRiskPictureURL": "https://static-cf.farmi.com/plantsimages/3E4C1248996412A3F246B87350AD225E.png",
      "organs": [
        {
          "organId": 2,
          "organLabel": "F1",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        },
        {
          "organId": 3,
          "organLabel": "F2",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        },
        {
          "organId": 4,
          "organLabel": "F3",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        },
        {
          "organId": 5,
          "organLabel": "F4",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        },
        {
          "organId": 6,
          "organLabel": "F5",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        }
      ],
      "targets": [
        {
          "isTargetInTest": true,
          "organs": [],
          "plantAlertLevel": 0,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "Pas de risque ",
          "targetId": 1,
          "targetLabel": "Piétin-verse"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            }
          ],
          "plantAlertLevel": 0,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période d'intervention ",
          "targetId": 2,
          "targetLabel": "Septoriose"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            }
          ],
          "plantAlertLevel": 0,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période d'intervention ",
          "targetId": 3,
          "targetLabel": "Rouille brune"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            }
          ],
          "plantAlertLevel": 0,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "Pas de risque",
          "targetId": 4,
          "targetLabel": "Rouille jaune"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            }
          ],
          "plantAlertLevel": 0,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "Période pertinente non atteinte",
          "targetId": 6,
          "targetLabel": "Oïdium"
        },
        {
          "isTargetInTest": true,
          "organs": [],
          "plantAlertLevel": 3,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période d'intervention ",
          "targetId": 7,
          "targetLabel": "Fusariose"
        }
      ]
    }
  ],
  "ploughed": "Labour",
  "predictionDate": "2021-03-11T00:00:00",
  "predictionModelLabel": "Simulation agroclimatique",
  "previousCropId": 542,
  "previousCropLabel": "Colza",
  "soilTextureId": 10,
  "soilTextureLabel": "Argile calcaire",
  "sowingDate": "2020-11-06T00:00:00",
  "stages": [
    {
      "position": 1,
      "stageDate": "2021-03-11T00:00:00",
      "stageDescription": "Les plantes se redressent : c'est la fin du tallage herbacé et la tige principale commence à s'allonger. La distance entre le sommet de l'épi et le plateau de tallage est en moyenne d'1cm.\n  Pour l'observer :\n   - Isoler le maitre-brin de chaque plante arrachée et éliminer les talles.\n  - Couper les racines à la base de la tige.\n  - Fendre la base de la tige avec une lame de couteau dans le sens de la longueur\n  - Mesurer la distance entre le sommet de l'épi et la base du plateau de tallage",
      "stageId": 2285,
      "stageLabel": "Épi 1 cm, début montaison",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH30_EPI1CM.jpg",
      "stageType": 0
    },
    {
      "position": 2,
      "stageDate": "2021-03-25T00:00:00",
      "stageDescription": "Il faut l'observer 10 à 15 jours après le stade épi 1cm. Le premier nœud est situé le plus près de la base de la tige.\n  La hauteur entre le sommet de l'épi et le plateau de tallage varie entre 3 à 5 cm.",
      "stageId": 2286,
      "stageLabel": "1er nœud formé",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH31_1NOEUD.jpg",
      "stageType": 0
    },
    {
      "position": 3,
      "stageDate": "2021-04-03T00:00:00",
      "stageDescription": "Les deux premiers nœuds sont bien visibles à la base de la tige quand on atteint 2 nœuds.\n  La hauteur entre le sommet de l'épi et le plateau de tallage varie entre 6 à 12 cm.",
      "stageId": 2287,
      "stageLabel": "2ème nœud formé",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH32_2NOEUD.jpg",
      "stageType": 0
    },
    {
      "position": 4,
      "stageDate": "2021-04-18T00:00:00",
      "stageDescription": "La dernière feuille est visible mais encore enroulée.  ",
      "stageId": 2292,
      "stageLabel": "Dernière feuille pointante",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH37_DERNIERE_FEUILLE_POINTANTE.jpg",
      "stageType": 0
    },
    {
      "position": 5,
      "stageDate": "2021-04-20T00:00:00",
      "stageDescription": "La ligule de la dernière feuille est entièrement développée. La gaine est gonflée au niveau de l'épi",
      "stageId": 2293,
      "stageLabel": "Dernière feuille étalée",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH39_DERNIERE_FEUILLE_ETALEE.png",
      "stageType": 0
    },
    {
      "position": 6,
      "stageDate": "2021-05-10T00:00:00",
      "stageDescription": "L'épiaison est le stade phénologique qui correspond à l'apparition de l'épi hors de la gaine de la dernière feuille.\n  Le stade mi-épaison correspond à 50 % de l'inflorescence sortie et la gaine est éclatée.",
      "stageId": 2303,
      "stageLabel": "Mi épiaison",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH55_MI_EPIAISON.png",
      "stageType": 0
    },
    {
      "position": 7,
      "stageDate": "2021-05-19T00:00:00",
      "stageDescription": "La floraison se caractérise par l'apparition des étamines hors des épillets.\n C'est la fin de la montaison, la croissance des tiges est terminée.\n L'appréciaiton précise du stade est délicate en raison de la présence des étamines sur les épi longtemps après la floraision.",
      "stageId": 2329,
      "stageLabel": "Floraison",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH60_FLORAISON.png",
      "stageType": 0
    },
    {
      "position": 8,
      "stageDate": "2021-06-30T00:00:00",
      "stageDescription": "",
      "stageId": 2324,
      "stageLabel": "Maturité complète",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH89_MATURITECOMPLETE.png",
      "stageType": 0
    }
  ],
  "surface": 5.08,
  "workOperations": [],
  "yieldPotential": "de 70 à 80 q/ha"
}

Validation #1060

Failure

The input JSON schema does not validate the input JSON instance (JSON Schema Draft 4). Errors:

  • The property '#/stages/0' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/1' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/2' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/3' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/4' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/5' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/6' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/7' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "DefaultFungicideDayRisks_2225": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "globalRiskLevel": {
          "type": "integer"
        },
        "globalRiskLevelLabel": {
          "type": "string"
        },
        "globalRiskPictureURL": {
          "type": "string"
        },
        "organs": {
          "items": {
            "$ref": "#/definitions/DefaultFungicideOrgan_2222",
            "type": "object"
          },
          "type": "array"
        },
        "targets": {
          "items": {
            "$ref": "#/definitions/FungicideDetailTarget_2224",
            "type": "object"
          },
          "type": "array"
        }
      },
      "required": [
        "globalRiskLevelLabel",
        "targets"
      ],
      "title": "FungicideDayRisks - DefaultFungicideDayRisks",
      "type": "object"
    },
    "DefaultFungicideOrgan_2222": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "organId": {
          "type": "integer"
        },
        "organLabel": {
          "type": "string"
        },
        "organRiskLevel": {
          "type": "integer"
        },
        "organRiskLevelLabel": {
          "type": "string"
        }
      },
      "required": [
        "organId",
        "organLabel",
        "organRiskLevel",
        "organRiskLevelLabel"
      ],
      "title": "FungicideOrgan - DefaultFungicideOrgan",
      "type": "object"
    },
    "DefaultFungicideStage_2221": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "observationId": {
          "description": "Obligatoire si stageType == 1",
          "type": "integer"
        },
        "position": {
          "type": "integer"
        },
        "stageDate": {
          "type": "string"
        },
        "stageDescription": {
          "type": "string"
        },
        "stageId": {
          "type": "integer"
        },
        "stageLabel": {
          "type": "string"
        },
        "stagePictureURL": {
          "type": "string"
        },
        "stageType": {
          "type": "integer"
        }
      },
      "required": [
        "observationId",
        "position",
        "stageDate",
        "stageDescription",
        "stageId",
        "stageLabel",
        "stagePictureURL",
        "stageType"
      ],
      "title": "FungicideStage - DefaultFungicideStage",
      "type": "object"
    },
    "DefaultFungicideWorkOperation_2227": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "operationDate": {
          "type": "string"
        },
        "operationId": {
          "type": "integer"
        },
        "operationsProducts": {
          "items": {
            "$ref": "#/definitions/FungicideOperationProduct_2226",
            "type": "object"
          },
          "type": "array"
        },
        "workOperationLabel": {
          "type": "string"
        },
        "workOperationType": {
          "type": "integer"
        }
      },
      "required": [
        "operationDate",
        "operationId",
        "operationsProducts",
        "workOperationLabel",
        "workOperationType"
      ],
      "title": "FungicideWorkOperation - DefaultFungicideWorkOperation",
      "type": "object"
    },
    "DefaultLocalization_2210": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "latitude": {
          "type": "number"
        },
        "longitude": {
          "type": "number"
        }
      },
      "required": [
        "latitude",
        "longitude"
      ],
      "title": "Localization - DefaultLocalization",
      "type": "object"
    },
    "FungicideDetailTarget_2224": {
      "additionalProperties": false,
      "properties": {
        "isTargetInTest": {
          "type": "boolean"
        },
        "numberOfDays": {
          "type": "integer"
        },
        "organs": {
          "items": {
            "$ref": "#/definitions/DefaultFungicideOrgan_2222",
            "type": "object"
          },
          "type": "array"
        },
        "plantAlertLevel": {
          "type": "integer"
        },
        "plantAlertLevelLabel": {
          "type": "string"
        },
        "targetDescription": {
          "type": "string"
        },
        "targetId": {
          "type": "integer"
        },
        "targetLabel": {
          "type": "string"
        }
      },
      "required": [
        "isTargetInTest",
        "organs",
        "plantAlertLevel",
        "plantAlertLevelLabel",
        "targetId",
        "targetLabel"
      ],
      "title": "FungicideTarget - FungicideDetailTarget",
      "type": "object"
    },
    "FungicideOperationProduct_2226": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "productId": {
          "type": "integer"
        },
        "productLabel": {
          "type": "string"
        },
        "quantity": {
          "type": "number"
        },
        "unitCode": {
          "type": "string"
        },
        "unitId": {
          "type": "integer"
        }
      },
      "required": [
        "productId",
        "productLabel",
        "quantity",
        "unitCode",
        "unitId"
      ],
      "title": "FungicideProduct - FungicideOperationProduct",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "antePreviousCropId": {
      "type": "integer"
    },
    "antePreviousCropLabel": {
      "type": "string"
    },
    "calculationDate": {
      "description": "Non utilisé",
      "type": "string"
    },
    "cityCode": {
      "type": "string"
    },
    "cityName": {
      "type": "string"
    },
    "countryCode": {
      "description": "Non utilisé",
      "type": "string"
    },
    "cropId": {
      "type": "integer"
    },
    "cropLabel": {
      "type": "string"
    },
    "currentDayRisks": {
      "$ref": "#/definitions/DefaultFungicideDayRisks_2225",
      "type": "object"
    },
    "farmId": {
      "description": "Non utilisé",
      "type": "integer"
    },
    "fieldId": {
      "type": "integer"
    },
    "fieldName": {
      "type": "string"
    },
    "groupId": {
      "type": "integer"
    },
    "groupLabel": {
      "type": "string"
    },
    "localization": {
      "$ref": "#/definitions/DefaultLocalization_2210",
      "type": "object"
    },
    "missingObservations": {
      "type": "integer"
    },
    "nextDaysRisks": {
      "items": {
        "$ref": "#/definitions/DefaultFungicideDayRisks_2225",
        "type": "object"
      },
      "type": "array"
    },
    "ploughed": {
      "type": "string"
    },
    "predictionDate": {
      "type": "string"
    },
    "predictionModelLabel": {
      "description": "Non utilisé",
      "type": "string"
    },
    "previousCropId": {
      "type": "integer"
    },
    "previousCropLabel": {
      "type": "string"
    },
    "soilTextureId": {
      "type": "integer"
    },
    "soilTextureLabel": {
      "type": "string"
    },
    "sowingDate": {
      "type": "string"
    },
    "stages": {
      "items": {
        "$ref": "#/definitions/DefaultFungicideStage_2221",
        "type": "object"
      },
      "type": "array"
    },
    "surface": {
      "type": "number"
    },
    "workOperations": {
      "items": {
        "$ref": "#/definitions/DefaultFungicideWorkOperation_2227",
        "type": "object"
      },
      "type": "array"
    },
    "yieldPotential": {
      "type": "string"
    }
  },
  "required": [
    "antePreviousCropId",
    "antePreviousCropLabel",
    "calculationDate",
    "cityCode",
    "countryCode",
    "cropId",
    "cropLabel",
    "currentDayRisks",
    "farmId",
    "fieldId",
    "fieldName",
    "groupId",
    "groupLabel",
    "localization",
    "missingObservations",
    "nextDaysRisks",
    "ploughed",
    "predictionDate",
    "predictionModelLabel",
    "previousCropId",
    "previousCropLabel",
    "soilTextureId",
    "soilTextureLabel",
    "sowingDate",
    "stages",
    "surface",
    "workOperations",
    "yieldPotential"
  ],
  "title": "FungicideParcel - DefaultFungicideFieldDetail",
  "type": "object"
}

JSON instance

{
  "antePreviousCropId": 559,
  "antePreviousCropLabel": "Pailles",
  "calculationDate": "2021-03-11T11:32:38",
  "cityCode": "CY_FR_37032",
  "cityName": "BOURNAN",
  "countryCode": "FR",
  "cropId": 169,
  "cropLabel": "FILON",
  "currentDayRisks": {
    "globalRiskLevel": 0,
    "globalRiskLevelLabel": "Pas de risque",
    "globalRiskPictureURL": "https://static-cf.farmi.com/plantsimages/3E4C1248996412A3F246B87350AD225E.png",
    "organs": [
      {
        "organId": 2,
        "organLabel": "F1",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 3,
        "organLabel": "F2",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 4,
        "organLabel": "F3",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 5,
        "organLabel": "F4",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 6,
        "organLabel": "F5",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      }
    ],
    "targets": [
      {
        "isTargetInTest": true,
        "organs": [],
        "plantAlertLevel": 0,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "Pas de risque ",
        "targetId": 1,
        "targetLabel": "Piétin-verse"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          }
        ],
        "plantAlertLevel": 0,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période d'intervention ",
        "targetId": 2,
        "targetLabel": "Septoriose"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          }
        ],
        "plantAlertLevel": 0,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période d'intervention ",
        "targetId": 3,
        "targetLabel": "Rouille brune"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          }
        ],
        "plantAlertLevel": 0,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "Pas de risque",
        "targetId": 4,
        "targetLabel": "Rouille jaune"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          }
        ],
        "plantAlertLevel": 0,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "Période pertinente non atteinte",
        "targetId": 6,
        "targetLabel": "Oïdium"
      },
      {
        "isTargetInTest": true,
        "organs": [],
        "plantAlertLevel": 3,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période d'intervention ",
        "targetId": 7,
        "targetLabel": "Fusariose"
      }
    ]
  },
  "farmId": 174,
  "fieldId": 1536,
  "fieldName": "La Grande",
  "groupId": 2,
  "groupLabel": "Blé tendre",
  "localization": {
    "latitude": 47.07422,
    "longitude": 0.10295
  },
  "missingObservations": 1,
  "nextDaysRisks": [
    {
      "globalRiskLevel": 0,
      "globalRiskLevelLabel": "Pas de risque",
      "globalRiskPictureURL": "https://static-cf.farmi.com/plantsimages/3E4C1248996412A3F246B87350AD225E.png",
      "organs": [
        {
          "organId": 2,
          "organLabel": "F1",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        },
        {
          "organId": 3,
          "organLabel": "F2",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        },
        {
          "organId": 4,
          "organLabel": "F3",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        },
        {
          "organId": 5,
          "organLabel": "F4",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        },
        {
          "organId": 6,
          "organLabel": "F5",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        }
      ],
      "targets": [
        {
          "isTargetInTest": true,
          "organs": [],
          "plantAlertLevel": 0,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "Pas de risque ",
          "targetId": 1,
          "targetLabel": "Piétin-verse"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            }
          ],
          "plantAlertLevel": 0,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période d'intervention ",
          "targetId": 2,
          "targetLabel": "Septoriose"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            }
          ],
          "plantAlertLevel": 0,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période d'intervention ",
          "targetId": 3,
          "targetLabel": "Rouille brune"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            }
          ],
          "plantAlertLevel": 0,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "Pas de risque",
          "targetId": 4,
          "targetLabel": "Rouille jaune"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            }
          ],
          "plantAlertLevel": 0,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "Période pertinente non atteinte",
          "targetId": 6,
          "targetLabel": "Oïdium"
        },
        {
          "isTargetInTest": true,
          "organs": [],
          "plantAlertLevel": 3,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période d'intervention ",
          "targetId": 7,
          "targetLabel": "Fusariose"
        }
      ]
    }
  ],
  "ploughed": "Labour",
  "predictionDate": "2021-03-11T00:00:00",
  "predictionModelLabel": "Simulation agroclimatique",
  "previousCropId": 542,
  "previousCropLabel": "Colza",
  "soilTextureId": 10,
  "soilTextureLabel": "Argile calcaire",
  "sowingDate": "2020-11-06T00:00:00",
  "stages": [
    {
      "position": 1,
      "stageDate": "2021-03-11T00:00:00",
      "stageDescription": "Les plantes se redressent : c'est la fin du tallage herbacé et la tige principale commence à s'allonger. La distance entre le sommet de l'épi et le plateau de tallage est en moyenne d'1cm.\n  Pour l'observer :\n   - Isoler le maitre-brin de chaque plante arrachée et éliminer les talles.\n  - Couper les racines à la base de la tige.\n  - Fendre la base de la tige avec une lame de couteau dans le sens de la longueur\n  - Mesurer la distance entre le sommet de l'épi et la base du plateau de tallage",
      "stageId": 2285,
      "stageLabel": "Épi 1 cm, début montaison",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH30_EPI1CM.jpg",
      "stageType": 0
    },
    {
      "position": 2,
      "stageDate": "2021-03-25T00:00:00",
      "stageDescription": "Il faut l'observer 10 à 15 jours après le stade épi 1cm. Le premier nœud est situé le plus près de la base de la tige.\n  La hauteur entre le sommet de l'épi et le plateau de tallage varie entre 3 à 5 cm.",
      "stageId": 2286,
      "stageLabel": "1er nœud formé",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH31_1NOEUD.jpg",
      "stageType": 0
    },
    {
      "position": 3,
      "stageDate": "2021-04-03T00:00:00",
      "stageDescription": "Les deux premiers nœuds sont bien visibles à la base de la tige quand on atteint 2 nœuds.\n  La hauteur entre le sommet de l'épi et le plateau de tallage varie entre 6 à 12 cm.",
      "stageId": 2287,
      "stageLabel": "2ème nœud formé",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH32_2NOEUD.jpg",
      "stageType": 0
    },
    {
      "position": 4,
      "stageDate": "2021-04-18T00:00:00",
      "stageDescription": "La dernière feuille est visible mais encore enroulée.  ",
      "stageId": 2292,
      "stageLabel": "Dernière feuille pointante",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH37_DERNIERE_FEUILLE_POINTANTE.jpg",
      "stageType": 0
    },
    {
      "position": 5,
      "stageDate": "2021-04-20T00:00:00",
      "stageDescription": "La ligule de la dernière feuille est entièrement développée. La gaine est gonflée au niveau de l'épi",
      "stageId": 2293,
      "stageLabel": "Dernière feuille étalée",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH39_DERNIERE_FEUILLE_ETALEE.png",
      "stageType": 0
    },
    {
      "position": 6,
      "stageDate": "2021-05-10T00:00:00",
      "stageDescription": "L'épiaison est le stade phénologique qui correspond à l'apparition de l'épi hors de la gaine de la dernière feuille.\n  Le stade mi-épaison correspond à 50 % de l'inflorescence sortie et la gaine est éclatée.",
      "stageId": 2303,
      "stageLabel": "Mi épiaison",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH55_MI_EPIAISON.png",
      "stageType": 0
    },
    {
      "position": 7,
      "stageDate": "2021-05-19T00:00:00",
      "stageDescription": "La floraison se caractérise par l'apparition des étamines hors des épillets.\n C'est la fin de la montaison, la croissance des tiges est terminée.\n L'appréciaiton précise du stade est délicate en raison de la présence des étamines sur les épi longtemps après la floraision.",
      "stageId": 2329,
      "stageLabel": "Floraison",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH60_FLORAISON.png",
      "stageType": 0
    },
    {
      "position": 8,
      "stageDate": "2021-06-30T00:00:00",
      "stageDescription": "",
      "stageId": 2324,
      "stageLabel": "Maturité complète",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH89_MATURITECOMPLETE.png",
      "stageType": 0
    }
  ],
  "surface": 5.08,
  "workOperations": [],
  "yieldPotential": "de 70 à 80 q/ha"
}

Validation #1059

Failure

The input JSON schema does not validate the input JSON instance (JSON Schema Draft 4). Errors:

  • The property '#/stages/0' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/1' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/2' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/3' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/4' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/5' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/6' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/7' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "DefaultFungicideDayRisks_2225": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "globalRiskLevel": {
          "type": "integer"
        },
        "globalRiskLevelLabel": {
          "type": "string"
        },
        "globalRiskPictureURL": {
          "type": "string"
        },
        "organs": {
          "items": {
            "$ref": "#/definitions/DefaultFungicideOrgan_2222",
            "type": "object"
          },
          "type": "array"
        },
        "targets": {
          "items": {
            "$ref": "#/definitions/FungicideDetailTarget_2224",
            "type": "object"
          },
          "type": "array"
        }
      },
      "required": [
        "globalRiskLevelLabel",
        "targets"
      ],
      "title": "FungicideDayRisks - DefaultFungicideDayRisks",
      "type": "object"
    },
    "DefaultFungicideOrgan_2222": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "organId": {
          "type": "integer"
        },
        "organLabel": {
          "type": "string"
        },
        "organRiskLevel": {
          "type": "integer"
        },
        "organRiskLevelLabel": {
          "type": "string"
        }
      },
      "required": [
        "organId",
        "organLabel",
        "organRiskLevel",
        "organRiskLevelLabel"
      ],
      "title": "FungicideOrgan - DefaultFungicideOrgan",
      "type": "object"
    },
    "DefaultFungicideStage_2221": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "observationId": {
          "description": "Obligatoire si stageType == 1",
          "type": "integer"
        },
        "position": {
          "type": "integer"
        },
        "stageDate": {
          "type": "string"
        },
        "stageDescription": {
          "type": "string"
        },
        "stageId": {
          "type": "integer"
        },
        "stageLabel": {
          "type": "string"
        },
        "stagePictureURL": {
          "type": "string"
        },
        "stageType": {
          "type": "integer"
        }
      },
      "required": [
        "observationId",
        "position",
        "stageDate",
        "stageDescription",
        "stageId",
        "stageLabel",
        "stagePictureURL",
        "stageType"
      ],
      "title": "FungicideStage - DefaultFungicideStage",
      "type": "object"
    },
    "DefaultFungicideWorkOperation_2227": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "operationDate": {
          "type": "string"
        },
        "operationId": {
          "type": "integer"
        },
        "operationsProducts": {
          "items": {
            "$ref": "#/definitions/FungicideOperationProduct_2226",
            "type": "object"
          },
          "type": "array"
        },
        "workOperationLabel": {
          "type": "string"
        },
        "workOperationType": {
          "type": "integer"
        }
      },
      "required": [
        "operationDate",
        "operationId",
        "operationsProducts",
        "workOperationLabel",
        "workOperationType"
      ],
      "title": "FungicideWorkOperation - DefaultFungicideWorkOperation",
      "type": "object"
    },
    "DefaultLocalization_2210": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "latitude": {
          "type": "number"
        },
        "longitude": {
          "type": "number"
        }
      },
      "required": [
        "latitude",
        "longitude"
      ],
      "title": "Localization - DefaultLocalization",
      "type": "object"
    },
    "FungicideDetailTarget_2224": {
      "additionalProperties": false,
      "properties": {
        "isTargetInTest": {
          "type": "boolean"
        },
        "numberOfDays": {
          "type": "integer"
        },
        "organs": {
          "items": {
            "$ref": "#/definitions/DefaultFungicideOrgan_2222",
            "type": "object"
          },
          "type": "array"
        },
        "plantAlertLevel": {
          "type": "integer"
        },
        "plantAlertLevelLabel": {
          "type": "string"
        },
        "targetDescription": {
          "type": "string"
        },
        "targetId": {
          "type": "integer"
        },
        "targetLabel": {
          "type": "string"
        }
      },
      "required": [
        "isTargetInTest",
        "organs",
        "plantAlertLevel",
        "plantAlertLevelLabel",
        "targetId",
        "targetLabel"
      ],
      "title": "FungicideTarget - FungicideDetailTarget",
      "type": "object"
    },
    "FungicideOperationProduct_2226": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "productId": {
          "type": "integer"
        },
        "productLabel": {
          "type": "string"
        },
        "quantity": {
          "type": "number"
        },
        "unitCode": {
          "type": "string"
        },
        "unitId": {
          "type": "integer"
        }
      },
      "required": [
        "productId",
        "productLabel",
        "quantity",
        "unitCode",
        "unitId"
      ],
      "title": "FungicideProduct - FungicideOperationProduct",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "antePreviousCropId": {
      "type": "integer"
    },
    "antePreviousCropLabel": {
      "type": "string"
    },
    "calculationDate": {
      "description": "Non utilisé",
      "type": "string"
    },
    "cityCode": {
      "type": "string"
    },
    "cityName": {
      "type": "string"
    },
    "countryCode": {
      "description": "Non utilisé",
      "type": "string"
    },
    "cropId": {
      "type": "integer"
    },
    "cropLabel": {
      "type": "string"
    },
    "currentDayRisks": {
      "$ref": "#/definitions/DefaultFungicideDayRisks_2225",
      "type": "object"
    },
    "farmId": {
      "description": "Non utilisé",
      "type": "integer"
    },
    "fieldId": {
      "type": "integer"
    },
    "fieldName": {
      "type": "string"
    },
    "groupId": {
      "type": "integer"
    },
    "groupLabel": {
      "type": "string"
    },
    "localization": {
      "$ref": "#/definitions/DefaultLocalization_2210",
      "type": "object"
    },
    "missingObservations": {
      "type": "integer"
    },
    "nextDaysRisks": {
      "items": {
        "$ref": "#/definitions/DefaultFungicideDayRisks_2225",
        "type": "object"
      },
      "type": "array"
    },
    "ploughed": {
      "type": "string"
    },
    "predictionDate": {
      "type": "string"
    },
    "predictionModelLabel": {
      "description": "Non utilisé",
      "type": "string"
    },
    "previousCropId": {
      "type": "integer"
    },
    "previousCropLabel": {
      "type": "string"
    },
    "soilTextureId": {
      "type": "integer"
    },
    "soilTextureLabel": {
      "type": "string"
    },
    "sowingDate": {
      "type": "string"
    },
    "stages": {
      "items": {
        "$ref": "#/definitions/DefaultFungicideStage_2221",
        "type": "object"
      },
      "type": "array"
    },
    "surface": {
      "type": "number"
    },
    "workOperations": {
      "items": {
        "$ref": "#/definitions/DefaultFungicideWorkOperation_2227",
        "type": "object"
      },
      "type": "array"
    },
    "yieldPotential": {
      "type": "string"
    }
  },
  "required": [
    "antePreviousCropId",
    "antePreviousCropLabel",
    "calculationDate",
    "cityCode",
    "countryCode",
    "cropId",
    "cropLabel",
    "currentDayRisks",
    "farmId",
    "fieldId",
    "fieldName",
    "groupId",
    "groupLabel",
    "localization",
    "missingObservations",
    "nextDaysRisks",
    "ploughed",
    "predictionDate",
    "predictionModelLabel",
    "previousCropId",
    "previousCropLabel",
    "soilTextureId",
    "soilTextureLabel",
    "sowingDate",
    "stages",
    "surface",
    "workOperations",
    "yieldPotential"
  ],
  "title": "FungicideParcel - DefaultFungicideFieldDetail",
  "type": "object"
}

JSON instance

{
  "antePreviousCropId": 559,
  "antePreviousCropLabel": "Pailles",
  "calculationDate": "2021-03-11T11:32:38",
  "cityCode": "CY_FR_37032",
  "cityName": "BOURNAN",
  "countryCode": "FR",
  "cropId": 169,
  "cropLabel": "FILON",
  "currentDayRisks": {
    "globalRiskLevel": 0,
    "globalRiskLevelLabel": "Pas de risque",
    "globalRiskPictureURL": "https://static-cf.farmi.com/plantsimages/3E4C1248996412A3F246B87350AD225E.png",
    "organs": [
      {
        "organId": 2,
        "organLabel": "F1",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 3,
        "organLabel": "F2",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 4,
        "organLabel": "F3",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 5,
        "organLabel": "F4",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 6,
        "organLabel": "F5",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      }
    ],
    "targets": [
      {
        "isTargetInTest": true,
        "organs": [],
        "plantAlertLevel": 0,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "Pas de risque ",
        "targetId": 1,
        "targetLabel": "Piétin-verse"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          }
        ],
        "plantAlertLevel": 0,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période d'intervention ",
        "targetId": 2,
        "targetLabel": "Septoriose"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          }
        ],
        "plantAlertLevel": 0,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période d'intervention ",
        "targetId": 3,
        "targetLabel": "Rouille brune"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          }
        ],
        "plantAlertLevel": 0,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "Pas de risque",
        "targetId": 4,
        "targetLabel": "Rouille jaune"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          }
        ],
        "plantAlertLevel": 0,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "Période pertinente non atteinte",
        "targetId": 6,
        "targetLabel": "Oïdium"
      },
      {
        "isTargetInTest": true,
        "organs": [],
        "plantAlertLevel": 3,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période d'intervention ",
        "targetId": 7,
        "targetLabel": "Fusariose"
      }
    ]
  },
  "farmId": 174,
  "fieldId": 1536,
  "fieldName": "La Grande",
  "groupId": 2,
  "groupLabel": "Blé tendre",
  "localization": {
    "latitude": 47.07422,
    "longitude": 0.10295
  },
  "missingObservations": 1,
  "nextDaysRisks": [
    {
      "globalRiskLevel": 0,
      "globalRiskLevelLabel": "Pas de risque",
      "globalRiskPictureURL": "https://static-cf.farmi.com/plantsimages/3E4C1248996412A3F246B87350AD225E.png",
      "organs": [
        {
          "organId": 2,
          "organLabel": "F1",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        },
        {
          "organId": 3,
          "organLabel": "F2",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        },
        {
          "organId": 4,
          "organLabel": "F3",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        },
        {
          "organId": 5,
          "organLabel": "F4",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        },
        {
          "organId": 6,
          "organLabel": "F5",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        }
      ],
      "targets": [
        {
          "isTargetInTest": true,
          "organs": [],
          "plantAlertLevel": 0,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "Pas de risque ",
          "targetId": 1,
          "targetLabel": "Piétin-verse"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            }
          ],
          "plantAlertLevel": 0,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période d'intervention ",
          "targetId": 2,
          "targetLabel": "Septoriose"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            }
          ],
          "plantAlertLevel": 0,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période d'intervention ",
          "targetId": 3,
          "targetLabel": "Rouille brune"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            }
          ],
          "plantAlertLevel": 0,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "Pas de risque",
          "targetId": 4,
          "targetLabel": "Rouille jaune"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            }
          ],
          "plantAlertLevel": 0,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "Période pertinente non atteinte",
          "targetId": 6,
          "targetLabel": "Oïdium"
        },
        {
          "isTargetInTest": true,
          "organs": [],
          "plantAlertLevel": 3,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période d'intervention ",
          "targetId": 7,
          "targetLabel": "Fusariose"
        }
      ]
    }
  ],
  "ploughed": "Labour",
  "predictionDate": "2021-03-11T00:00:00",
  "predictionModelLabel": "Simulation agroclimatique",
  "previousCropId": 542,
  "previousCropLabel": "Colza",
  "soilTextureId": 10,
  "soilTextureLabel": "Argile calcaire",
  "sowingDate": "2020-11-06T00:00:00",
  "stages": [
    {
      "position": 1,
      "stageDate": "2021-03-11T00:00:00",
      "stageDescription": "Les plantes se redressent : c'est la fin du tallage herbacé et la tige principale commence à s'allonger. La distance entre le sommet de l'épi et le plateau de tallage est en moyenne d'1cm.\n  Pour l'observer :\n   - Isoler le maitre-brin de chaque plante arrachée et éliminer les talles.\n  - Couper les racines à la base de la tige.\n  - Fendre la base de la tige avec une lame de couteau dans le sens de la longueur\n  - Mesurer la distance entre le sommet de l'épi et la base du plateau de tallage",
      "stageId": 2285,
      "stageLabel": "Épi 1 cm, début montaison",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH30_EPI1CM.jpg",
      "stageType": 0
    },
    {
      "position": 2,
      "stageDate": "2021-03-25T00:00:00",
      "stageDescription": "Il faut l'observer 10 à 15 jours après le stade épi 1cm. Le premier nœud est situé le plus près de la base de la tige.\n  La hauteur entre le sommet de l'épi et le plateau de tallage varie entre 3 à 5 cm.",
      "stageId": 2286,
      "stageLabel": "1er nœud formé",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH31_1NOEUD.jpg",
      "stageType": 0
    },
    {
      "position": 3,
      "stageDate": "2021-04-03T00:00:00",
      "stageDescription": "Les deux premiers nœuds sont bien visibles à la base de la tige quand on atteint 2 nœuds.\n  La hauteur entre le sommet de l'épi et le plateau de tallage varie entre 6 à 12 cm.",
      "stageId": 2287,
      "stageLabel": "2ème nœud formé",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH32_2NOEUD.jpg",
      "stageType": 0
    },
    {
      "position": 4,
      "stageDate": "2021-04-18T00:00:00",
      "stageDescription": "La dernière feuille est visible mais encore enroulée.  ",
      "stageId": 2292,
      "stageLabel": "Dernière feuille pointante",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH37_DERNIERE_FEUILLE_POINTANTE.jpg",
      "stageType": 0
    },
    {
      "position": 5,
      "stageDate": "2021-04-20T00:00:00",
      "stageDescription": "La ligule de la dernière feuille est entièrement développée. La gaine est gonflée au niveau de l'épi",
      "stageId": 2293,
      "stageLabel": "Dernière feuille étalée",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH39_DERNIERE_FEUILLE_ETALEE.png",
      "stageType": 0
    },
    {
      "position": 6,
      "stageDate": "2021-05-10T00:00:00",
      "stageDescription": "L'épiaison est le stade phénologique qui correspond à l'apparition de l'épi hors de la gaine de la dernière feuille.\n  Le stade mi-épaison correspond à 50 % de l'inflorescence sortie et la gaine est éclatée.",
      "stageId": 2303,
      "stageLabel": "Mi épiaison",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH55_MI_EPIAISON.png",
      "stageType": 0
    },
    {
      "position": 7,
      "stageDate": "2021-05-19T00:00:00",
      "stageDescription": "La floraison se caractérise par l'apparition des étamines hors des épillets.\n C'est la fin de la montaison, la croissance des tiges est terminée.\n L'appréciaiton précise du stade est délicate en raison de la présence des étamines sur les épi longtemps après la floraision.",
      "stageId": 2329,
      "stageLabel": "Floraison",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH60_FLORAISON.png",
      "stageType": 0
    },
    {
      "position": 8,
      "stageDate": "2021-06-30T00:00:00",
      "stageDescription": "",
      "stageId": 2324,
      "stageLabel": "Maturité complète",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH89_MATURITECOMPLETE.png",
      "stageType": 0
    }
  ],
  "surface": 5.08,
  "workOperations": [],
  "yieldPotential": "de 70 à 80 q/ha"
}

Validation #1058

Failure

The input JSON schema does not validate the input JSON instance (JSON Schema Draft 4). Errors:

  • The property '#/stages/0' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/1' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/2' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/3' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/4' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/5' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/6' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/7' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "DefaultFungicideDayRisks_2225": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "globalRiskLevel": {
          "type": "integer"
        },
        "globalRiskLevelLabel": {
          "type": "string"
        },
        "globalRiskPictureURL": {
          "type": "string"
        },
        "organs": {
          "items": {
            "$ref": "#/definitions/DefaultFungicideOrgan_2222",
            "type": "object"
          },
          "type": "array"
        },
        "targets": {
          "items": {
            "$ref": "#/definitions/FungicideDetailTarget_2224",
            "type": "object"
          },
          "type": "array"
        }
      },
      "required": [
        "globalRiskLevelLabel",
        "targets"
      ],
      "title": "FungicideDayRisks - DefaultFungicideDayRisks",
      "type": "object"
    },
    "DefaultFungicideOrgan_2222": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "organId": {
          "type": "integer"
        },
        "organLabel": {
          "type": "string"
        },
        "organRiskLevel": {
          "type": "integer"
        },
        "organRiskLevelLabel": {
          "type": "string"
        }
      },
      "required": [
        "organId",
        "organLabel",
        "organRiskLevel",
        "organRiskLevelLabel"
      ],
      "title": "FungicideOrgan - DefaultFungicideOrgan",
      "type": "object"
    },
    "DefaultFungicideStage_2221": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "observationId": {
          "description": "Obligatoire si stageType == 1",
          "type": "integer"
        },
        "position": {
          "type": "integer"
        },
        "stageDate": {
          "type": "string"
        },
        "stageDescription": {
          "type": "string"
        },
        "stageId": {
          "type": "integer"
        },
        "stageLabel": {
          "type": "string"
        },
        "stagePictureURL": {
          "type": "string"
        },
        "stageType": {
          "type": "integer"
        }
      },
      "required": [
        "observationId",
        "position",
        "stageDate",
        "stageDescription",
        "stageId",
        "stageLabel",
        "stagePictureURL",
        "stageType"
      ],
      "title": "FungicideStage - DefaultFungicideStage",
      "type": "object"
    },
    "DefaultFungicideWorkOperation_2227": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "operationDate": {
          "type": "string"
        },
        "operationId": {
          "type": "integer"
        },
        "operationsProducts": {
          "items": {
            "$ref": "#/definitions/FungicideOperationProduct_2226",
            "type": "object"
          },
          "type": "array"
        },
        "workOperationLabel": {
          "type": "string"
        },
        "workOperationType": {
          "type": "integer"
        }
      },
      "required": [
        "operationDate",
        "operationId",
        "operationsProducts",
        "workOperationLabel",
        "workOperationType"
      ],
      "title": "FungicideWorkOperation - DefaultFungicideWorkOperation",
      "type": "object"
    },
    "DefaultLocalization_2210": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "latitude": {
          "type": "number"
        },
        "longitude": {
          "type": "number"
        }
      },
      "required": [
        "latitude",
        "longitude"
      ],
      "title": "Localization - DefaultLocalization",
      "type": "object"
    },
    "FungicideDetailTarget_2224": {
      "additionalProperties": false,
      "properties": {
        "isTargetInTest": {
          "type": "boolean"
        },
        "numberOfDays": {
          "type": "integer"
        },
        "organs": {
          "items": {
            "$ref": "#/definitions/DefaultFungicideOrgan_2222",
            "type": "object"
          },
          "type": "array"
        },
        "plantAlertLevel": {
          "type": "integer"
        },
        "plantAlertLevelLabel": {
          "type": "string"
        },
        "targetDescription": {
          "type": "string"
        },
        "targetId": {
          "type": "integer"
        },
        "targetLabel": {
          "type": "string"
        }
      },
      "required": [
        "isTargetInTest",
        "organs",
        "plantAlertLevel",
        "plantAlertLevelLabel",
        "targetId",
        "targetLabel"
      ],
      "title": "FungicideTarget - FungicideDetailTarget",
      "type": "object"
    },
    "FungicideOperationProduct_2226": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "productId": {
          "type": "integer"
        },
        "productLabel": {
          "type": "string"
        },
        "quantity": {
          "type": "number"
        },
        "unitCode": {
          "type": "string"
        },
        "unitId": {
          "type": "integer"
        }
      },
      "required": [
        "productId",
        "productLabel",
        "quantity",
        "unitCode",
        "unitId"
      ],
      "title": "FungicideProduct - FungicideOperationProduct",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "antePreviousCropId": {
      "type": "integer"
    },
    "antePreviousCropLabel": {
      "type": "string"
    },
    "calculationDate": {
      "description": "Non utilisé",
      "type": "string"
    },
    "cityCode": {
      "type": "string"
    },
    "cityName": {
      "type": "string"
    },
    "countryCode": {
      "description": "Non utilisé",
      "type": "string"
    },
    "cropId": {
      "type": "integer"
    },
    "cropLabel": {
      "type": "string"
    },
    "currentDayRisks": {
      "$ref": "#/definitions/DefaultFungicideDayRisks_2225",
      "type": "object"
    },
    "farmId": {
      "description": "Non utilisé",
      "type": "integer"
    },
    "fieldId": {
      "type": "integer"
    },
    "fieldName": {
      "type": "string"
    },
    "groupId": {
      "type": "integer"
    },
    "groupLabel": {
      "type": "string"
    },
    "localization": {
      "$ref": "#/definitions/DefaultLocalization_2210",
      "type": "object"
    },
    "missingObservations": {
      "type": "integer"
    },
    "nextDaysRisks": {
      "items": {
        "$ref": "#/definitions/DefaultFungicideDayRisks_2225",
        "type": "object"
      },
      "type": "array"
    },
    "ploughed": {
      "type": "string"
    },
    "predictionDate": {
      "type": "string"
    },
    "predictionModelLabel": {
      "description": "Non utilisé",
      "type": "string"
    },
    "previousCropId": {
      "type": "integer"
    },
    "previousCropLabel": {
      "type": "string"
    },
    "soilTextureId": {
      "type": "integer"
    },
    "soilTextureLabel": {
      "type": "string"
    },
    "sowingDate": {
      "type": "string"
    },
    "stages": {
      "items": {
        "$ref": "#/definitions/DefaultFungicideStage_2221",
        "type": "object"
      },
      "type": "array"
    },
    "surface": {
      "type": "number"
    },
    "workOperations": {
      "items": {
        "$ref": "#/definitions/DefaultFungicideWorkOperation_2227",
        "type": "object"
      },
      "type": "array"
    },
    "yieldPotential": {
      "type": "string"
    }
  },
  "required": [
    "antePreviousCropId",
    "antePreviousCropLabel",
    "calculationDate",
    "cityCode",
    "countryCode",
    "cropId",
    "cropLabel",
    "currentDayRisks",
    "farmId",
    "fieldId",
    "fieldName",
    "groupId",
    "groupLabel",
    "localization",
    "missingObservations",
    "nextDaysRisks",
    "ploughed",
    "predictionDate",
    "predictionModelLabel",
    "previousCropId",
    "previousCropLabel",
    "soilTextureId",
    "soilTextureLabel",
    "sowingDate",
    "stages",
    "surface",
    "workOperations",
    "yieldPotential"
  ],
  "title": "FungicideParcel - DefaultFungicideFieldDetail",
  "type": "object"
}

JSON instance

{
  "antePreviousCropId": 559,
  "antePreviousCropLabel": "Pailles",
  "calculationDate": "2021-03-11T11:32:38",
  "cityCode": "CY_FR_37032",
  "cityName": "BOURNAN",
  "countryCode": "FR",
  "cropId": 169,
  "cropLabel": "FILON",
  "currentDayRisks": {
    "globalRiskLevel": 0,
    "globalRiskLevelLabel": "Pas de risque",
    "globalRiskPictureURL": "https://static-cf.farmi.com/plantsimages/3E4C1248996412A3F246B87350AD225E.png",
    "organs": [
      {
        "organId": 2,
        "organLabel": "F1",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 3,
        "organLabel": "F2",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 4,
        "organLabel": "F3",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 5,
        "organLabel": "F4",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 6,
        "organLabel": "F5",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      }
    ],
    "targets": [
      {
        "isTargetInTest": true,
        "organs": [],
        "plantAlertLevel": 0,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "Pas de risque ",
        "targetId": 1,
        "targetLabel": "Piétin-verse"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          }
        ],
        "plantAlertLevel": 0,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période d'intervention ",
        "targetId": 2,
        "targetLabel": "Septoriose"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          }
        ],
        "plantAlertLevel": 0,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période d'intervention ",
        "targetId": 3,
        "targetLabel": "Rouille brune"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          }
        ],
        "plantAlertLevel": 0,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "Pas de risque",
        "targetId": 4,
        "targetLabel": "Rouille jaune"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          }
        ],
        "plantAlertLevel": 0,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "Période pertinente non atteinte",
        "targetId": 6,
        "targetLabel": "Oïdium"
      },
      {
        "isTargetInTest": true,
        "organs": [],
        "plantAlertLevel": 3,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période d'intervention ",
        "targetId": 7,
        "targetLabel": "Fusariose"
      }
    ]
  },
  "farmId": 174,
  "fieldId": 1536,
  "fieldName": "La Grande",
  "groupId": 2,
  "groupLabel": "Blé tendre",
  "localization": {
    "latitude": 47.07422,
    "longitude": 0.10295
  },
  "missingObservations": 1,
  "nextDaysRisks": [
    {
      "globalRiskLevel": 0,
      "globalRiskLevelLabel": "Pas de risque",
      "globalRiskPictureURL": "https://static-cf.farmi.com/plantsimages/3E4C1248996412A3F246B87350AD225E.png",
      "organs": [
        {
          "organId": 2,
          "organLabel": "F1",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        },
        {
          "organId": 3,
          "organLabel": "F2",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        },
        {
          "organId": 4,
          "organLabel": "F3",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        },
        {
          "organId": 5,
          "organLabel": "F4",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        },
        {
          "organId": 6,
          "organLabel": "F5",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        }
      ],
      "targets": [
        {
          "isTargetInTest": true,
          "organs": [],
          "plantAlertLevel": 0,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "Pas de risque ",
          "targetId": 1,
          "targetLabel": "Piétin-verse"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            }
          ],
          "plantAlertLevel": 0,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période d'intervention ",
          "targetId": 2,
          "targetLabel": "Septoriose"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            }
          ],
          "plantAlertLevel": 0,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période d'intervention ",
          "targetId": 3,
          "targetLabel": "Rouille brune"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            }
          ],
          "plantAlertLevel": 0,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "Pas de risque",
          "targetId": 4,
          "targetLabel": "Rouille jaune"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            }
          ],
          "plantAlertLevel": 0,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "Période pertinente non atteinte",
          "targetId": 6,
          "targetLabel": "Oïdium"
        },
        {
          "isTargetInTest": true,
          "organs": [],
          "plantAlertLevel": 3,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période d'intervention ",
          "targetId": 7,
          "targetLabel": "Fusariose"
        }
      ]
    }
  ],
  "ploughed": "Labour",
  "predictionDate": "2021-03-11T00:00:00",
  "predictionModelLabel": "Simulation agroclimatique",
  "previousCropId": 542,
  "previousCropLabel": "Colza",
  "soilTextureId": 10,
  "soilTextureLabel": "Argile calcaire",
  "sowingDate": "2020-11-06T00:00:00",
  "stages": [
    {
      "position": 1,
      "stageDate": "2021-03-11T00:00:00",
      "stageDescription": "Les plantes se redressent : c'est la fin du tallage herbacé et la tige principale commence à s'allonger. La distance entre le sommet de l'épi et le plateau de tallage est en moyenne d'1cm.\n  Pour l'observer :\n   - Isoler le maitre-brin de chaque plante arrachée et éliminer les talles.\n  - Couper les racines à la base de la tige.\n  - Fendre la base de la tige avec une lame de couteau dans le sens de la longueur\n  - Mesurer la distance entre le sommet de l'épi et la base du plateau de tallage",
      "stageId": 2285,
      "stageLabel": "Épi 1 cm, début montaison",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH30_EPI1CM.jpg",
      "stageType": 0
    },
    {
      "position": 2,
      "stageDate": "2021-03-25T00:00:00",
      "stageDescription": "Il faut l'observer 10 à 15 jours après le stade épi 1cm. Le premier nœud est situé le plus près de la base de la tige.\n  La hauteur entre le sommet de l'épi et le plateau de tallage varie entre 3 à 5 cm.",
      "stageId": 2286,
      "stageLabel": "1er nœud formé",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH31_1NOEUD.jpg",
      "stageType": 0
    },
    {
      "position": 3,
      "stageDate": "2021-04-03T00:00:00",
      "stageDescription": "Les deux premiers nœuds sont bien visibles à la base de la tige quand on atteint 2 nœuds.\n  La hauteur entre le sommet de l'épi et le plateau de tallage varie entre 6 à 12 cm.",
      "stageId": 2287,
      "stageLabel": "2ème nœud formé",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH32_2NOEUD.jpg",
      "stageType": 0
    },
    {
      "position": 4,
      "stageDate": "2021-04-18T00:00:00",
      "stageDescription": "La dernière feuille est visible mais encore enroulée.  ",
      "stageId": 2292,
      "stageLabel": "Dernière feuille pointante",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH37_DERNIERE_FEUILLE_POINTANTE.jpg",
      "stageType": 0
    },
    {
      "position": 5,
      "stageDate": "2021-04-20T00:00:00",
      "stageDescription": "La ligule de la dernière feuille est entièrement développée. La gaine est gonflée au niveau de l'épi",
      "stageId": 2293,
      "stageLabel": "Dernière feuille étalée",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH39_DERNIERE_FEUILLE_ETALEE.png",
      "stageType": 0
    },
    {
      "position": 6,
      "stageDate": "2021-05-10T00:00:00",
      "stageDescription": "L'épiaison est le stade phénologique qui correspond à l'apparition de l'épi hors de la gaine de la dernière feuille.\n  Le stade mi-épaison correspond à 50 % de l'inflorescence sortie et la gaine est éclatée.",
      "stageId": 2303,
      "stageLabel": "Mi épiaison",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH55_MI_EPIAISON.png",
      "stageType": 0
    },
    {
      "position": 7,
      "stageDate": "2021-05-19T00:00:00",
      "stageDescription": "La floraison se caractérise par l'apparition des étamines hors des épillets.\n C'est la fin de la montaison, la croissance des tiges est terminée.\n L'appréciaiton précise du stade est délicate en raison de la présence des étamines sur les épi longtemps après la floraision.",
      "stageId": 2329,
      "stageLabel": "Floraison",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH60_FLORAISON.png",
      "stageType": 0
    },
    {
      "position": 8,
      "stageDate": "2021-06-30T00:00:00",
      "stageDescription": "",
      "stageId": 2324,
      "stageLabel": "Maturité complète",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH89_MATURITECOMPLETE.png",
      "stageType": 0
    }
  ],
  "surface": 5.08,
  "workOperations": [],
  "yieldPotential": "de 70 à 80 q/ha"
}

Validation #1057

Failure

The input JSON schema does not validate the input JSON instance (JSON Schema Draft 4). Errors:

  • The property '#/stages/0' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/1' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/2' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/3' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/4' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/5' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/6' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/7' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "DefaultFungicideDayRisks_2225": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "globalRiskLevel": {
          "type": "integer"
        },
        "globalRiskLevelLabel": {
          "type": "string"
        },
        "globalRiskPictureURL": {
          "type": "string"
        },
        "organs": {
          "items": {
            "$ref": "#/definitions/DefaultFungicideOrgan_2222",
            "type": "object"
          },
          "type": "array"
        },
        "targets": {
          "items": {
            "$ref": "#/definitions/FungicideDetailTarget_2224",
            "type": "object"
          },
          "type": "array"
        }
      },
      "required": [
        "globalRiskLevelLabel",
        "targets"
      ],
      "title": "FungicideDayRisks - DefaultFungicideDayRisks",
      "type": "object"
    },
    "DefaultFungicideOrgan_2222": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "organId": {
          "type": "integer"
        },
        "organLabel": {
          "type": "string"
        },
        "organRiskLevel": {
          "type": "integer"
        },
        "organRiskLevelLabel": {
          "type": "string"
        }
      },
      "required": [
        "organId",
        "organLabel",
        "organRiskLevel",
        "organRiskLevelLabel"
      ],
      "title": "FungicideOrgan - DefaultFungicideOrgan",
      "type": "object"
    },
    "DefaultFungicideStage_2221": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "observationId": {
          "description": "Obligatoire si stageType == 1",
          "type": "integer"
        },
        "position": {
          "type": "integer"
        },
        "stageDate": {
          "type": "string"
        },
        "stageDescription": {
          "type": "string"
        },
        "stageId": {
          "type": "integer"
        },
        "stageLabel": {
          "type": "string"
        },
        "stagePictureURL": {
          "type": "string"
        },
        "stageType": {
          "type": "integer"
        }
      },
      "required": [
        "observationId",
        "position",
        "stageDate",
        "stageDescription",
        "stageId",
        "stageLabel",
        "stagePictureURL",
        "stageType"
      ],
      "title": "FungicideStage - DefaultFungicideStage",
      "type": "object"
    },
    "DefaultFungicideWorkOperation_2227": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "operationDate": {
          "type": "string"
        },
        "operationId": {
          "type": "integer"
        },
        "operationsProducts": {
          "items": {
            "$ref": "#/definitions/FungicideOperationProduct_2226",
            "type": "object"
          },
          "type": "array"
        },
        "workOperationLabel": {
          "type": "string"
        },
        "workOperationType": {
          "type": "integer"
        }
      },
      "required": [
        "operationDate",
        "operationId",
        "operationsProducts",
        "workOperationLabel",
        "workOperationType"
      ],
      "title": "FungicideWorkOperation - DefaultFungicideWorkOperation",
      "type": "object"
    },
    "DefaultLocalization_2210": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "latitude": {
          "type": "number"
        },
        "longitude": {
          "type": "number"
        }
      },
      "required": [
        "latitude",
        "longitude"
      ],
      "title": "Localization - DefaultLocalization",
      "type": "object"
    },
    "FungicideDetailTarget_2224": {
      "additionalProperties": false,
      "properties": {
        "isTargetInTest": {
          "type": "boolean"
        },
        "numberOfDays": {
          "type": "integer"
        },
        "organs": {
          "items": {
            "$ref": "#/definitions/DefaultFungicideOrgan_2222",
            "type": "object"
          },
          "type": "array"
        },
        "plantAlertLevel": {
          "type": "integer"
        },
        "plantAlertLevelLabel": {
          "type": "string"
        },
        "targetDescription": {
          "type": "string"
        },
        "targetId": {
          "type": "integer"
        },
        "targetLabel": {
          "type": "string"
        }
      },
      "required": [
        "isTargetInTest",
        "organs",
        "plantAlertLevel",
        "plantAlertLevelLabel",
        "targetId",
        "targetLabel"
      ],
      "title": "FungicideTarget - FungicideDetailTarget",
      "type": "object"
    },
    "FungicideOperationProduct_2226": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "productId": {
          "type": "integer"
        },
        "productLabel": {
          "type": "string"
        },
        "quantity": {
          "type": "number"
        },
        "unitCode": {
          "type": "string"
        },
        "unitId": {
          "type": "integer"
        }
      },
      "required": [
        "productId",
        "productLabel",
        "quantity",
        "unitCode",
        "unitId"
      ],
      "title": "FungicideProduct - FungicideOperationProduct",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "antePreviousCropId": {
      "type": "integer"
    },
    "antePreviousCropLabel": {
      "type": "string"
    },
    "calculationDate": {
      "description": "Non utilisé",
      "type": "string"
    },
    "cityCode": {
      "type": "string"
    },
    "cityName": {
      "type": "string"
    },
    "countryCode": {
      "description": "Non utilisé",
      "type": "string"
    },
    "cropId": {
      "type": "integer"
    },
    "cropLabel": {
      "type": "string"
    },
    "currentDayRisks": {
      "$ref": "#/definitions/DefaultFungicideDayRisks_2225",
      "type": "object"
    },
    "farmId": {
      "description": "Non utilisé",
      "type": "integer"
    },
    "fieldId": {
      "type": "integer"
    },
    "fieldName": {
      "type": "string"
    },
    "groupId": {
      "type": "integer"
    },
    "groupLabel": {
      "type": "string"
    },
    "localization": {
      "$ref": "#/definitions/DefaultLocalization_2210",
      "type": "object"
    },
    "missingObservations": {
      "type": "integer"
    },
    "nextDaysRisks": {
      "items": {
        "$ref": "#/definitions/DefaultFungicideDayRisks_2225",
        "type": "object"
      },
      "type": "array"
    },
    "ploughed": {
      "type": "string"
    },
    "predictionDate": {
      "type": "string"
    },
    "predictionModelLabel": {
      "description": "Non utilisé",
      "type": "string"
    },
    "previousCropId": {
      "type": "integer"
    },
    "previousCropLabel": {
      "type": "string"
    },
    "soilTextureId": {
      "type": "integer"
    },
    "soilTextureLabel": {
      "type": "string"
    },
    "sowingDate": {
      "type": "string"
    },
    "stages": {
      "items": {
        "$ref": "#/definitions/DefaultFungicideStage_2221",
        "type": "object"
      },
      "type": "array"
    },
    "surface": {
      "type": "number"
    },
    "workOperations": {
      "items": {
        "$ref": "#/definitions/DefaultFungicideWorkOperation_2227",
        "type": "object"
      },
      "type": "array"
    },
    "yieldPotential": {
      "type": "string"
    }
  },
  "required": [
    "antePreviousCropId",
    "antePreviousCropLabel",
    "calculationDate",
    "cityCode",
    "countryCode",
    "cropId",
    "cropLabel",
    "currentDayRisks",
    "farmId",
    "fieldId",
    "fieldName",
    "groupId",
    "groupLabel",
    "localization",
    "missingObservations",
    "nextDaysRisks",
    "ploughed",
    "predictionDate",
    "predictionModelLabel",
    "previousCropId",
    "previousCropLabel",
    "soilTextureId",
    "soilTextureLabel",
    "sowingDate",
    "stages",
    "surface",
    "workOperations",
    "yieldPotential"
  ],
  "title": "FungicideParcel - DefaultFungicideFieldDetail",
  "type": "object"
}

JSON instance

{
  "antePreviousCropId": 559,
  "antePreviousCropLabel": "Pailles",
  "calculationDate": "2021-03-11T11:32:38",
  "cityCode": "CY_FR_37032",
  "cityName": "BOURNAN",
  "countryCode": "FR",
  "cropId": 169,
  "cropLabel": "FILON",
  "currentDayRisks": {
    "globalRiskLevel": 0,
    "globalRiskLevelLabel": "Pas de risque",
    "globalRiskPictureURL": "https://static-cf.farmi.com/plantsimages/3E4C1248996412A3F246B87350AD225E.png",
    "organs": [
      {
        "organId": 2,
        "organLabel": "F1",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 3,
        "organLabel": "F2",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 4,
        "organLabel": "F3",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 5,
        "organLabel": "F4",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 6,
        "organLabel": "F5",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      }
    ],
    "targets": [
      {
        "isTargetInTest": true,
        "organs": [],
        "plantAlertLevel": 0,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "Pas de risque ",
        "targetId": 1,
        "targetLabel": "Piétin-verse"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          }
        ],
        "plantAlertLevel": 0,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période d'intervention ",
        "targetId": 2,
        "targetLabel": "Septoriose"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          }
        ],
        "plantAlertLevel": 0,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période d'intervention ",
        "targetId": 3,
        "targetLabel": "Rouille brune"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          }
        ],
        "plantAlertLevel": 0,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "Pas de risque",
        "targetId": 4,
        "targetLabel": "Rouille jaune"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          }
        ],
        "plantAlertLevel": 0,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "Période pertinente non atteinte",
        "targetId": 6,
        "targetLabel": "Oïdium"
      },
      {
        "isTargetInTest": true,
        "organs": [],
        "plantAlertLevel": 3,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période d'intervention ",
        "targetId": 7,
        "targetLabel": "Fusariose"
      }
    ]
  },
  "farmId": 174,
  "fieldId": 1536,
  "fieldName": "La Grande",
  "groupId": 2,
  "groupLabel": "Blé tendre",
  "localization": {
    "latitude": 47.07422,
    "longitude": 0.10295
  },
  "missingObservations": 1,
  "nextDaysRisks": [
    {
      "globalRiskLevel": 0,
      "globalRiskLevelLabel": "Pas de risque",
      "globalRiskPictureURL": "https://static-cf.farmi.com/plantsimages/3E4C1248996412A3F246B87350AD225E.png",
      "organs": [
        {
          "organId": 2,
          "organLabel": "F1",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        },
        {
          "organId": 3,
          "organLabel": "F2",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        },
        {
          "organId": 4,
          "organLabel": "F3",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        },
        {
          "organId": 5,
          "organLabel": "F4",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        },
        {
          "organId": 6,
          "organLabel": "F5",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        }
      ],
      "targets": [
        {
          "isTargetInTest": true,
          "organs": [],
          "plantAlertLevel": 0,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "Pas de risque ",
          "targetId": 1,
          "targetLabel": "Piétin-verse"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            }
          ],
          "plantAlertLevel": 0,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période d'intervention ",
          "targetId": 2,
          "targetLabel": "Septoriose"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            }
          ],
          "plantAlertLevel": 0,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période d'intervention ",
          "targetId": 3,
          "targetLabel": "Rouille brune"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            }
          ],
          "plantAlertLevel": 0,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "Pas de risque",
          "targetId": 4,
          "targetLabel": "Rouille jaune"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            }
          ],
          "plantAlertLevel": 0,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "Période pertinente non atteinte",
          "targetId": 6,
          "targetLabel": "Oïdium"
        },
        {
          "isTargetInTest": true,
          "organs": [],
          "plantAlertLevel": 3,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période d'intervention ",
          "targetId": 7,
          "targetLabel": "Fusariose"
        }
      ]
    }
  ],
  "ploughed": "Labour",
  "predictionDate": "2021-03-11T00:00:00",
  "predictionModelLabel": "Simulation agroclimatique",
  "previousCropId": 542,
  "previousCropLabel": "Colza",
  "soilTextureId": 10,
  "soilTextureLabel": "Argile calcaire",
  "sowingDate": "2020-11-06T00:00:00",
  "stages": [
    {
      "position": 1,
      "stageDate": "2021-03-11T00:00:00",
      "stageDescription": "Les plantes se redressent : c'est la fin du tallage herbacé et la tige principale commence à s'allonger. La distance entre le sommet de l'épi et le plateau de tallage est en moyenne d'1cm.\n  Pour l'observer :\n   - Isoler le maitre-brin de chaque plante arrachée et éliminer les talles.\n  - Couper les racines à la base de la tige.\n  - Fendre la base de la tige avec une lame de couteau dans le sens de la longueur\n  - Mesurer la distance entre le sommet de l'épi et la base du plateau de tallage",
      "stageId": 2285,
      "stageLabel": "Épi 1 cm, début montaison",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH30_EPI1CM.jpg",
      "stageType": 0
    },
    {
      "position": 2,
      "stageDate": "2021-03-25T00:00:00",
      "stageDescription": "Il faut l'observer 10 à 15 jours après le stade épi 1cm. Le premier nœud est situé le plus près de la base de la tige.\n  La hauteur entre le sommet de l'épi et le plateau de tallage varie entre 3 à 5 cm.",
      "stageId": 2286,
      "stageLabel": "1er nœud formé",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH31_1NOEUD.jpg",
      "stageType": 0
    },
    {
      "position": 3,
      "stageDate": "2021-04-03T00:00:00",
      "stageDescription": "Les deux premiers nœuds sont bien visibles à la base de la tige quand on atteint 2 nœuds.\n  La hauteur entre le sommet de l'épi et le plateau de tallage varie entre 6 à 12 cm.",
      "stageId": 2287,
      "stageLabel": "2ème nœud formé",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH32_2NOEUD.jpg",
      "stageType": 0
    },
    {
      "position": 4,
      "stageDate": "2021-04-18T00:00:00",
      "stageDescription": "La dernière feuille est visible mais encore enroulée.  ",
      "stageId": 2292,
      "stageLabel": "Dernière feuille pointante",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH37_DERNIERE_FEUILLE_POINTANTE.jpg",
      "stageType": 0
    },
    {
      "position": 5,
      "stageDate": "2021-04-20T00:00:00",
      "stageDescription": "La ligule de la dernière feuille est entièrement développée. La gaine est gonflée au niveau de l'épi",
      "stageId": 2293,
      "stageLabel": "Dernière feuille étalée",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH39_DERNIERE_FEUILLE_ETALEE.png",
      "stageType": 0
    },
    {
      "position": 6,
      "stageDate": "2021-05-10T00:00:00",
      "stageDescription": "L'épiaison est le stade phénologique qui correspond à l'apparition de l'épi hors de la gaine de la dernière feuille.\n  Le stade mi-épaison correspond à 50 % de l'inflorescence sortie et la gaine est éclatée.",
      "stageId": 2303,
      "stageLabel": "Mi épiaison",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH55_MI_EPIAISON.png",
      "stageType": 0
    },
    {
      "position": 7,
      "stageDate": "2021-05-19T00:00:00",
      "stageDescription": "La floraison se caractérise par l'apparition des étamines hors des épillets.\n C'est la fin de la montaison, la croissance des tiges est terminée.\n L'appréciaiton précise du stade est délicate en raison de la présence des étamines sur les épi longtemps après la floraision.",
      "stageId": 2329,
      "stageLabel": "Floraison",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH60_FLORAISON.png",
      "stageType": 0
    },
    {
      "position": 8,
      "stageDate": "2021-06-30T00:00:00",
      "stageDescription": "",
      "stageId": 2324,
      "stageLabel": "Maturité complète",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH89_MATURITECOMPLETE.png",
      "stageType": 0
    }
  ],
  "surface": 5.08,
  "workOperations": [],
  "yieldPotential": "de 70 à 80 q/ha"
}

Validation #1056

Failure

The input JSON schema does not validate the input JSON instance (JSON Schema Draft 4). Errors:

  • The property '#/stages/0' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/1' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/2' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/3' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/4' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/5' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/6' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/7' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "DefaultFungicideDayRisks_2225": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "globalRiskLevel": {
          "type": "integer"
        },
        "globalRiskLevelLabel": {
          "type": "string"
        },
        "globalRiskPictureURL": {
          "type": "string"
        },
        "organs": {
          "items": {
            "$ref": "#/definitions/DefaultFungicideOrgan_2222",
            "type": "object"
          },
          "type": "array"
        },
        "targets": {
          "items": {
            "$ref": "#/definitions/FungicideDetailTarget_2224",
            "type": "object"
          },
          "type": "array"
        }
      },
      "required": [
        "globalRiskLevelLabel",
        "targets"
      ],
      "title": "FungicideDayRisks - DefaultFungicideDayRisks",
      "type": "object"
    },
    "DefaultFungicideOrgan_2222": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "organId": {
          "type": "integer"
        },
        "organLabel": {
          "type": "string"
        },
        "organRiskLevel": {
          "type": "integer"
        },
        "organRiskLevelLabel": {
          "type": "string"
        }
      },
      "required": [
        "organId",
        "organLabel",
        "organRiskLevel",
        "organRiskLevelLabel"
      ],
      "title": "FungicideOrgan - DefaultFungicideOrgan",
      "type": "object"
    },
    "DefaultFungicideStage_2221": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "observationId": {
          "description": "Obligatoire si stageType == 1",
          "type": "integer"
        },
        "position": {
          "type": "integer"
        },
        "stageDate": {
          "type": "string"
        },
        "stageDescription": {
          "type": "string"
        },
        "stageId": {
          "type": "integer"
        },
        "stageLabel": {
          "type": "string"
        },
        "stagePictureURL": {
          "type": "string"
        },
        "stageType": {
          "type": "integer"
        }
      },
      "required": [
        "observationId",
        "position",
        "stageDate",
        "stageDescription",
        "stageId",
        "stageLabel",
        "stagePictureURL",
        "stageType"
      ],
      "title": "FungicideStage - DefaultFungicideStage",
      "type": "object"
    },
    "DefaultFungicideWorkOperation_2227": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "operationDate": {
          "type": "string"
        },
        "operationId": {
          "type": "integer"
        },
        "operationsProducts": {
          "items": {
            "$ref": "#/definitions/FungicideOperationProduct_2226",
            "type": "object"
          },
          "type": "array"
        },
        "workOperationLabel": {
          "type": "string"
        },
        "workOperationType": {
          "type": "integer"
        }
      },
      "required": [
        "operationDate",
        "operationId",
        "operationsProducts",
        "workOperationLabel",
        "workOperationType"
      ],
      "title": "FungicideWorkOperation - DefaultFungicideWorkOperation",
      "type": "object"
    },
    "DefaultLocalization_2210": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "latitude": {
          "type": "number"
        },
        "longitude": {
          "type": "number"
        }
      },
      "required": [
        "latitude",
        "longitude"
      ],
      "title": "Localization - DefaultLocalization",
      "type": "object"
    },
    "FungicideDetailTarget_2224": {
      "additionalProperties": false,
      "properties": {
        "isTargetInTest": {
          "type": "boolean"
        },
        "numberOfDays": {
          "type": "integer"
        },
        "organs": {
          "items": {
            "$ref": "#/definitions/DefaultFungicideOrgan_2222",
            "type": "object"
          },
          "type": "array"
        },
        "plantAlertLevel": {
          "type": "integer"
        },
        "plantAlertLevelLabel": {
          "type": "string"
        },
        "targetDescription": {
          "type": "string"
        },
        "targetId": {
          "type": "integer"
        },
        "targetLabel": {
          "type": "string"
        }
      },
      "required": [
        "isTargetInTest",
        "organs",
        "plantAlertLevel",
        "plantAlertLevelLabel",
        "targetId",
        "targetLabel"
      ],
      "title": "FungicideTarget - FungicideDetailTarget",
      "type": "object"
    },
    "FungicideOperationProduct_2226": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "productId": {
          "type": "integer"
        },
        "productLabel": {
          "type": "string"
        },
        "quantity": {
          "type": "number"
        },
        "unitCode": {
          "type": "string"
        },
        "unitId": {
          "type": "integer"
        }
      },
      "required": [
        "productId",
        "productLabel",
        "quantity",
        "unitCode",
        "unitId"
      ],
      "title": "FungicideProduct - FungicideOperationProduct",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "antePreviousCropId": {
      "type": "integer"
    },
    "antePreviousCropLabel": {
      "type": "string"
    },
    "calculationDate": {
      "description": "Non utilisé",
      "type": "string"
    },
    "cityCode": {
      "type": "string"
    },
    "cityName": {
      "type": "string"
    },
    "countryCode": {
      "description": "Non utilisé",
      "type": "string"
    },
    "cropId": {
      "type": "integer"
    },
    "cropLabel": {
      "type": "string"
    },
    "currentDayRisks": {
      "$ref": "#/definitions/DefaultFungicideDayRisks_2225",
      "type": "object"
    },
    "farmId": {
      "description": "Non utilisé",
      "type": "integer"
    },
    "fieldId": {
      "type": "integer"
    },
    "fieldName": {
      "type": "string"
    },
    "groupId": {
      "type": "integer"
    },
    "groupLabel": {
      "type": "string"
    },
    "localization": {
      "$ref": "#/definitions/DefaultLocalization_2210",
      "type": "object"
    },
    "missingObservations": {
      "type": "integer"
    },
    "nextDaysRisks": {
      "items": {
        "$ref": "#/definitions/DefaultFungicideDayRisks_2225",
        "type": "object"
      },
      "type": "array"
    },
    "ploughed": {
      "type": "string"
    },
    "predictionDate": {
      "type": "string"
    },
    "predictionModelLabel": {
      "description": "Non utilisé",
      "type": "string"
    },
    "previousCropId": {
      "type": "integer"
    },
    "previousCropLabel": {
      "type": "string"
    },
    "soilTextureId": {
      "type": "integer"
    },
    "soilTextureLabel": {
      "type": "string"
    },
    "sowingDate": {
      "type": "string"
    },
    "stages": {
      "items": {
        "$ref": "#/definitions/DefaultFungicideStage_2221",
        "type": "object"
      },
      "type": "array"
    },
    "surface": {
      "type": "number"
    },
    "workOperations": {
      "items": {
        "$ref": "#/definitions/DefaultFungicideWorkOperation_2227",
        "type": "object"
      },
      "type": "array"
    },
    "yieldPotential": {
      "type": "string"
    }
  },
  "required": [
    "antePreviousCropId",
    "antePreviousCropLabel",
    "calculationDate",
    "cityCode",
    "countryCode",
    "cropId",
    "cropLabel",
    "currentDayRisks",
    "farmId",
    "fieldId",
    "fieldName",
    "groupId",
    "groupLabel",
    "localization",
    "missingObservations",
    "nextDaysRisks",
    "ploughed",
    "predictionDate",
    "predictionModelLabel",
    "previousCropId",
    "previousCropLabel",
    "soilTextureId",
    "soilTextureLabel",
    "sowingDate",
    "stages",
    "surface",
    "workOperations",
    "yieldPotential"
  ],
  "title": "FungicideParcel - DefaultFungicideFieldDetail",
  "type": "object"
}

JSON instance

{
  "antePreviousCropId": 559,
  "antePreviousCropLabel": "Pailles",
  "calculationDate": "2021-03-11T11:32:48",
  "cityCode": "CY_FR_37032",
  "cityName": "BOURNAN",
  "countryCode": "FR",
  "cropId": 169,
  "cropLabel": "FILON",
  "currentDayRisks": {
    "globalRiskLevel": 3,
    "globalRiskLevelLabel": "En dehors des stades de traitement pour la maladie concernée",
    "globalRiskPictureURL": "https://static-cf.farmi.com/plantsimages/220F93301109896455B377F62E41D779.png",
    "organs": [
      {
        "organId": 2,
        "organLabel": "F1",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 3,
        "organLabel": "F2",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 4,
        "organLabel": "F3",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 5,
        "organLabel": "F4",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 6,
        "organLabel": "F5",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      }
    ],
    "targets": [
      {
        "isTargetInTest": true,
        "organs": [],
        "plantAlertLevel": 3,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période d'intervention ",
        "targetId": 1,
        "targetLabel": "Piétin-verse"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          }
        ],
        "plantAlertLevel": 3,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période d'intervention ",
        "targetId": 2,
        "targetLabel": "Septoriose"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          }
        ],
        "plantAlertLevel": 3,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période d'intervention ",
        "targetId": 3,
        "targetLabel": "Rouille brune"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          }
        ],
        "plantAlertLevel": 3,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période d'intervention ",
        "targetId": 4,
        "targetLabel": "Rouille jaune"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          }
        ],
        "plantAlertLevel": 3,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "Période pertinente non atteinte",
        "targetId": 6,
        "targetLabel": "Oïdium"
      },
      {
        "isTargetInTest": true,
        "organs": [],
        "plantAlertLevel": 3,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période d'intervention ",
        "targetId": 7,
        "targetLabel": "Fusariose"
      }
    ]
  },
  "farmId": 174,
  "fieldId": 1534,
  "fieldName": "Le Château d'eau",
  "groupId": 2,
  "groupLabel": "Blé tendre",
  "localization": {
    "latitude": 47.01351,
    "longitude": 0.18223
  },
  "missingObservations": 1,
  "nextDaysRisks": [
    {
      "globalRiskLevel": 3,
      "globalRiskLevelLabel": "En dehors des stades de traitement pour la maladie concernée",
      "globalRiskPictureURL": "https://static-cf.farmi.com/plantsimages/220F93301109896455B377F62E41D779.png",
      "organs": [
        {
          "organId": 2,
          "organLabel": "F1",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        },
        {
          "organId": 3,
          "organLabel": "F2",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        },
        {
          "organId": 4,
          "organLabel": "F3",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        },
        {
          "organId": 5,
          "organLabel": "F4",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        },
        {
          "organId": 6,
          "organLabel": "F5",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        }
      ],
      "targets": [
        {
          "isTargetInTest": true,
          "organs": [],
          "plantAlertLevel": 3,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période d'intervention ",
          "targetId": 1,
          "targetLabel": "Piétin-verse"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            }
          ],
          "plantAlertLevel": 3,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période d'intervention ",
          "targetId": 2,
          "targetLabel": "Septoriose"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            }
          ],
          "plantAlertLevel": 3,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période d'intervention ",
          "targetId": 3,
          "targetLabel": "Rouille brune"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            }
          ],
          "plantAlertLevel": 3,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période d'intervention ",
          "targetId": 4,
          "targetLabel": "Rouille jaune"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            }
          ],
          "plantAlertLevel": 3,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "Période pertinente non atteinte",
          "targetId": 6,
          "targetLabel": "Oïdium"
        },
        {
          "isTargetInTest": true,
          "organs": [],
          "plantAlertLevel": 3,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période d'intervention ",
          "targetId": 7,
          "targetLabel": "Fusariose"
        }
      ]
    }
  ],
  "ploughed": "Labour",
  "predictionDate": "2021-03-11T00:00:00",
  "predictionModelLabel": "Simulation agroclimatique",
  "previousCropId": 555,
  "previousCropLabel": "Tournesol",
  "soilTextureId": 10,
  "soilTextureLabel": "Argile calcaire",
  "sowingDate": "2020-11-05T00:00:00",
  "stages": [
    {
      "position": 1,
      "stageDate": "2021-03-12T00:00:00",
      "stageDescription": "Les plantes se redressent : c'est la fin du tallage herbacé et la tige principale commence à s'allonger. La distance entre le sommet de l'épi et le plateau de tallage est en moyenne d'1cm.\n  Pour l'observer :\n   - Isoler le maitre-brin de chaque plante arrachée et éliminer les talles.\n  - Couper les racines à la base de la tige.\n  - Fendre la base de la tige avec une lame de couteau dans le sens de la longueur\n  - Mesurer la distance entre le sommet de l'épi et la base du plateau de tallage",
      "stageId": 2285,
      "stageLabel": "Épi 1 cm, début montaison",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH30_EPI1CM.jpg",
      "stageType": 0
    },
    {
      "position": 2,
      "stageDate": "2021-03-26T00:00:00",
      "stageDescription": "Il faut l'observer 10 à 15 jours après le stade épi 1cm. Le premier nœud est situé le plus près de la base de la tige.\n  La hauteur entre le sommet de l'épi et le plateau de tallage varie entre 3 à 5 cm.",
      "stageId": 2286,
      "stageLabel": "1er nœud formé",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH31_1NOEUD.jpg",
      "stageType": 0
    },
    {
      "position": 3,
      "stageDate": "2021-04-04T00:00:00",
      "stageDescription": "Les deux premiers nœuds sont bien visibles à la base de la tige quand on atteint 2 nœuds.\n  La hauteur entre le sommet de l'épi et le plateau de tallage varie entre 6 à 12 cm.",
      "stageId": 2287,
      "stageLabel": "2ème nœud formé",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH32_2NOEUD.jpg",
      "stageType": 0
    },
    {
      "position": 4,
      "stageDate": "2021-04-19T00:00:00",
      "stageDescription": "La dernière feuille est visible mais encore enroulée.  ",
      "stageId": 2292,
      "stageLabel": "Dernière feuille pointante",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH37_DERNIERE_FEUILLE_POINTANTE.jpg",
      "stageType": 0
    },
    {
      "position": 5,
      "stageDate": "2021-04-21T00:00:00",
      "stageDescription": "La ligule de la dernière feuille est entièrement développée. La gaine est gonflée au niveau de l'épi",
      "stageId": 2293,
      "stageLabel": "Dernière feuille étalée",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH39_DERNIERE_FEUILLE_ETALEE.png",
      "stageType": 0
    },
    {
      "position": 6,
      "stageDate": "2021-05-11T00:00:00",
      "stageDescription": "L'épiaison est le stade phénologique qui correspond à l'apparition de l'épi hors de la gaine de la dernière feuille.\n  Le stade mi-épaison correspond à 50 % de l'inflorescence sortie et la gaine est éclatée.",
      "stageId": 2303,
      "stageLabel": "Mi épiaison",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH55_MI_EPIAISON.png",
      "stageType": 0
    },
    {
      "position": 7,
      "stageDate": "2021-05-19T00:00:00",
      "stageDescription": "La floraison se caractérise par l'apparition des étamines hors des épillets.\n C'est la fin de la montaison, la croissance des tiges est terminée.\n L'appréciaiton précise du stade est délicate en raison de la présence des étamines sur les épi longtemps après la floraision.",
      "stageId": 2329,
      "stageLabel": "Floraison",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH60_FLORAISON.png",
      "stageType": 0
    },
    {
      "position": 8,
      "stageDate": "2021-06-30T00:00:00",
      "stageDescription": "",
      "stageId": 2324,
      "stageLabel": "Maturité complète",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH89_MATURITECOMPLETE.png",
      "stageType": 0
    }
  ],
  "surface": 5.69,
  "workOperations": [],
  "yieldPotential": "de 70 à 80 q/ha"
}

Validation #1055

Failure

The input JSON schema does not validate the input JSON instance (JSON Schema Draft 4). Errors:

  • The property '#/stages/0' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/1' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/2' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/3' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/4' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/5' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/6' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#
  • The property '#/stages/7' did not contain a required property of 'observationId' in schema 436f1e7d-052f-5f56-aa0c-eb275417cd2f#

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "DefaultFungicideDayRisks_2225": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "globalRiskLevel": {
          "type": "integer"
        },
        "globalRiskLevelLabel": {
          "type": "string"
        },
        "globalRiskPictureURL": {
          "type": "string"
        },
        "organs": {
          "items": {
            "$ref": "#/definitions/DefaultFungicideOrgan_2222",
            "type": "object"
          },
          "type": "array"
        },
        "targets": {
          "items": {
            "$ref": "#/definitions/FungicideDetailTarget_2224",
            "type": "object"
          },
          "type": "array"
        }
      },
      "required": [
        "globalRiskLevelLabel",
        "targets"
      ],
      "title": "FungicideDayRisks - DefaultFungicideDayRisks",
      "type": "object"
    },
    "DefaultFungicideOrgan_2222": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "organId": {
          "type": "integer"
        },
        "organLabel": {
          "type": "string"
        },
        "organRiskLevel": {
          "type": "integer"
        },
        "organRiskLevelLabel": {
          "type": "string"
        }
      },
      "required": [
        "organId",
        "organLabel",
        "organRiskLevel",
        "organRiskLevelLabel"
      ],
      "title": "FungicideOrgan - DefaultFungicideOrgan",
      "type": "object"
    },
    "DefaultFungicideStage_2221": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "observationId": {
          "description": "Obligatoire si stageType == 1",
          "type": "integer"
        },
        "position": {
          "type": "integer"
        },
        "stageDate": {
          "type": "string"
        },
        "stageDescription": {
          "type": "string"
        },
        "stageId": {
          "type": "integer"
        },
        "stageLabel": {
          "type": "string"
        },
        "stagePictureURL": {
          "type": "string"
        },
        "stageType": {
          "type": "integer"
        }
      },
      "required": [
        "observationId",
        "position",
        "stageDate",
        "stageDescription",
        "stageId",
        "stageLabel",
        "stagePictureURL",
        "stageType"
      ],
      "title": "FungicideStage - DefaultFungicideStage",
      "type": "object"
    },
    "DefaultFungicideWorkOperation_2227": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "operationDate": {
          "type": "string"
        },
        "operationId": {
          "type": "integer"
        },
        "operationsProducts": {
          "items": {
            "$ref": "#/definitions/FungicideOperationProduct_2226",
            "type": "object"
          },
          "type": "array"
        },
        "workOperationLabel": {
          "type": "string"
        },
        "workOperationType": {
          "type": "integer"
        }
      },
      "required": [
        "operationDate",
        "operationId",
        "operationsProducts",
        "workOperationLabel",
        "workOperationType"
      ],
      "title": "FungicideWorkOperation - DefaultFungicideWorkOperation",
      "type": "object"
    },
    "DefaultLocalization_2210": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "latitude": {
          "type": "number"
        },
        "longitude": {
          "type": "number"
        }
      },
      "required": [
        "latitude",
        "longitude"
      ],
      "title": "Localization - DefaultLocalization",
      "type": "object"
    },
    "FungicideDetailTarget_2224": {
      "additionalProperties": false,
      "properties": {
        "isTargetInTest": {
          "type": "boolean"
        },
        "numberOfDays": {
          "type": "integer"
        },
        "organs": {
          "items": {
            "$ref": "#/definitions/DefaultFungicideOrgan_2222",
            "type": "object"
          },
          "type": "array"
        },
        "plantAlertLevel": {
          "type": "integer"
        },
        "plantAlertLevelLabel": {
          "type": "string"
        },
        "targetDescription": {
          "type": "string"
        },
        "targetId": {
          "type": "integer"
        },
        "targetLabel": {
          "type": "string"
        }
      },
      "required": [
        "isTargetInTest",
        "organs",
        "plantAlertLevel",
        "plantAlertLevelLabel",
        "targetId",
        "targetLabel"
      ],
      "title": "FungicideTarget - FungicideDetailTarget",
      "type": "object"
    },
    "FungicideOperationProduct_2226": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "productId": {
          "type": "integer"
        },
        "productLabel": {
          "type": "string"
        },
        "quantity": {
          "type": "number"
        },
        "unitCode": {
          "type": "string"
        },
        "unitId": {
          "type": "integer"
        }
      },
      "required": [
        "productId",
        "productLabel",
        "quantity",
        "unitCode",
        "unitId"
      ],
      "title": "FungicideProduct - FungicideOperationProduct",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "antePreviousCropId": {
      "type": "integer"
    },
    "antePreviousCropLabel": {
      "type": "string"
    },
    "calculationDate": {
      "description": "Non utilisé",
      "type": "string"
    },
    "cityCode": {
      "type": "string"
    },
    "cityName": {
      "type": "string"
    },
    "countryCode": {
      "description": "Non utilisé",
      "type": "string"
    },
    "cropId": {
      "type": "integer"
    },
    "cropLabel": {
      "type": "string"
    },
    "currentDayRisks": {
      "$ref": "#/definitions/DefaultFungicideDayRisks_2225",
      "type": "object"
    },
    "farmId": {
      "description": "Non utilisé",
      "type": "integer"
    },
    "fieldId": {
      "type": "integer"
    },
    "fieldName": {
      "type": "string"
    },
    "groupId": {
      "type": "integer"
    },
    "groupLabel": {
      "type": "string"
    },
    "localization": {
      "$ref": "#/definitions/DefaultLocalization_2210",
      "type": "object"
    },
    "missingObservations": {
      "type": "integer"
    },
    "nextDaysRisks": {
      "items": {
        "$ref": "#/definitions/DefaultFungicideDayRisks_2225",
        "type": "object"
      },
      "type": "array"
    },
    "ploughed": {
      "type": "string"
    },
    "predictionDate": {
      "type": "string"
    },
    "predictionModelLabel": {
      "description": "Non utilisé",
      "type": "string"
    },
    "previousCropId": {
      "type": "integer"
    },
    "previousCropLabel": {
      "type": "string"
    },
    "soilTextureId": {
      "type": "integer"
    },
    "soilTextureLabel": {
      "type": "string"
    },
    "sowingDate": {
      "type": "string"
    },
    "stages": {
      "items": {
        "$ref": "#/definitions/DefaultFungicideStage_2221",
        "type": "object"
      },
      "type": "array"
    },
    "surface": {
      "type": "number"
    },
    "workOperations": {
      "items": {
        "$ref": "#/definitions/DefaultFungicideWorkOperation_2227",
        "type": "object"
      },
      "type": "array"
    },
    "yieldPotential": {
      "type": "string"
    }
  },
  "required": [
    "antePreviousCropId",
    "antePreviousCropLabel",
    "calculationDate",
    "cityCode",
    "countryCode",
    "cropId",
    "cropLabel",
    "currentDayRisks",
    "farmId",
    "fieldId",
    "fieldName",
    "groupId",
    "groupLabel",
    "localization",
    "missingObservations",
    "nextDaysRisks",
    "ploughed",
    "predictionDate",
    "predictionModelLabel",
    "previousCropId",
    "previousCropLabel",
    "soilTextureId",
    "soilTextureLabel",
    "sowingDate",
    "stages",
    "surface",
    "workOperations",
    "yieldPotential"
  ],
  "title": "FungicideParcel - DefaultFungicideFieldDetail",
  "type": "object"
}

JSON instance

{
  "antePreviousCropId": 559,
  "antePreviousCropLabel": "Pailles",
  "calculationDate": "2021-03-11T11:45:33",
  "cityCode": "CY_FR_18160",
  "cityName": "NERONDES",
  "countryCode": "FR",
  "cropId": 385,
  "cropLabel": "PROVIDENCE",
  "currentDayRisks": {
    "globalRiskLevel": 3,
    "globalRiskLevelLabel": "En dehors des stades de traitement pour la maladie concernée",
    "globalRiskPictureURL": "https://static-cf.farmi.com/plantsimages/A9AF248385D701F10E815C69DBCF3532.png",
    "organs": [
      {
        "organId": 2,
        "organLabel": "F1",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 3,
        "organLabel": "F2",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 4,
        "organLabel": "F3",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 5,
        "organLabel": "F4",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 6,
        "organLabel": "F5",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      }
    ],
    "targets": [
      {
        "isTargetInTest": true,
        "organs": [],
        "plantAlertLevel": 3,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période d'intervention ",
        "targetId": 1,
        "targetLabel": "Piétin-verse"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          }
        ],
        "plantAlertLevel": 3,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période d'intervention ",
        "targetId": 2,
        "targetLabel": "Septoriose"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          }
        ],
        "plantAlertLevel": 3,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période d'intervention ",
        "targetId": 3,
        "targetLabel": "Rouille brune"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          }
        ],
        "plantAlertLevel": 3,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période d'intervention ",
        "targetId": 4,
        "targetLabel": "Rouille jaune"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          }
        ],
        "plantAlertLevel": 3,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "Période pertinente non atteinte",
        "targetId": 6,
        "targetLabel": "Oïdium"
      },
      {
        "isTargetInTest": true,
        "organs": [],
        "plantAlertLevel": 3,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période d'intervention ",
        "targetId": 7,
        "targetLabel": "Fusariose"
      }
    ]
  },
  "farmId": 150,
  "fieldId": 1549,
  "fieldName": "Gnasseries 1",
  "groupId": 2,
  "groupLabel": "Blé tendre",
  "localization": {
    "latitude": 47.00326,
    "longitude": 2.86692
  },
  "missingObservations": 0,
  "nextDaysRisks": [
    {
      "globalRiskLevel": 3,
      "globalRiskLevelLabel": "En dehors des stades de traitement pour la maladie concernée",
      "globalRiskPictureURL": "https://static-cf.farmi.com/plantsimages/A9AF248385D701F10E815C69DBCF3532.png",
      "organs": [
        {
          "organId": 2,
          "organLabel": "F1",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        },
        {
          "organId": 3,
          "organLabel": "F2",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        },
        {
          "organId": 4,
          "organLabel": "F3",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        },
        {
          "organId": 5,
          "organLabel": "F4",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        },
        {
          "organId": 6,
          "organLabel": "F5",
          "organRiskLevel": 0,
          "organRiskLevelLabel": "Pas de risque"
        }
      ],
      "targets": [
        {
          "isTargetInTest": true,
          "organs": [],
          "plantAlertLevel": 3,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période d'intervention ",
          "targetId": 1,
          "targetLabel": "Piétin-verse"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            }
          ],
          "plantAlertLevel": 3,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période d'intervention ",
          "targetId": 2,
          "targetLabel": "Septoriose"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            }
          ],
          "plantAlertLevel": 3,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période d'intervention ",
          "targetId": 3,
          "targetLabel": "Rouille brune"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            }
          ],
          "plantAlertLevel": 3,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période d'intervention ",
          "targetId": 4,
          "targetLabel": "Rouille jaune"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            }
          ],
          "plantAlertLevel": 3,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "Période pertinente non atteinte",
          "targetId": 6,
          "targetLabel": "Oïdium"
        },
        {
          "isTargetInTest": true,
          "organs": [],
          "plantAlertLevel": 3,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période d'intervention ",
          "targetId": 7,
          "targetLabel": "Fusariose"
        }
      ]
    }
  ],
  "ploughed": "Non labour",
  "predictionDate": "2021-03-11T00:00:00",
  "predictionModelLabel": "Simulation agroclimatique",
  "previousCropId": 555,
  "previousCropLabel": "Tournesol",
  "soilTextureId": 6,
  "soilTextureLabel": "Limon argileux",
  "sowingDate": "2020-10-19T00:00:00",
  "stages": [
    {
      "position": 1,
      "stageDate": "2021-03-17T00:00:00",
      "stageDescription": "Les plantes se redressent : c'est la fin du tallage herbacé et la tige principale commence à s'allonger. La distance entre le sommet de l'épi et le plateau de tallage est en moyenne d'1cm.\n  Pour l'observer :\n   - Isoler le maitre-brin de chaque plante arrachée et éliminer les talles.\n  - Couper les racines à la base de la tige.\n  - Fendre la base de la tige avec une lame de couteau dans le sens de la longueur\n  - Mesurer la distance entre le sommet de l'épi et la base du plateau de tallage",
      "stageId": 2285,
      "stageLabel": "Épi 1 cm, début montaison",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH30_EPI1CM.jpg",
      "stageType": 0
    },
    {
      "position": 2,
      "stageDate": "2021-04-01T00:00:00",
      "stageDescription": "Il faut l'observer 10 à 15 jours après le stade épi 1cm. Le premier nœud est situé le plus près de la base de la tige.\n  La hauteur entre le sommet de l'épi et le plateau de tallage varie entre 3 à 5 cm.",
      "stageId": 2286,
      "stageLabel": "1er nœud formé",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH31_1NOEUD.jpg",
      "stageType": 0
    },
    {
      "position": 3,
      "stageDate": "2021-04-10T00:00:00",
      "stageDescription": "Les deux premiers nœuds sont bien visibles à la base de la tige quand on atteint 2 nœuds.\n  La hauteur entre le sommet de l'épi et le plateau de tallage varie entre 6 à 12 cm.",
      "stageId": 2287,
      "stageLabel": "2ème nœud formé",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH32_2NOEUD.jpg",
      "stageType": 0
    },
    {
      "position": 4,
      "stageDate": "2021-04-24T00:00:00",
      "stageDescription": "La dernière feuille est visible mais encore enroulée.  ",
      "stageId": 2292,
      "stageLabel": "Dernière feuille pointante",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH37_DERNIERE_FEUILLE_POINTANTE.jpg",
      "stageType": 0
    },
    {
      "position": 5,
      "stageDate": "2021-04-27T00:00:00",
      "stageDescription": "La ligule de la dernière feuille est entièrement développée. La gaine est gonflée au niveau de l'épi",
      "stageId": 2293,
      "stageLabel": "Dernière feuille étalée",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH39_DERNIERE_FEUILLE_ETALEE.png",
      "stageType": 0
    },
    {
      "position": 6,
      "stageDate": "2021-05-17T00:00:00",
      "stageDescription": "L'épiaison est le stade phénologique qui correspond à l'apparition de l'épi hors de la gaine de la dernière feuille.\n  Le stade mi-épaison correspond à 50 % de l'inflorescence sortie et la gaine est éclatée.",
      "stageId": 2303,
      "stageLabel": "Mi épiaison",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH55_MI_EPIAISON.png",
      "stageType": 0
    },
    {
      "position": 7,
      "stageDate": "2021-05-24T00:00:00",
      "stageDescription": "La floraison se caractérise par l'apparition des étamines hors des épillets.\n C'est la fin de la montaison, la croissance des tiges est terminée.\n L'appréciaiton précise du stade est délicate en raison de la présence des étamines sur les épi longtemps après la floraision.",
      "stageId": 2329,
      "stageLabel": "Floraison",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH60_FLORAISON.png",
      "stageType": 0
    },
    {
      "position": 8,
      "stageDate": "2021-07-04T00:00:00",
      "stageDescription": "",
      "stageId": 2324,
      "stageLabel": "Maturité complète",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH89_MATURITECOMPLETE.png",
      "stageType": 0
    }
  ],
  "surface": 11,
  "workOperations": [],
  "yieldPotential": "de 70 à 80 q/ha"
}

Validation #1054

Success

The input JSON schema validates the input JSON instance (JSON Schema Draft 4).

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "DefaultFungicideDayRisks_2225": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "globalRiskLevel": {
          "type": "integer"
        },
        "globalRiskLevelLabel": {
          "type": "string"
        },
        "globalRiskPictureURL": {
          "type": "string"
        },
        "organs": {
          "items": {
            "$ref": "#/definitions/DefaultFungicideOrgan_2222",
            "type": "object"
          },
          "type": "array"
        },
        "targets": {
          "items": {
            "$ref": "#/definitions/FungicideDetailTarget_2224",
            "type": "object"
          },
          "type": "array"
        }
      },
      "required": [
        "globalRiskLevelLabel",
        "targets"
      ],
      "title": "FungicideDayRisks - DefaultFungicideDayRisks",
      "type": "object"
    },
    "DefaultFungicideOrgan_2222": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "organId": {
          "type": "integer"
        },
        "organLabel": {
          "type": "string"
        },
        "organRiskLevel": {
          "type": "integer"
        },
        "organRiskLevelLabel": {
          "type": "string"
        }
      },
      "required": [
        "organId",
        "organLabel",
        "organRiskLevel",
        "organRiskLevelLabel"
      ],
      "title": "FungicideOrgan - DefaultFungicideOrgan",
      "type": "object"
    },
    "DefaultFungicideStage_2221": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "observationId": {
          "description": "Obligatoire si stageType == 1",
          "type": "integer"
        },
        "position": {
          "type": "integer"
        },
        "stageDate": {
          "type": "string"
        },
        "stageDescription": {
          "type": "string"
        },
        "stageId": {
          "type": "integer"
        },
        "stageLabel": {
          "type": "string"
        },
        "stagePictureURL": {
          "type": "string"
        },
        "stageType": {
          "type": "integer"
        }
      },
      "required": [
        "observationId",
        "position",
        "stageDate",
        "stageDescription",
        "stageId",
        "stageLabel",
        "stagePictureURL",
        "stageType"
      ],
      "title": "FungicideStage - DefaultFungicideStage",
      "type": "object"
    },
    "DefaultFungicideWorkOperation_2227": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "operationDate": {
          "type": "string"
        },
        "operationId": {
          "type": "integer"
        },
        "operationsProducts": {
          "items": {
            "$ref": "#/definitions/FungicideOperationProduct_2226",
            "type": "object"
          },
          "type": "array"
        },
        "workOperationLabel": {
          "type": "string"
        },
        "workOperationType": {
          "type": "integer"
        }
      },
      "required": [
        "operationDate",
        "operationId",
        "operationsProducts",
        "workOperationLabel",
        "workOperationType"
      ],
      "title": "FungicideWorkOperation - DefaultFungicideWorkOperation",
      "type": "object"
    },
    "DefaultLocalization_2210": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "latitude": {
          "type": "number"
        },
        "longitude": {
          "type": "number"
        }
      },
      "required": [
        "latitude",
        "longitude"
      ],
      "title": "Localization - DefaultLocalization",
      "type": "object"
    },
    "FungicideDetailTarget_2224": {
      "additionalProperties": false,
      "properties": {
        "isTargetInTest": {
          "type": "boolean"
        },
        "numberOfDays": {
          "type": "integer"
        },
        "organs": {
          "items": {
            "$ref": "#/definitions/DefaultFungicideOrgan_2222",
            "type": "object"
          },
          "type": "array"
        },
        "plantAlertLevel": {
          "type": "integer"
        },
        "plantAlertLevelLabel": {
          "type": "string"
        },
        "targetDescription": {
          "type": "string"
        },
        "targetId": {
          "type": "integer"
        },
        "targetLabel": {
          "type": "string"
        }
      },
      "required": [
        "isTargetInTest",
        "organs",
        "plantAlertLevel",
        "plantAlertLevelLabel",
        "targetId",
        "targetLabel"
      ],
      "title": "FungicideTarget - FungicideDetailTarget",
      "type": "object"
    },
    "FungicideOperationProduct_2226": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "productId": {
          "type": "integer"
        },
        "productLabel": {
          "type": "string"
        },
        "quantity": {
          "type": "number"
        },
        "unitCode": {
          "type": "string"
        },
        "unitId": {
          "type": "integer"
        }
      },
      "required": [
        "productId",
        "productLabel",
        "quantity",
        "unitCode",
        "unitId"
      ],
      "title": "FungicideProduct - FungicideOperationProduct",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "antePreviousCropId": {
      "type": "integer"
    },
    "antePreviousCropLabel": {
      "type": "string"
    },
    "calculationDate": {
      "description": "Non utilisé",
      "type": "string"
    },
    "cityCode": {
      "type": "string"
    },
    "cityName": {
      "type": "string"
    },
    "countryCode": {
      "description": "Non utilisé",
      "type": "string"
    },
    "cropId": {
      "type": "integer"
    },
    "cropLabel": {
      "type": "string"
    },
    "currentDayRisks": {
      "$ref": "#/definitions/DefaultFungicideDayRisks_2225",
      "type": "object"
    },
    "farmId": {
      "description": "Non utilisé",
      "type": "integer"
    },
    "fieldId": {
      "type": "integer"
    },
    "fieldName": {
      "type": "string"
    },
    "groupId": {
      "type": "integer"
    },
    "groupLabel": {
      "type": "string"
    },
    "localization": {
      "$ref": "#/definitions/DefaultLocalization_2210",
      "type": "object"
    },
    "missingObservations": {
      "type": "integer"
    },
    "nextDaysRisks": {
      "items": {
        "$ref": "#/definitions/DefaultFungicideDayRisks_2225",
        "type": "object"
      },
      "type": "array"
    },
    "ploughed": {
      "type": "string"
    },
    "predictionDate": {
      "type": "string"
    },
    "predictionModelLabel": {
      "description": "Non utilisé",
      "type": "string"
    },
    "previousCropId": {
      "type": "integer"
    },
    "previousCropLabel": {
      "type": "string"
    },
    "soilTextureId": {
      "type": "integer"
    },
    "soilTextureLabel": {
      "type": "string"
    },
    "sowingDate": {
      "type": "string"
    },
    "stages": {
      "items": {
        "$ref": "#/definitions/DefaultFungicideStage_2221",
        "type": "object"
      },
      "type": "array"
    },
    "surface": {
      "type": "number"
    },
    "workOperations": {
      "items": {
        "$ref": "#/definitions/DefaultFungicideWorkOperation_2227",
        "type": "object"
      },
      "type": "array"
    },
    "yieldPotential": {
      "type": "string"
    }
  },
  "required": [
    "antePreviousCropId",
    "antePreviousCropLabel",
    "calculationDate",
    "cityCode",
    "countryCode",
    "cropId",
    "cropLabel",
    "currentDayRisks",
    "farmId",
    "fieldId",
    "fieldName",
    "groupId",
    "groupLabel",
    "localization",
    "missingObservations",
    "nextDaysRisks",
    "ploughed",
    "predictionDate",
    "predictionModelLabel",
    "previousCropId",
    "previousCropLabel",
    "soilTextureId",
    "soilTextureLabel",
    "sowingDate",
    "stages",
    "surface",
    "workOperations",
    "yieldPotential"
  ],
  "title": "FungicideParcel - DefaultFungicideFieldDetail",
  "type": "object"
}

JSON instance

{
  "antePreviousCropId": 47606977,
  "antePreviousCropLabel": "sunt occaecat qui",
  "calculationDate": "ad esse sit",
  "cityCode": "amet",
  "countryCode": "deserunt nostrud",
  "cropId": 39514820,
  "cropLabel": "nisi amet minim in",
  "currentDayRisks": {
    "globalRiskLevelLabel": "exercitation nisi est fugiat",
    "targets": [
      {
        "isTargetInTest": true,
        "organs": [
          {
            "organId": 81741986,
            "organLabel": "do",
            "organRiskLevel": -1516283,
            "organRiskLevelLabel": "officia ullamco adipisicing"
          },
          {
            "organId": -15936596,
            "organLabel": "sed eu dolore",
            "organRiskLevel": 89834578,
            "organRiskLevelLabel": "eu ut culpa dolore veniam"
          }
        ],
        "plantAlertLevel": -44998992,
        "plantAlertLevelLabel": "sint fugiat do",
        "targetId": 71002485,
        "targetLabel": "anim"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 13005396,
            "organLabel": "nulla in tempor",
            "organRiskLevel": -21611929,
            "organRiskLevelLabel": "in labore adipisicing culpa Excepteur"
          },
          {
            "organId": -32691110,
            "organLabel": "laborum nostrud officia Ut",
            "organRiskLevel": -76510271,
            "organRiskLevelLabel": "nulla nisi"
          },
          {
            "organId": -38739271,
            "organLabel": "reprehenderit Lorem dolore",
            "organRiskLevel": -34888415,
            "organRiskLevelLabel": ""
          },
          {
            "organId": -43111866,
            "organLabel": "repreh",
            "organRiskLevel": 48987421,
            "organRiskLevelLabel": "veniam officia adipisicing in"
          }
        ],
        "plantAlertLevel": 85408658,
        "plantAlertLevelLabel": "est deserunt adipisicing mollit",
        "targetId": 42099761,
        "targetLabel": "do adipisicing"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 12359685,
            "organLabel": "cupidatat amet",
            "organRiskLevel": 27874665,
            "organRiskLevelLabel": "aliqua"
          },
          {
            "organId": 64325166,
            "organLabel": "in nisi culpa et",
            "organRiskLevel": 44447794,
            "organRiskLevelLabel": "consectetur ad ut aute adipisicing"
          },
          {
            "organId": -49145649,
            "organLabel": "deserunt labore est",
            "organRiskLevel": 80162986,
            "organRiskLevelLabel": "dolor irure"
          },
          {
            "organId": -41901817,
            "organLabel": "anim",
            "organRiskLevel": 83140112,
            "organRiskLevelLabel": "dolor laboris cillum occaecat labore"
          }
        ],
        "plantAlertLevel": 93552300,
        "plantAlertLevelLabel": "eu voluptate Lorem quis ad",
        "targetId": 42073307,
        "targetLabel": "labore aliqua nostrud"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 98186732,
            "organLabel": "sunt cupidatat tempor",
            "organRiskLevel": 75584615,
            "organRiskLevelLabel": "aliqua fugiat in ipsum"
          },
          {
            "organId": -95309931,
            "organLabel": "laboris exercitation commodo occaecat",
            "organRiskLevel": 46607026,
            "organRiskLevelLabel": "amet dolor Duis"
          },
          {
            "organId": 31433432,
            "organLabel": "cupidatat cillum",
            "organRiskLevel": 59085612,
            "organRiskLevelLabel": "officia ea"
          }
        ],
        "plantAlertLevel": 68183702,
        "plantAlertLevelLabel": "proident venia",
        "targetId": -11763367,
        "targetLabel": "exercitation ut aliquip"
      }
    ]
  },
  "farmId": 37610507,
  "fieldId": 7287859,
  "fieldName": "dolore ad",
  "groupId": -83101743,
  "groupLabel": "laboris adipisicing",
  "localization": {
    "latitude": 96151678.99671003,
    "longitude": 11058557.660183907
  },
  "missingObservations": -97304149,
  "nextDaysRisks": [
    {
      "globalRiskLevelLabel": "eni",
      "targets": [
        {
          "isTargetInTest": true,
          "organs": [
            {
              "organId": 37406318,
              "organLabel": "deserunt",
              "organRiskLevel": 33632493,
              "organRiskLevelLabel": "sed laborum"
            },
            {
              "organId": 16539679,
              "organLabel": "ullamco",
              "organRiskLevel": -11989443,
              "organRiskLevelLabel": "aute adipisicing est dolore officia"
            }
          ],
          "plantAlertLevel": -1064143,
          "plantAlertLevelLabel": "sit non in elit",
          "targetId": -93219912,
          "targetLabel": "Lorem irure ad do consequat"
        },
        {
          "isTargetInTest": true,
          "organs": [
            {
              "organId": 38180230,
              "organLabel": "Excepteur eu dolor",
              "organRiskLevel": 93050873,
              "organRiskLevelLabel": "laboris Excepteur"
            },
            {
              "organId": 30076019,
              "organLabel": "ad dolore sit quis",
              "organRiskLevel": -7483429,
              "organRiskLevelLabel": "dolore cupidatat minim exercitation anim"
            }
          ],
          "plantAlertLevel": 46069912,
          "plantAlertLevelLabel": "dolore ullamco ipsum nisi pariatur",
          "targetId": -32144937,
          "targetLabel": "deserunt"
        },
        {
          "isTargetInTest": true,
          "organs": [
            {
              "organId": 35034390,
              "organLabel": "magna dolore in dolor",
              "organRiskLevel": -2213884,
              "organRiskLevelLabel": "consequat ut cupidatat"
            },
            {
              "organId": 27621080,
              "organLabel": "officia consequat esse eu labore",
              "organRiskLevel": 71170194,
              "organRiskLevelLabel": "aute qui offici"
            }
          ],
          "plantAlertLevel": 78346405,
          "plantAlertLevelLabel": "dolor",
          "targetId": -5226984,
          "targetLabel": "exercitation"
        }
      ]
    },
    {
      "globalRiskLevelLabel": "aliqua elit dolor exercitation occaecat",
      "targets": [
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 88119965,
              "organLabel": "anim ut proident sed culpa",
              "organRiskLevel": -77506394,
              "organRiskLevelLabel": "minim officia irure ullamco"
            },
            {
              "organId": -65419900,
              "organLabel": "tempor reprehenderit voluptate nulla ut",
              "organRiskLevel": -630476,
              "organRiskLevelLabel": "cupidatat adipisicing ex anim"
            },
            {
              "organId": 16638899,
              "organLabel": "laboris",
              "organRiskLevel": -11911744,
              "organRiskLevelLabel": "enim ut culpa Excepteur"
            },
            {
              "organId": 32418528,
              "organLabel": "magna sunt dolore",
              "organRiskLevel": -57863245,
              "organRiskLevelLabel": "dolor in id aliqua proident"
            },
            {
              "organId": 92145213,
              "organLabel": "officia ullamco magna",
              "organRiskLevel": 98387973,
              "organRiskLevelLabel": "nostrud"
            }
          ],
          "plantAlertLevel": 82451038,
          "plantAlertLevelLabel": "laboris aliqua quis",
          "targetId": -58100024,
          "targetLabel": "id tempor pariatu"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": -94773542,
              "organLabel": "ut amet deserunt",
              "organRiskLevel": -18048698,
              "organRiskLevelLabel": "esse anim sed"
            }
          ],
          "plantAlertLevel": 84153664,
          "plantAlertLevelLabel": "irure sunt",
          "targetId": -44869854,
          "targetLabel": "voluptate"
        }
      ]
    },
    {
      "globalRiskLevelLabel": "eu ipsum nisi labore",
      "targets": [
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 40667033,
              "organLabel": "reprehenderit voluptate dolor",
              "organRiskLevel": -21045712,
              "organRiskLevelLabel": "ea"
            },
            {
              "organId": -53330940,
              "organLabel": "aute",
              "organRiskLevel": -53053909,
              "organRiskLevelLabel": "nisi aliqua"
            },
            {
              "organId": -24091060,
              "organLabel": "adipisicing elit velit",
              "organRiskLevel": 92636874,
              "organRiskLevelLabel": "nostrud Ut"
            }
          ],
          "plantAlertLevel": 65400274,
          "plantAlertLevelLabel": "commodo eu cillum",
          "targetId": -90659992,
          "targetLabel": "fugiat"
        }
      ]
    },
    {
      "globalRiskLevelLabel": "qui",
      "targets": [
        {
          "isTargetInTest": true,
          "organs": [
            {
              "organId": -92257257,
              "organLabel": "id laborum irure",
              "organRiskLevel": -38748641,
              "organRiskLevelLabel": "nisi"
            }
          ],
          "plantAlertLevel": -13659277,
          "plantAlertLevelLabel": "nisi",
          "targetId": 57311645,
          "targetLabel": "laborum ullamco reprehenderit exercitation sit"
        },
        {
          "isTargetInTest": true,
          "organs": [
            {
              "organId": -75264092,
              "organLabel": "in minim sint",
              "organRiskLevel": -8872643,
              "organRiskLevelLabel": "anim"
            },
            {
              "organId": -93937517,
              "organLabel": "Ut culpa",
              "organRiskLevel": -20543852,
              "organRiskLevelLabel": "et"
            },
            {
              "organId": -97447592,
              "organLabel": "do veniam reprehenderit",
              "organRiskLevel": -87071786,
              "organRiskLevelLabel": "exercitation esse Ut"
            }
          ],
          "plantAlertLevel": 69998448,
          "plantAlertLevelLabel": "r",
          "targetId": 51238783,
          "targetLabel": "cupidatat sit"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": -7362697,
              "organLabel": "non",
              "organRiskLevel": -24839271,
              "organRiskLevelLabel": "labori"
            },
            {
              "organId": -43121900,
              "organLabel": "dolore voluptate occaecat do ad",
              "organRiskLevel": -69453549,
              "organRiskLevelLabel": "do proident sed"
            },
            {
              "organId": 97695584,
              "organLabel": "laborum reprehenderit",
              "organRiskLevel": 29836329,
              "organRiskLevelLabel": ""
            },
            {
              "organId": 62112905,
              "organLabel": "officia",
              "organRiskLevel": 78051765,
              "organRiskLevelLabel": "incididunt nostrud magna pariatur Lorem"
            },
            {
              "organId": -78634413,
              "organLabel": "incididunt dolore in mollit",
              "organRiskLevel": -90707855,
              "organRiskLevelLabel": "ullamco officia"
            }
          ],
          "plantAlertLevel": 67417060,
          "plantAlertLevelLabel": "fugiat ut Lorem minim",
          "targetId": 56557911,
          "targetLabel": "et"
        }
      ]
    },
    {
      "globalRiskLevelLabel": "in mollit nulla adipisicing",
      "targets": [
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 82970117,
              "organLabel": "ipsum",
              "organRiskLevel": -12526053,
              "organRiskLevelLabel": "Lorem dolor"
            }
          ],
          "plantAlertLevel": 68390857,
          "plantAlertLevelLabel": "esse sed qui",
          "targetId": -24230142,
          "targetLabel": ""
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": -4435401,
              "organLabel": "irure nisi L",
              "organRiskLevel": 61896860,
              "organRiskLevelLabel": "aute Ut sint"
            }
          ],
          "plantAlertLevel": 2990488,
          "plantAlertLevelLabel": "incididunt",
          "targetId": 50519584,
          "targetLabel": "eu Duis adipisicing deserunt id"
        }
      ]
    }
  ],
  "ploughed": "ut sed labori",
  "predictionDate": "anim esse reprehenderit nisi",
  "predictionModelLabel": "laboris in adipisicing ",
  "previousCropId": -96778593,
  "previousCropLabel": "est sed",
  "soilTextureId": -85398302,
  "soilTextureLabel": "ani",
  "sowingDate": "sed",
  "stages": [
    {
      "observationId": -39651128,
      "position": 95141780,
      "stageDate": "dolore fugiat dolor",
      "stageDescription": "Lorem",
      "stageId": 78700345,
      "stageLabel": "labore velit Lorem consequ",
      "stagePictureURL": "labore magna veniam Ut",
      "stageType": -89878257
    }
  ],
  "surface": 88327150.84755608,
  "workOperations": [
    {
      "operationDate": "non nulla sit",
      "operationId": 95709306,
      "operationsProducts": [
        {
          "productId": 84510512,
          "productLabel": "consectetur Lorem non commodo",
          "quantity": 50422875.545571655,
          "unitCode": "et incididunt enim amet",
          "unitId": -87824405
        },
        {
          "productId": 72138255,
          "productLabel": "cillum nostrud qui",
          "quantity": -72818556.12767631,
          "unitCode": "quis est irure",
          "unitId": -2665615
        }
      ],
      "workOperationLabel": "dolore nostrud",
      "workOperationType": -46066500
    },
    {
      "operationDate": "ex et irure pariatur commodo",
      "operationId": 51630113,
      "operationsProducts": [
        {
          "productId": -54564258,
          "productLabel": "anim esse",
          "quantity": 89959217.6580013,
          "unitCode": "nostrud",
          "unitId": 39142191
        }
      ],
      "workOperationLabel": "officia Duis laborum reprehenderit aute",
      "workOperationType": 8117369
    },
    {
      "operationDate": "enim exercitation",
      "operationId": -46506824,
      "operationsProducts": [
        {
          "productId": 57007753,
          "productLabel": "mollit dolore officia esse",
          "quantity": 43190007.83114961,
          "unitCode": "ea",
          "unitId": 58522494
        },
        {
          "productId": 54926983,
          "productLabel": "eiusmod exercitation",
          "quantity": 92885765.11287871,
          "unitCode": "mollit",
          "unitId": -64409567
        },
        {
          "productId": -96978290,
          "productLabel": "labore aliqua",
          "quantity": -79765121.43768378,
          "unitCode": "ut dolore",
          "unitId": -79554516
        },
        {
          "productId": -72579910,
          "productLabel": "proident in id ad",
          "quantity": -32416049.069913372,
          "unitCode": "fugiat ",
          "unitId": -80108728
        }
      ],
      "workOperationLabel": "aute",
      "workOperationType": -49895172
    },
    {
      "operationDate": "sit sed",
      "operationId": 89113508,
      "operationsProducts": [
        {
          "productId": 6230451,
          "productLabel": "amet esse",
          "quantity": 98453648.04291922,
          "unitCode": "dolor ipsum quis laborum",
          "unitId": -33634656
        },
        {
          "productId": 3159773,
          "productLabel": "fugiat nisi ut",
          "quantity": -97731676.34961979,
          "unitCode": "pariatur culpa",
          "unitId": -19349682
        },
        {
          "productId": 7880863,
          "productLabel": "nostrud",
          "quantity": 10822558.401023,
          "unitCode": "velit adipisicing laborum Excepteur",
          "unitId": 2816810
        },
        {
          "productId": -70991131,
          "productLabel": "adipisicing",
          "quantity": 70070641.23247382,
          "unitCode": "velit",
          "unitId": 3277936
        }
      ],
      "workOperationLabel": "non dolor laborum aute",
      "workOperationType": 95473492
    },
    {
      "operationDate": "sunt al",
      "operationId": 17737772,
      "operationsProducts": [
        {
          "productId": 63460014,
          "productLabel": "consequat",
          "quantity": -36400271.22748282,
          "unitCode": "proident et est dolor",
          "unitId": -62855439
        },
        {
          "productId": -12729949,
          "productLabel": "nulla officia in",
          "quantity": -3498285.596456215,
          "unitCode": "dolor sit nostrud anim Lorem",
          "unitId": -8856705
        }
      ],
      "workOperationLabel": "officia deserunt et commodo",
      "workOperationType": -834055
    }
  ],
  "yieldPotential": "ut"
}

Validation #1053

Success

The input JSON schema validates the input JSON instance (JSON Schema Draft 4).

JSON Schema

{
  "definitions": {
    "DefaultLocalization_2210": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "latitude": {
          "type": "number"
        },
        "longitude": {
          "type": "number"
        }
      },
      "required": [
        "latitude",
        "longitude"
      ],
      "title": "Localization - DefaultLocalization",
      "type": "object"
    },
    "FungicideParcelSumUpTarget_2223": {
      "additionalProperties": false,
      "properties": {
        "isTargetInTest": {
          "type": "boolean"
        },
        "numberOfDays": {
          "type": "integer"
        },
        "riskLevelId": {
          "type": "integer"
        },
        "riskLevelLabel": {
          "type": "string"
        },
        "targetId": {
          "type": "integer"
        },
        "targetLabel": {
          "type": "string"
        }
      },
      "required": [
        "numberOfDays",
        "riskLevelId",
        "riskLevelLabel",
        "targetId",
        "targetLabel"
      ],
      "title": "FungicideTarget - FungicideParcelSumUpTarget",
      "type": "object"
    }
  },
  "items": {
    "additionalProperties": false,
    "properties": {
      "cropId": {
        "type": "integer"
      },
      "cropLabel": {
        "type": "string"
      },
      "fieldId": {
        "type": "integer"
      },
      "fieldName": {
        "type": "string"
      },
      "groupId": {
        "type": "integer"
      },
      "groupLabel": {
        "type": "string"
      },
      "localization": {
        "$ref": "#/definitions/DefaultLocalization_2210",
        "type": "object"
      },
      "missingObservations": {
        "type": "integer"
      },
      "stageId": {
        "type": "integer"
      },
      "stageLabel": {
        "type": "string"
      },
      "surface": {
        "type": "number"
      },
      "targets": {
        "items": {
          "$ref": "#/definitions/FungicideParcelSumUpTarget_2223",
          "type": "object"
        },
        "type": "array"
      }
    },
    "required": [
      "cropId",
      "cropLabel",
      "fieldId",
      "fieldName",
      "groupId",
      "groupLabel",
      "localization",
      "missingObservations",
      "stageId",
      "stageLabel",
      "surface",
      "targets"
    ],
    "type": "object"
  },
  "title": "FungicideParcel - FungicideParcelSumUp",
  "type": "array"
}

JSON instance

[
  {
    "cropId": 25177,
    "cropLabel": "KWS ULTIM",
    "fieldId": 1548,
    "fieldName": "Gnasseries",
    "groupId": 2,
    "groupLabel": "Blé tendre",
    "localization": {
      "latitude": 47.0058,
      "longitude": 2.86059
    },
    "missingObservations": 0,
    "stageId": 0,
    "stageLabel": "Période pertinente non atteinte",
    "surface": 5.5,
    "targets": [
      {
        "isTargetInTest": true,
        "numberOfDays": 0,
        "riskLevelId": 3,
        "riskLevelLabel": "Pas de risque",
        "targetId": 1,
        "targetLabel": "Piétin-verse"
      },
      {
        "isTargetInTest": false,
        "numberOfDays": 0,
        "riskLevelId": 3,
        "riskLevelLabel": "Pas de risque",
        "targetId": 2,
        "targetLabel": "Septoriose"
      },
      {
        "isTargetInTest": false,
        "numberOfDays": 0,
        "riskLevelId": 3,
        "riskLevelLabel": "Pas de risque",
        "targetId": 3,
        "targetLabel": "Rouille brune"
      },
      {
        "isTargetInTest": false,
        "numberOfDays": 0,
        "riskLevelId": 3,
        "riskLevelLabel": "Pas de risque",
        "targetId": 4,
        "targetLabel": "Rouille jaune"
      },
      {
        "isTargetInTest": false,
        "numberOfDays": 0,
        "riskLevelId": 3,
        "riskLevelLabel": "Pas de risque",
        "targetId": 6,
        "targetLabel": "Oïdium"
      },
      {
        "isTargetInTest": true,
        "numberOfDays": 0,
        "riskLevelId": 3,
        "riskLevelLabel": "Pas de risque",
        "targetId": 7,
        "targetLabel": "Fusariose"
      }
    ]
  },
  {
    "cropId": 385,
    "cropLabel": "PROVIDENCE",
    "fieldId": 1549,
    "fieldName": "Gnasseries 1",
    "groupId": 2,
    "groupLabel": "Blé tendre",
    "localization": {
      "latitude": 47.0033,
      "longitude": 2.86692
    },
    "missingObservations": 0,
    "stageId": 0,
    "stageLabel": "Période pertinente non atteinte",
    "surface": 11,
    "targets": [
      {
        "isTargetInTest": true,
        "numberOfDays": 0,
        "riskLevelId": 3,
        "riskLevelLabel": "Pas de risque",
        "targetId": 1,
        "targetLabel": "Piétin-verse"
      },
      {
        "isTargetInTest": false,
        "numberOfDays": 0,
        "riskLevelId": 3,
        "riskLevelLabel": "Pas de risque",
        "targetId": 2,
        "targetLabel": "Septoriose"
      },
      {
        "isTargetInTest": false,
        "numberOfDays": 0,
        "riskLevelId": 3,
        "riskLevelLabel": "Pas de risque",
        "targetId": 3,
        "targetLabel": "Rouille brune"
      },
      {
        "isTargetInTest": false,
        "numberOfDays": 0,
        "riskLevelId": 3,
        "riskLevelLabel": "Pas de risque",
        "targetId": 4,
        "targetLabel": "Rouille jaune"
      },
      {
        "isTargetInTest": false,
        "numberOfDays": 0,
        "riskLevelId": 3,
        "riskLevelLabel": "Pas de risque",
        "targetId": 6,
        "targetLabel": "Oïdium"
      },
      {
        "isTargetInTest": true,
        "numberOfDays": 0,
        "riskLevelId": 3,
        "riskLevelLabel": "Pas de risque",
        "targetId": 7,
        "targetLabel": "Fusariose"
      }
    ]
  },
  {
    "cropId": 117,
    "cropLabel": "COMPLICE",
    "fieldId": 1550,
    "fieldName": "Roussillon",
    "groupId": 2,
    "groupLabel": "Blé tendre",
    "localization": {
      "latitude": 47.0027,
      "longitude": 2.86011
    },
    "missingObservations": 0,
    "stageId": 0,
    "stageLabel": "Période pertinente non atteinte",
    "surface": 12.5,
    "targets": [
      {
        "isTargetInTest": true,
        "numberOfDays": 0,
        "riskLevelId": 3,
        "riskLevelLabel": "Pas de risque",
        "targetId": 1,
        "targetLabel": "Piétin-verse"
      },
      {
        "isTargetInTest": false,
        "numberOfDays": 0,
        "riskLevelId": 3,
        "riskLevelLabel": "Pas de risque",
        "targetId": 2,
        "targetLabel": "Septoriose"
      },
      {
        "isTargetInTest": false,
        "numberOfDays": 0,
        "riskLevelId": 3,
        "riskLevelLabel": "Pas de risque",
        "targetId": 3,
        "targetLabel": "Rouille brune"
      },
      {
        "isTargetInTest": false,
        "numberOfDays": 0,
        "riskLevelId": 3,
        "riskLevelLabel": "Pas de risque",
        "targetId": 4,
        "targetLabel": "Rouille jaune"
      },
      {
        "isTargetInTest": false,
        "numberOfDays": 0,
        "riskLevelId": 3,
        "riskLevelLabel": "Pas de risque",
        "targetId": 6,
        "targetLabel": "Oïdium"
      },
      {
        "isTargetInTest": true,
        "numberOfDays": 0,
        "riskLevelId": 3,
        "riskLevelLabel": "Pas de risque",
        "targetId": 7,
        "targetLabel": "Fusariose"
      }
    ]
  },
  {
    "cropId": 342,
    "cropLabel": "NEMO",
    "fieldId": 1551,
    "fieldName": "Champ de devant",
    "groupId": 2,
    "groupLabel": "Blé tendre",
    "localization": {
      "latitude": 47.035,
      "longitude": 2.91967
    },
    "missingObservations": 0,
    "stageId": 0,
    "stageLabel": "Période pertinente non atteinte",
    "surface": 6,
    "targets": [
      {
        "isTargetInTest": true,
        "numberOfDays": 0,
        "riskLevelId": 3,
        "riskLevelLabel": "Pas de risque",
        "targetId": 1,
        "targetLabel": "Piétin-verse"
      },
      {
        "isTargetInTest": false,
        "numberOfDays": 0,
        "riskLevelId": 3,
        "riskLevelLabel": "Pas de risque",
        "targetId": 2,
        "targetLabel": "Septoriose"
      },
      {
        "isTargetInTest": false,
        "numberOfDays": 0,
        "riskLevelId": 3,
        "riskLevelLabel": "Pas de risque",
        "targetId": 3,
        "targetLabel": "Rouille brune"
      },
      {
        "isTargetInTest": false,
        "numberOfDays": 0,
        "riskLevelId": 3,
        "riskLevelLabel": "Pas de risque",
        "targetId": 4,
        "targetLabel": "Rouille jaune"
      },
      {
        "isTargetInTest": false,
        "numberOfDays": 0,
        "riskLevelId": 3,
        "riskLevelLabel": "Pas de risque",
        "targetId": 6,
        "targetLabel": "Oïdium"
      },
      {
        "isTargetInTest": true,
        "numberOfDays": 0,
        "riskLevelId": 3,
        "riskLevelLabel": "Pas de risque",
        "targetId": 7,
        "targetLabel": "Fusariose"
      }
    ]
  }
]