Validations history

Validation #829

Success

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

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "DefaultCLLocation_2374": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "latitude": {
          "type": "number"
        },
        "longitude": {
          "type": "number"
        }
      },
      "required": [
        "latitude",
        "longitude"
      ],
      "title": "CLLocation - DefaultCLLocation",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "visits": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "arrival_date": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "coordinates": {
            "$ref": "#/definitions/DefaultCLLocation_2374",
            "type": "object"
          },
          "departure_date": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "horizontal_accuracy": {
            "type": "number"
          }
        },
        "required": [
          "arrival_date",
          "coordinates",
          "departure_date",
          "horizontal_accuracy"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "visits"
  ],
  "title": "CLVisit - DefaultCLVisit",
  "type": "object"
}

JSON instance

{
  "visits": [
    {
      "arrival_date": null,
      "coordinates": {
        "latitude": 21858192.238197386,
        "longitude": -11738594.629830733
      },
      "departure_date": null,
      "horizontal_accuracy": 63809406.82199672
    },
    {
      "arrival_date": "1941-02-13T22:59:17.235Z",
      "coordinates": {
        "latitude": 24303854.13935548,
        "longitude": 82342277.85843703
      },
      "departure_date": "1949-11-01T06:54:51.036Z",
      "horizontal_accuracy": -51728703.628831066
    }
  ]
}

Validation #828

Success

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

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "DefaultAttachment_1090": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "url": {
          "anyOf": [
            {
              "format": "uri",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "url"
      ],
      "title": "Attachment - DefaultAttachment",
      "type": "object"
    }
  },
  "properties": {
    "credit": {
      "additionalProperties": false,
      "properties": {
        "custom_amount": {
          "anyOf": [
            {
              "pattern": "(^[+-]?(?:0|[1-9]\\d*)(?:\\.(?:\\d*[1-9]|0))?)$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "handmade": {
          "anyOf": [
            {
              "$ref": "#/definitions/DefaultAttachment_1090",
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "paid": {
          "type": "boolean"
        },
        "parent_bill_id": {
          "anyOf": [
            {
              "minimum": 1,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "reference": {
          "type": "string"
        },
        "sent": {
          "type": "boolean"
        }
      },
      "required": [
        "custom_amount",
        "handmade",
        "paid",
        "parent_bill_id",
        "sent"
      ],
      "type": "object"
    }
  },
  "required": [
    "credit"
  ],
  "title": "Bill - UpdateCreditRequest",
  "type": "object"
}

JSON instance

{
  "credit": {
    "custom_amount": "-0",
    "handmade": null,
    "paid": true,
    "parent_bill_id": 33846518,
    "sent": true
  }
}

Validation #827

Failure

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

  • The property '#/' did not contain a required property of 'workOperations' in schema f7f9232d-0f17-57cf-bbe4-066af4609398

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": {
        "position": {
          "type": "integer"
        },
        "stageDate": {
          "type": "string"
        },
        "stageDescription": {
          "type": "string"
        },
        "stageId": {
          "type": "integer"
        },
        "stageLabel": {
          "type": "string"
        },
        "stagePictureURL": {
          "type": "string"
        },
        "stageType": {
          "type": "integer"
        }
      },
      "required": [
        "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": "2020-03-16T21:55:32.263",
  "cityCode": "CY_FR_70122",
  "cityName": "CHAMPLITTE",
  "countryCode": "FR",
  "cropId": 107,
  "cropLabel": "CHEVIGNON",
  "currentDayRisks": {
    "globalRiskLevel": 0,
    "globalRiskLevelLabel": "Pas de risque",
    "globalRiskPictureURL": "https://sflapifarmidevhsto-cdn.azureedge.net/plantsimages-rec/374B3379F01F48672C19F7EE95DC3C8F.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": 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": 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": "Pas de risque",
        "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": [
          {
            "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  (* modélisaiton en test)",
        "targetId": 7,
        "targetLabel": "Fusariose"
      }
    ]
  },
  "farmId": 1,
  "fieldId": 1,
  "fieldName": "Test",
  "groupId": 2,
  "groupLabel": "Blé tendre",
  "localization": {
    "latitude": 47.68284,
    "longitude": 5.53265
  },
  "missingObservations": 0,
  "nextDaysRisks": [
    {
      "globalRiskLevel": 0,
      "globalRiskLevelLabel": "Pas de risque",
      "globalRiskPictureURL": "https://sflapifarmidevhsto-cdn.azureedge.net/plantsimages-rec/374B3379F01F48672C19F7EE95DC3C8F.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": 1,
          "organRiskLevelLabel": "Maladie en progression, symptômes non visibles, …"
        }
      ],
      "targets": [
        {
          "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": 1,
              "organRiskLevelLabel": "Contaminé (incubation)"
            }
          ],
          "plantAlertLevel": 0,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "Pas de risque",
          "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": 1,
              "organRiskLevelLabel": "Contaminé (incubation)"
            }
          ],
          "plantAlertLevel": 0,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "Pas de risque",
          "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": 1,
              "organRiskLevelLabel": "Contaminé (incubation)"
            }
          ],
          "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": 1,
              "organRiskLevelLabel": "Contaminé (incubation)"
            }
          ],
          "plantAlertLevel": 0,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "Période pertinente non atteinte",
          "targetId": 6,
          "targetLabel": "Oïdium"
        },
        {
          "isTargetInTest": true,
          "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": 1,
              "organRiskLevelLabel": "Contaminé (incubation)"
            }
          ],
          "plantAlertLevel": 3,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période d'intervention  (* modélisaiton en test)",
          "targetId": 7,
          "targetLabel": "Fusariose"
        }
      ]
    }
  ],
  "ploughed": "Non labour",
  "predictionDate": "2020-03-17T00:00:00",
  "predictionModelLabel": "Simulation agroclimatique",
  "previousCropId": 555,
  "previousCropLabel": "Tournesol",
  "soilTextureId": 10,
  "soilTextureLabel": "Argile calcaire",
  "sowingDate": "2019-11-03T00:00:00",
  "stages": [
    {
      "position": 0,
      "stageDate": "2020-01-13T00: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. Pour l'observer : - Isoler le maitre-brin de chaque plante arrachée et éliminer les talles.  - Couper les racines à la base de la tige.  - Fendre la base de la tige avec une lame de couteau dans le sens de la longueur  - Mesurer la distance entre le sommet de l'épi et la base du plateau de tallage",
      "stageId": 2285,
      "stageLabel": "Epi 1 cm, début montaison",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH30_EPI1CM.jpg",
      "stageType": 1
    },
    {
      "position": 1,
      "stageDate": "2020-02-13T00: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.  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": 1
    },
    {
      "position": 2,
      "stageDate": "2020-03-13T00:00:00",
      "stageDescription": "Les deux premiers nœuds sont bien visibles à la base de la tige quand on atteint 2 nœuds   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": 1
    },
    {
      "position": 3,
      "stageDate": "2020-03-17T00:00:00",
      "stageDescription": "La dernière feuille est visible mais encore enroulée.  ",
      "stageId": 2292,
      "stageLabel": "Dernière feuille visible",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH37_DERNIERE_FEUILLE_POINTANTE.jpg",
      "stageType": 1
    },
    {
      "position": 4,
      "stageDate": "2020-05-01T00: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": 5,
      "stageDate": "2020-05-23T00: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.  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": 6,
      "stageDate": "2020-05-29T00:00:00",
      "stageDescription": "La floraison se caractérise par l'apparition des étamines hors des épillets.   C'est la fin de la montaison, la croissance des tiges est terminée.   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": 7,
      "stageDate": "2020-07-07T00:00:00",
      "stageDescription": "",
      "stageId": 2324,
      "stageLabel": "Maturation complète",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH89_MATURITECOMPLETE.png",
      "stageType": 0
    }
  ],
  "surface": 5,
  "yieldPotential": "de 60 à 70 q/ha"
}

Validation #826

Failure

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

  • The property '#/nextDaysRisks' of type object did not match the following type: array in schema f7f9232d-0f17-57cf-bbe4-066af4609398
  • The property '#/' did not contain a required property of 'workOperations' in schema f7f9232d-0f17-57cf-bbe4-066af4609398

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": {
        "position": {
          "type": "integer"
        },
        "stageDate": {
          "type": "string"
        },
        "stageDescription": {
          "type": "string"
        },
        "stageId": {
          "type": "integer"
        },
        "stageLabel": {
          "type": "string"
        },
        "stagePictureURL": {
          "type": "string"
        },
        "stageType": {
          "type": "integer"
        }
      },
      "required": [
        "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": "2020-03-16T21:55:32.263",
  "cityCode": "CY_FR_70122",
  "cityName": "CHAMPLITTE",
  "countryCode": "FR",
  "cropId": 107,
  "cropLabel": "CHEVIGNON",
  "currentDayRisks": {
    "globalRiskLevel": 0,
    "globalRiskLevelLabel": "Pas de risque",
    "globalRiskPictureURL": "https://sflapifarmidevhsto-cdn.azureedge.net/plantsimages-rec/374B3379F01F48672C19F7EE95DC3C8F.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": 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": 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": "Pas de risque",
        "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": [
          {
            "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  (* modélisaiton en test)",
        "targetId": 7,
        "targetLabel": "Fusariose"
      }
    ]
  },
  "farmId": 1,
  "fieldId": 1,
  "fieldName": "Test",
  "groupId": 2,
  "groupLabel": "Blé tendre",
  "localization": {
    "latitude": 47.68284,
    "longitude": 5.53265
  },
  "missingObservations": 0,
  "nextDaysRisks": {
    "globalRiskLevel": 0,
    "globalRiskLevelLabel": "Pas de risque",
    "globalRiskPictureURL": "https://sflapifarmidevhsto-cdn.azureedge.net/plantsimages-rec/374B3379F01F48672C19F7EE95DC3C8F.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": 1,
        "organRiskLevelLabel": "Maladie en progression, symptômes non visibles, …"
      }
    ],
    "targets": [
      {
        "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": 1,
            "organRiskLevelLabel": "Contaminé (incubation)"
          }
        ],
        "plantAlertLevel": 0,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "Pas de risque",
        "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": 1,
            "organRiskLevelLabel": "Contaminé (incubation)"
          }
        ],
        "plantAlertLevel": 0,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "Pas de risque",
        "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": 1,
            "organRiskLevelLabel": "Contaminé (incubation)"
          }
        ],
        "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": 1,
            "organRiskLevelLabel": "Contaminé (incubation)"
          }
        ],
        "plantAlertLevel": 0,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "Période pertinente non atteinte",
        "targetId": 6,
        "targetLabel": "Oïdium"
      },
      {
        "isTargetInTest": true,
        "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": 1,
            "organRiskLevelLabel": "Contaminé (incubation)"
          }
        ],
        "plantAlertLevel": 3,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période d'intervention  (* modélisaiton en test)",
        "targetId": 7,
        "targetLabel": "Fusariose"
      }
    ]
  },
  "ploughed": "Non labour",
  "predictionDate": "2020-03-17T00:00:00",
  "predictionModelLabel": "Simulation agroclimatique",
  "previousCropId": 555,
  "previousCropLabel": "Tournesol",
  "soilTextureId": 10,
  "soilTextureLabel": "Argile calcaire",
  "sowingDate": "2019-11-03T00:00:00",
  "stages": [
    {
      "position": 0,
      "stageDate": "2020-01-13T00: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. Pour l'observer : - Isoler le maitre-brin de chaque plante arrachée et éliminer les talles.  - Couper les racines à la base de la tige.  - Fendre la base de la tige avec une lame de couteau dans le sens de la longueur  - Mesurer la distance entre le sommet de l'épi et la base du plateau de tallage",
      "stageId": 2285,
      "stageLabel": "Epi 1 cm, début montaison",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH30_EPI1CM.jpg",
      "stageType": 1
    },
    {
      "position": 1,
      "stageDate": "2020-02-13T00: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.  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": 1
    },
    {
      "position": 2,
      "stageDate": "2020-03-13T00:00:00",
      "stageDescription": "Les deux premiers nœuds sont bien visibles à la base de la tige quand on atteint 2 nœuds   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": 1
    },
    {
      "position": 3,
      "stageDate": "2020-03-17T00:00:00",
      "stageDescription": "La dernière feuille est visible mais encore enroulée.  ",
      "stageId": 2292,
      "stageLabel": "Dernière feuille visible",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH37_DERNIERE_FEUILLE_POINTANTE.jpg",
      "stageType": 1
    },
    {
      "position": 4,
      "stageDate": "2020-05-01T00: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": 5,
      "stageDate": "2020-05-23T00: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.  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": 6,
      "stageDate": "2020-05-29T00:00:00",
      "stageDescription": "La floraison se caractérise par l'apparition des étamines hors des épillets.   C'est la fin de la montaison, la croissance des tiges est terminée.   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": 7,
      "stageDate": "2020-07-07T00:00:00",
      "stageDescription": "",
      "stageId": 2324,
      "stageLabel": "Maturation complète",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH89_MATURITECOMPLETE.png",
      "stageType": 0
    }
  ],
  "surface": 5,
  "yieldPotential": "de 60 à 70 q/ha"
}

Validation #825

Failure

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

  • The property '#/nextDaysRisks' of type object did not match the following type: array in schema f7f9232d-0f17-57cf-bbe4-066af4609398
  • The property '#/' did not contain a required property of 'workOperations' in schema f7f9232d-0f17-57cf-bbe4-066af4609398

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": {
        "position": {
          "type": "integer"
        },
        "stageDate": {
          "type": "string"
        },
        "stageDescription": {
          "type": "string"
        },
        "stageId": {
          "type": "integer"
        },
        "stageLabel": {
          "type": "string"
        },
        "stagePictureURL": {
          "type": "string"
        },
        "stageType": {
          "type": "integer"
        }
      },
      "required": [
        "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": "2020-03-16T21:55:32.263",
  "cityCode": "CY_FR_70122",
  "cityName": "CHAMPLITTE",
  "countryCode": "FR",
  "cropId": 107,
  "cropLabel": "CHEVIGNON",
  "currentDayRisks": {
    "globalRiskLevel": 0,
    "globalRiskLevelLabel": "Pas de risque",
    "globalRiskPictureURL": "https://sflapifarmidevhsto-cdn.azureedge.net/plantsimages-rec/374B3379F01F48672C19F7EE95DC3C8F.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": 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": 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": "Pas de risque",
        "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": [
          {
            "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  (* modélisaiton en test)",
        "targetId": 7,
        "targetLabel": "Fusariose"
      }
    ]
  },
  "farmId": 1,
  "fieldId": 1,
  "fieldName": "Test",
  "groupId": 2,
  "groupLabel": "Blé tendre",
  "localization": {
    "latitude": 47.68284,
    "longitude": 5.53265
  },
  "missingObservations": 0,
  "nextDaysRisks": {
    "globalRiskLevel": 0,
    "globalRiskLevelLabel": "Pas de risque",
    "globalRiskPictureURL": "https://sflapifarmidevhsto-cdn.azureedge.net/plantsimages-rec/374B3379F01F48672C19F7EE95DC3C8F.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": 1,
        "organRiskLevelLabel": "Maladie en progression, symptômes non visibles, …"
      }
    ],
    "targets": [
      {
        "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": 1,
            "organRiskLevelLabel": "Contaminé (incubation)"
          }
        ],
        "plantAlertLevel": 0,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "Pas de risque",
        "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": 1,
            "organRiskLevelLabel": "Contaminé (incubation)"
          }
        ],
        "plantAlertLevel": 0,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "Pas de risque",
        "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": 1,
            "organRiskLevelLabel": "Contaminé (incubation)"
          }
        ],
        "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": 1,
            "organRiskLevelLabel": "Contaminé (incubation)"
          }
        ],
        "plantAlertLevel": 0,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "Période pertinente non atteinte",
        "targetId": 6,
        "targetLabel": "Oïdium"
      },
      {
        "isTargetInTest": true,
        "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": 1,
            "organRiskLevelLabel": "Contaminé (incubation)"
          }
        ],
        "plantAlertLevel": 3,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période d'intervention  (* modélisaiton en test)",
        "targetId": 7,
        "targetLabel": "Fusariose"
      }
    ]
  },
  "ploughed": "Non labour",
  "predictionDate": "2020-03-17T00:00:00",
  "predictionModelLabel": "Simulation agroclimatique",
  "previousCropId": 555,
  "previousCropLabel": "Tournesol",
  "soilTextureId": 10,
  "soilTextureLabel": "Argile calcaire",
  "sowingDate": "2019-11-03T00:00:00",
  "stages": [
    {
      "position": 0,
      "stageDate": "2020-01-13T00: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. Pour l'observer : - Isoler le maitre-brin de chaque plante arrachée et éliminer les talles.  - Couper les racines à la base de la tige.  - Fendre la base de la tige avec une lame de couteau dans le sens de la longueur  - Mesurer la distance entre le sommet de l'épi et la base du plateau de tallage",
      "stageId": 2285,
      "stageLabel": "Epi 1 cm, début montaison",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH30_EPI1CM.jpg",
      "stageType": 1
    },
    {
      "position": 1,
      "stageDate": "2020-02-13T00: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.  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": 1
    },
    {
      "position": 2,
      "stageDate": "2020-03-13T00:00:00",
      "stageDescription": "Les deux premiers nœuds sont bien visibles à la base de la tige quand on atteint 2 nœuds   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": 1
    },
    {
      "position": 3,
      "stageDate": "2020-03-17T00:00:00",
      "stageDescription": "La dernière feuille est visible mais encore enroulée.  ",
      "stageId": 2292,
      "stageLabel": "Dernière feuille visible",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH37_DERNIERE_FEUILLE_POINTANTE.jpg",
      "stageType": 1
    },
    {
      "position": 4,
      "stageDate": "2020-05-01T00: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": 5,
      "stageDate": "2020-05-23T00: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.  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": 6,
      "stageDate": "2020-05-29T00:00:00",
      "stageDescription": "La floraison se caractérise par l'apparition des étamines hors des épillets.   C'est la fin de la montaison, la croissance des tiges est terminée.   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": 7,
      "stageDate": "2020-07-07T00:00:00",
      "stageDescription": "",
      "stageId": 2324,
      "stageLabel": "Maturation complète",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH89_MATURITECOMPLETE.png",
      "stageType": 0
    }
  ],
  "surface": 5,
  "yieldPotential": "de 60 à 70 q/ha"
}

Validation #824

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": {
        "position": {
          "type": "integer"
        },
        "stageDate": {
          "type": "string"
        },
        "stageDescription": {
          "type": "string"
        },
        "stageId": {
          "type": "integer"
        },
        "stageLabel": {
          "type": "string"
        },
        "stagePictureURL": {
          "type": "string"
        },
        "stageType": {
          "type": "integer"
        }
      },
      "required": [
        "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": 13992769,
  "antePreviousCropLabel": "sint",
  "calculationDate": "dolor",
  "cityCode": "esse dolore fugiat sunt in",
  "countryCode": "aliquip aliqua dolore",
  "cropId": -71149530,
  "cropLabel": "ut a",
  "currentDayRisks": {
    "globalRiskLevelLabel": "qui aliquip",
    "targets": [
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": -52742569,
            "organLabel": "in aliq",
            "organRiskLevel": -77243975,
            "organRiskLevelLabel": "officia in esse quis cillum"
          },
          {
            "organId": -9098245,
            "organLabel": "ullamco nulla occaecat laboris",
            "organRiskLevel": 58226773,
            "organRiskLevelLabel": "ad in reprehenderit ut"
          },
          {
            "organId": 4787230,
            "organLabel": "fugiat amet",
            "organRiskLevel": -50357596,
            "organRiskLevelLabel": "do"
          },
          {
            "organId": 67883920,
            "organLabel": "dolore in",
            "organRiskLevel": 39644385,
            "organRiskLevelLabel": ""
          },
          {
            "organId": -90364162,
            "organLabel": "eu ipsum Duis dolor ad",
            "organRiskLevel": -78167929,
            "organRiskLevelLabel": "ex id consequat"
          }
        ],
        "plantAlertLevel": -62436308,
        "plantAlertLevelLabel": "consequat est enim nulla fugiat",
        "targetId": -61130743,
        "targetLabel": "ea incididunt ullamco"
      },
      {
        "isTargetInTest": true,
        "organs": [
          {
            "organId": 64242190,
            "organLabel": "aliquip",
            "organRiskLevel": -65687492,
            "organRiskLevelLabel": "dolore nisi"
          },
          {
            "organId": -88430905,
            "organLabel": "",
            "organRiskLevel": -66115706,
            "organRiskLevelLabel": "adipisicing cillum quis culpa"
          }
        ],
        "plantAlertLevel": -87080868,
        "plantAlertLevelLabel": "cupidatat",
        "targetId": 19023844,
        "targetLabel": "id ut labore"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 28829945,
            "organLabel": "ullamco",
            "organRiskLevel": 66413232,
            "organRiskLevelLabel": "ut cillum sed culpa Lorem"
          },
          {
            "organId": -68745015,
            "organLabel": "exercitation sunt veniam",
            "organRiskLevel": -96938389,
            "organRiskLevelLabel": "officia"
          },
          {
            "organId": 38791897,
            "organLabel": "Excepteur qui officia id ex",
            "organRiskLevel": -89675137,
            "organRiskLevelLabel": "Lorem"
          },
          {
            "organId": 75007232,
            "organLabel": "sit cupidata",
            "organRiskLevel": 96455016,
            "organRiskLevelLabel": "irure"
          }
        ],
        "plantAlertLevel": -62307748,
        "plantAlertLevelLabel": "reprehenderit",
        "targetId": -60119301,
        "targetLabel": "deserunt dolor ad"
      }
    ]
  },
  "farmId": 15987732,
  "fieldId": -18002832,
  "fieldName": "minim pariatur in velit consectetur",
  "groupId": -43712128,
  "groupLabel": "non proident aliquip ut",
  "localization": {
    "latitude": -15491302.450124115,
    "longitude": 30310337.543300882
  },
  "missingObservations": 30247252,
  "nextDaysRisks": [
    {
      "globalRiskLevelLabel": "cupidatat reprehenderit s",
      "targets": [
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": -23218298,
              "organLabel": "ipsum consequat sint tempor",
              "organRiskLevel": 77721479,
              "organRiskLevelLabel": "ut incid"
            },
            {
              "organId": -33071998,
              "organLabel": "deserunt Excepteur",
              "organRiskLevel": -91187989,
              "organRiskLevelLabel": "fugiat ad aute"
            },
            {
              "organId": 73088238,
              "organLabel": "culpa",
              "organRiskLevel": -61799744,
              "organRiskLevelLabel": "ut incididunt"
            },
            {
              "organId": 67546956,
              "organLabel": "o",
              "organRiskLevel": -28942022,
              "organRiskLevelLabel": "proident Excepteur in"
            },
            {
              "organId": 62271702,
              "organLabel": "qui Excepteur aliquip",
              "organRiskLevel": 69717043,
              "organRiskLevelLabel": "nulla do dolor fugiat tempor"
            }
          ],
          "plantAlertLevel": 88342014,
          "plantAlertLevelLabel": "tempor laboris ",
          "targetId": -65700872,
          "targetLabel": "do voluptate dolore "
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": -83743373,
              "organLabel": "veniam aliqua enim in laboris",
              "organRiskLevel": 31557080,
              "organRiskLevelLabel": "Duis ullamco voluptate sed reprehenderi"
            },
            {
              "organId": 86040518,
              "organLabel": "quis Duis sit nostrud",
              "organRiskLevel": -71913217,
              "organRiskLevelLabel": "officia tempor deserunt ea incididunt"
            },
            {
              "organId": 83807269,
              "organLabel": "sint enim cupidatat",
              "organRiskLevel": -19749666,
              "organRiskLevelLabel": "eiusmod voluptate fugiat"
            },
            {
              "organId": -66733899,
              "organLabel": "cillum est veniam officia ex",
              "organRiskLevel": 32372511,
              "organRiskLevelLabel": "nulla"
            },
            {
              "organId": -36060047,
              "organLabel": "ipsum Lorem ea",
              "organRiskLevel": 37482166,
              "organRiskLevelLabel": "sunt laborum nulla sit ut"
            }
          ],
          "plantAlertLevel": -95648353,
          "plantAlertLevelLabel": "proident et magna",
          "targetId": 52072893,
          "targetLabel": "reprehenderit"
        }
      ]
    }
  ],
  "ploughed": "commodo",
  "predictionDate": "sunt deserunt",
  "predictionModelLabel": "labore veniam aliqua laboris occaecat",
  "previousCropId": 59466666,
  "previousCropLabel": "in dolore cupidatat in la",
  "soilTextureId": 23005764,
  "soilTextureLabel": "in aute do nostrud",
  "sowingDate": "est deserunt tempor ut",
  "stages": [
    {
      "position": 5018423,
      "stageDate": "pariatur Duis magna ea est",
      "stageDescription": "id ",
      "stageId": -48139590,
      "stageLabel": "minim elit amet nisi ad",
      "stagePictureURL": "aliquip et nostrud",
      "stageType": 21543633
    },
    {
      "position": 17579165,
      "stageDate": "pariatur eiusmod exercitation dolor",
      "stageDescription": "laboris Duis amet eiusmod voluptate",
      "stageId": 55673216,
      "stageLabel": "laborum nostrud",
      "stagePictureURL": "consectetur id ad dolor",
      "stageType": 54015191
    },
    {
      "position": 64738881,
      "stageDate": "laborum est labore",
      "stageDescription": "qui ad sed dolore",
      "stageId": 78715104,
      "stageLabel": "mollit incididunt in",
      "stagePictureURL": "Lorem",
      "stageType": -74788524
    },
    {
      "position": -33488319,
      "stageDate": "velit ipsum culpa",
      "stageDescription": "labore",
      "stageId": -9366645,
      "stageLabel": "et tempor volupt",
      "stagePictureURL": "aliqui",
      "stageType": 45718167
    },
    {
      "position": -6884805,
      "stageDate": "ullamco pariatur in",
      "stageDescription": "est",
      "stageId": -78070114,
      "stageLabel": "nisi id Lorem non Ut",
      "stagePictureURL": "consectetur",
      "stageType": 34819429
    }
  ],
  "surface": -27941497.68604757,
  "workOperations": [
    {
      "operationDate": "ex",
      "operationId": 40196016,
      "operationsProducts": [
        {
          "productId": 57761104,
          "productLabel": "commodo est enim",
          "quantity": 8188120.500242978,
          "unitCode": "aute ex Excepteur",
          "unitId": 30290961
        },
        {
          "productId": -58351339,
          "productLabel": "cupidatat",
          "quantity": -73928189.13918227,
          "unitCode": "ullamco pariatur proident",
          "unitId": 26191493
        }
      ],
      "workOperationLabel": "in anim",
      "workOperationType": 33878146
    },
    {
      "operationDate": "amet sunt quis",
      "operationId": -59705642,
      "operationsProducts": [
        {
          "productId": -64339793,
          "productLabel": "ut",
          "quantity": -52089545.15376298,
          "unitCode": "nostrud in",
          "unitId": 77569945
        },
        {
          "productId": 99143776,
          "productLabel": "dolore nostrud fugiat in",
          "quantity": -84712233.58666182,
          "unitCode": "est ",
          "unitId": -89268257
        }
      ],
      "workOperationLabel": "adipi",
      "workOperationType": -55887046
    }
  ],
  "yieldPotential": "minim labore v"
}

Validation #823

Success

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

JSON Schema

{
  "description": "Automatically generated (please edit me)",
  "items": {
    "additionalProperties": false,
    "properties": {
      "handle": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "id": {
        "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",
        "type": "string"
      }
    },
    "required": [
      "handle",
      "id"
    ],
    "type": "object"
  },
  "title": "Player - DefaultPlayer",
  "type": "array"
}

JSON instance

[
  {
    "handle": null,
    "id": "0a2f68ae-da56-4d54-b2f5-0db3bc420a7a"
  }
]

Validation #822

Failure

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

  • The property '#/' contains additional properties ["id", "handle"] outside of the schema when none are allowed in schema 2f0bb431-1041-5c3f-a969-b1854b250ebb
  • The property '#/' did not contain a required property of 'players' in schema 2f0bb431-1041-5c3f-a969-b1854b250ebb

JSON Schema

{
  "additionalProperties": false,
  "description": "Automatically generated (please edit me)",
  "properties": {
    "players": {
      "additionalProperties": false,
      "properties": {
        "handle": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",
          "type": "string"
        }
      },
      "required": [
        "handle",
        "id"
      ],
      "type": "object"
    }
  },
  "required": [
    "players"
  ],
  "title": "Player - DefaultPlayer",
  "type": "object"
}

JSON instance

{
  "handle": null,
  "id": "0a2f68ae-da56-4d54-b2f5-0db3bc420a7a"
}

Validation #821

Failure

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

  • The property '#/currentDayRisks' did not contain a required property of 'targets' in schema f7f9232d-0f17-57cf-bbe4-066af4609398#
  • The property '#/nextDaysRisks/0' did not contain a required property of 'targets' in schema f7f9232d-0f17-57cf-bbe4-066af4609398#
  • The property '#/stages/0' contains additional properties ["observationId"] outside of the schema when none are allowed in schema f7f9232d-0f17-57cf-bbe4-066af4609398#
  • The property '#/stages/1' contains additional properties ["observationId"] outside of the schema when none are allowed in schema f7f9232d-0f17-57cf-bbe4-066af4609398#

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": {
        "position": {
          "type": "integer"
        },
        "stageDate": {
          "type": "string"
        },
        "stageDescription": {
          "type": "string"
        },
        "stageId": {
          "type": "integer"
        },
        "stageLabel": {
          "type": "string"
        },
        "stagePictureURL": {
          "type": "string"
        },
        "stageType": {
          "type": "integer"
        }
      },
      "required": [
        "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": "2020-03-09T08:54:01.367",
  "cityCode": "CY_FR_10437",
  "countryCode": "FR",
  "cropId": 117,
  "cropLabel": "COMPLICE",
  "currentDayRisks": {
    "globalRiskLevelLabel": "Hors période",
    "globalRiskPictureURL": "https://sflapifarmidevhsto-cdn.azureedge.net/plantsimages/51670C43B43CE8A0A16A7972B88F77E9.png",
    "organs": []
  },
  "farmId": 16,
  "fieldId": 41,
  "fieldName": "Piéce aux tuillots",
  "groupId": 2,
  "groupLabel": "Blé tendre",
  "localization": {
    "latitude": 48.116,
    "longitude": 4.3325
  },
  "missingObservations": 0,
  "nextDaysRisks": [
    {
      "globalRiskLevelLabel": "Hors période",
      "organs": []
    }
  ],
  "ploughed": "Non labour",
  "predictionDate": "2020-05-20T00:00:00",
  "predictionModelLabel": "Simulation agroclimatique",
  "previousCropId": 542,
  "previousCropLabel": "Colza",
  "soilTextureId": 10,
  "soilTextureLabel": "Argile calcaire",
  "sowingDate": "2019-10-16T00:00:00",
  "stages": [
    {
      "observationId": 259938,
      "position": -3,
      "stageDate": "2020-05-05T00: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. Pour l'observer :  - Isoler le maitre-brin de chaque plante arrachée et éliminer les talles. - Couper les racines à la base de la tige. - Fendre la base de la tige avec une lame de couteau dans le sens de la longueur - Mesurer la distance entre le sommet de l'épi et la base du plateau de tallage",
      "stageId": 2285,
      "stageLabel": "Epi 1 cm, début montaison",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH30_EPI1CM.jpg",
      "stageType": 1
    },
    {
      "observationId": 259936,
      "position": -2,
      "stageDate": "2020-04-04T00: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. 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": 1
    },
    {
      "position": -1,
      "stageDate": "2020-04-19T00:00:00",
      "stageDescription": "Les deux premiers nœuds sont bien visibles à la base de la tige quand on atteint 2 nœuds  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": 0,
      "stageDate": "2020-04-26T00:00:00",
      "stageDescription": "La dernière feuille est visible mais encore enroulée.",
      "stageId": 2292,
      "stageLabel": "Dernière feuille visible",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH37_DERNIERE_FEUILLE_POINTANTE.jpg",
      "stageType": 0
    },
    {
      "position": 1,
      "stageDate": "2020-05-01T00: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": 2,
      "stageDate": "2020-05-22T00: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. 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": 3,
      "stageDate": "2020-07-07T00:00:00",
      "stageDescription": "",
      "stageId": 2324,
      "stageLabel": "Maturation complète",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH89_MATURITECOMPLETE.png",
      "stageType": 0
    }
  ],
  "surface": 5.48,
  "workOperations": [
    {
      "operationDate": "2019-03-03T00:00:00",
      "operationId": 159,
      "operationsProducts": [
        {
          "productId": 29,
          "productLabel": "AMISTAR",
          "quantity": 2,
          "unitCode": "l/ha",
          "unitId": 20
        }
      ],
      "workOperationLabel": "Application fongicide",
      "workOperationType": 9
    }
  ],
  "yieldPotential": "Non disponible"
}

Validation #820

Failure

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

  • The property '#/' contains additional properties ["farmId", "surface", "cropId", "cropLabel", "stageId", "stageLabel", "missingObservations"] outside of the schema when none are allowed in schema fe73b6f2-754c-578c-a584-faf78b212a26

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "DefaultFungicideDayForecast_2277": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "predictionDate": {
          "format": "date",
          "type": "string"
        },
        "riskLevelId": {
          "maximum": 3,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "predictionDate",
        "riskLevelId"
      ],
      "title": "FungicideDayForecast - DefaultFungicideDayForecast",
      "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"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "cityCode": {
      "type": "string"
    },
    "cityName": {
      "type": "string"
    },
    "fieldId": {
      "type": "integer"
    },
    "fieldName": {
      "type": "string"
    },
    "forecasts": {
      "items": {
        "$ref": "#/definitions/DefaultFungicideDayForecast_2277",
        "type": "object"
      },
      "type": "array"
    },
    "localization": {
      "$ref": "#/definitions/DefaultLocalization_2210",
      "type": "object"
    }
  },
  "required": [
    "cityCode",
    "fieldId",
    "fieldName",
    "forecasts",
    "localization"
  ],
  "title": "FungicideRiskForecast - DefaultFungicideRiskForecast",
  "type": "object"
}

JSON instance

{
  "cityCode": "CY_FR_10437\r\n",
  "cropId": 117,
  "cropLabel": "COMPLICE",
  "farmId": 16,
  "fieldId": 41,
  "fieldName": "Piéce aux tuillots",
  "forecasts": [
    {
      "predictionDate": "2020-03-05",
      "riskLevelId": 3
    },
    {
      "predictionDate": "2020-03-06",
      "riskLevelId": 3
    },
    {
      "predictionDate": "2020-03-07",
      "riskLevelId": 3
    },
    {
      "predictionDate": "2020-03-08",
      "riskLevelId": 3
    },
    {
      "predictionDate": "2020-03-09",
      "riskLevelId": 3
    },
    {
      "predictionDate": "2020-03-10",
      "riskLevelId": 3
    },
    {
      "predictionDate": "2020-03-11",
      "riskLevelId": 3
    },
    {
      "predictionDate": "2020-03-12",
      "riskLevelId": 3
    },
    {
      "predictionDate": "2020-03-13",
      "riskLevelId": 3
    },
    {
      "predictionDate": "2020-03-14",
      "riskLevelId": 3
    },
    {
      "predictionDate": "2020-03-15",
      "riskLevelId": 3
    },
    {
      "predictionDate": "2020-03-16",
      "riskLevelId": 3
    }
  ],
  "localization": {
    "latitude": 48.116,
    "longitude": 4.3325
  },
  "missingObservations": 1,
  "stageId": 70,
  "stageLabel": "GM",
  "surface": 5.48
}