Validations history

Validation #1205

Success

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

JSON Schema

{
  "additionalProperties": false,
  "description": "Automatically generated (please edit me)",
  "properties": {
    "email": {
      "type": "string"
    },
    "password": {
      "type": "string"
    }
  },
  "required": [
    "email",
    "password"
  ],
  "title": "User - DetailedUser",
  "type": "object"
}

JSON instance

{
  "email": "do exercitation sit",
  "password": "proident commodo"
}

Validation #1204

Failure

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

  • The property '#/users/0/color' value "B2CB6c232323" did not match the regex '#[a-fA-F0-9]{6}' in schema 9009db47-ec9d-573e-b741-e012ae1de0e7

JSON Schema

{
  "additionalProperties": false,
  "description": "Automatically generated (please edit me)",
  "properties": {
    "count": {
      "nullable": true,
      "type": "integer"
    },
    "meta": {
      "properties": {
        "current_page": {
          "nullable": true,
          "type": "integer"
        }
      },
      "required": [
        "current_page"
      ],
      "type": "object"
    },
    "total_pages": {
      "nullable": false,
      "type": "integer"
    },
    "users": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "color": {
            "pattern": "#[a-fA-F0-9]{6}",
            "type": "string"
          },
          "first_name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "type": {
            "enum": [
              "manager",
              "employee"
            ],
            "type": "string"
          }
        },
        "required": [
          "color",
          "first_name",
          "id",
          "type"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "users",
    "total_pages",
    "count",
    "meta"
  ],
  "title": "User2 - DefaultUser2",
  "type": "object"
}

JSON instance

{
  "count": -18479660,
  "meta": {
    "current_page": 59936851
  },
  "total_pages": 71669762,
  "users": [
    {
      "color": "B2CB6c232323",
      "first_name": "magna eu",
      "id": "culpa in dolor",
      "type": "employee"
    },
    {
      "color": "#0A4AeD",
      "first_name": "laboris cupidatat consec",
      "id": "in Duis Ut occaecat",
      "type": "employee"
    }
  ]
}

Validation #1203

Success

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

JSON Schema

{
  "additionalProperties": false,
  "description": "Automatically generated (please edit me)",
  "properties": {
    "count": {
      "nullable": true,
      "type": "integer"
    },
    "meta": {
      "properties": {
        "current_page": {
          "nullable": true,
          "type": "integer"
        }
      },
      "required": [
        "current_page"
      ],
      "type": "object"
    },
    "total_pages": {
      "nullable": false,
      "type": "integer"
    },
    "users": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "color": {
            "pattern": "#[a-fA-F0-9]{6}",
            "type": "string"
          },
          "first_name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "type": {
            "enum": [
              "manager",
              "employee"
            ],
            "type": "string"
          }
        },
        "required": [
          "color",
          "first_name",
          "id",
          "type"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "users",
    "total_pages",
    "count",
    "meta"
  ],
  "title": "User2 - DefaultUser2",
  "type": "object"
}

JSON instance

{
  "count": -18479660,
  "meta": {
    "current_page": 59936851
  },
  "total_pages": 71669762,
  "users": [
    {
      "color": "#B2CB6c232323",
      "first_name": "magna eu",
      "id": "culpa in dolor",
      "type": "employee"
    },
    {
      "color": "#0A4AeD",
      "first_name": "laboris cupidatat consec",
      "id": "in Duis Ut occaecat",
      "type": "employee"
    }
  ]
}

Validation #1202

Failure

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

  • The property '#/market/commodities/0/current_prices/11/maturity/id' value "May24" did not match one of the following values: Apr18, Apr19, Apr20, Apr21, Apr22, Apr23, Aug17, Aug18, Aug19, Aug20, Aug21, Aug22, Aug23, Cloture, Dec17, Dec18, Dec19, Dec20, Dec21, Dec22, Dec23, Feb18, Feb19, Feb20, Feb21, Feb22, Feb23, Feb24, Jan18, Jan19, Jan20, Jan21, Jan22, Jan23, Jan24, Jul17, Jul18, Jul19, Jul20, Jul21, Jul22, Jul23, Jun17, Jun18, Jun19, Jun20, Jun21, Jun22, Jun23, Mar18, Mar19, Mar20, Mar21, Mar22, Mar23, Mar24, May17, May18, May19, May20, May21, May22, May23, N/A, Nov17, Nov18, Nov19, Nov20, Nov21, Nov22, Nov23, Oct17, Oct18, Oct19, Oct20, Oct21, Oct22, Oct23, Sep17, Sep18, Sep19, Sep20, Sep21, Sep22, Sep23, Spot in schema a7f51b1b-3274-511c-b293-8514bca900ee#
  • The property '#/market/commodities/0/current_prices/11/maturity/label' of type null did not match the following type: string in schema a7f51b1b-3274-511c-b293-8514bca900ee#

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "CurrentPrice_356": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "currency": {
          "description": "Should be €/t or $/b or ...",
          "type": "string"
        },
        "direction": {
          "maximum": 2,
          "minimum": 0,
          "type": "integer"
        },
        "maturity": {
          "$ref": "#/definitions/DefaultMaturity_355",
          "type": "object"
        },
        "value": {
          "minimum": 0,
          "type": "number"
        },
        "variation": {
          "type": "number"
        }
      },
      "required": [
        "currency",
        "direction",
        "maturity",
        "value",
        "variation"
      ],
      "title": "Price - CurrentPrice",
      "type": "object"
    },
    "DefaultCommodity_357": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "current_prices": {
          "items": {
            "$ref": "#/definitions/CurrentPrice_356",
            "type": "object"
          },
          "type": "array"
        },
        "id": {
          "enum": [
            "CORN",
            "EUR",
            "OIL",
            "RAPESEED",
            "SOYABEAN",
            "WHEAT",
            "WHEATEUR"
          ],
          "type": "string"
        },
        "label": {
          "anyOf": [
            {
              "description": "null when translation is missing",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "current_prices",
        "id",
        "label"
      ],
      "title": "Commodity - DefaultCommodity",
      "type": "object"
    },
    "DefaultMaturity_355": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "id": {
          "enum": [
            "Apr18",
            "Apr19",
            "Apr20",
            "Apr21",
            "Apr22",
            "Apr23",
            "Aug17",
            "Aug18",
            "Aug19",
            "Aug20",
            "Aug21",
            "Aug22",
            "Aug23",
            "Cloture",
            "Dec17",
            "Dec18",
            "Dec19",
            "Dec20",
            "Dec21",
            "Dec22",
            "Dec23",
            "Feb18",
            "Feb19",
            "Feb20",
            "Feb21",
            "Feb22",
            "Feb23",
            "Feb24",
            "Jan18",
            "Jan19",
            "Jan20",
            "Jan21",
            "Jan22",
            "Jan23",
            "Jan24",
            "Jul17",
            "Jul18",
            "Jul19",
            "Jul20",
            "Jul21",
            "Jul22",
            "Jul23",
            "Jun17",
            "Jun18",
            "Jun19",
            "Jun20",
            "Jun21",
            "Jun22",
            "Jun23",
            "Mar18",
            "Mar19",
            "Mar20",
            "Mar21",
            "Mar22",
            "Mar23",
            "Mar24",
            "May17",
            "May18",
            "May19",
            "May20",
            "May21",
            "May22",
            "May23",
            "N/A",
            "Nov17",
            "Nov18",
            "Nov19",
            "Nov20",
            "Nov21",
            "Nov22",
            "Nov23",
            "Oct17",
            "Oct18",
            "Oct19",
            "Oct20",
            "Oct21",
            "Oct22",
            "Oct23",
            "Sep17",
            "Sep18",
            "Sep19",
            "Sep20",
            "Sep21",
            "Sep22",
            "Sep23",
            "Spot"
          ],
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "short_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "label",
        "short_label"
      ],
      "title": "Maturity - DefaultMaturity",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "market": {
      "additionalProperties": false,
      "properties": {
        "commodities": {
          "items": {
            "$ref": "#/definitions/DefaultCommodity_357",
            "type": "object"
          },
          "type": "array"
        },
        "id": {
          "enum": [
            "ENC",
            "CBOT",
            "FX"
          ],
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "last_update": {
          "format": "date-time",
          "type": "string"
        }
      },
      "required": [
        "commodities",
        "id",
        "label",
        "last_update"
      ],
      "type": "object"
    }
  },
  "required": [
    "market"
  ],
  "title": "Market - DefaultMarket",
  "type": "object"
}

JSON instance

{
  "market": {
    "commodities": [
      {
        "current_prices": [
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Sep21",
              "label": "Septembre 21",
              "short_label": "Sept 21"
            },
            "value": 217.75,
            "variation": 1.25
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Dec21",
              "label": "Décembre 21",
              "short_label": "Déc 21"
            },
            "value": 216.75,
            "variation": 1.25
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Mar22",
              "label": "Mars 22",
              "short_label": "Mars 22"
            },
            "value": 217,
            "variation": 1
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "May22",
              "label": "Mai 22",
              "short_label": "Mai 22"
            },
            "value": 218.25,
            "variation": 1.75
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Sep22",
              "label": "Septembre 22",
              "short_label": "Sept 22"
            },
            "value": 204.5,
            "variation": 0.75
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Dec22",
              "label": "Décembre 22",
              "short_label": "Déc 22"
            },
            "value": 205.25,
            "variation": 1
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Mar23",
              "label": "Mars 23",
              "short_label": "Mars 23"
            },
            "value": 205,
            "variation": 2
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "May23",
              "label": "Mai 23",
              "short_label": "Mai 23"
            },
            "value": 205.25,
            "variation": 2
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Sep23",
              "label": "Septembre 23",
              "short_label": "Sept 23"
            },
            "value": 195,
            "variation": 0.5
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Dec23",
              "label": "Décembre 23",
              "short_label": "Déc 23"
            },
            "value": 197,
            "variation": 1.75
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Mar24",
              "label": "Mars 24",
              "short_label": "Mars 24"
            },
            "value": 181.75,
            "variation": 2
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "May24",
              "label": null,
              "short_label": null
            },
            "value": 182.75,
            "variation": 2
          }
        ],
        "id": "WHEAT",
        "label": "Blé 2 Euronext"
      },
      {
        "current_prices": [
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Aug21",
              "label": "Août 21",
              "short_label": "Août 21"
            },
            "value": 543,
            "variation": 1.25
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Nov21",
              "label": "Novembre 21",
              "short_label": "Nov 21"
            },
            "value": 537.25,
            "variation": 1.75
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Feb22",
              "label": "Février 22",
              "short_label": "Fév 22"
            },
            "value": 528.75,
            "variation": 2.5
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "May22",
              "label": "Mai 22",
              "short_label": "Mai 22"
            },
            "value": 525.25,
            "variation": 1.5
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Aug22",
              "label": "Août 22",
              "short_label": "Août 22"
            },
            "value": 446,
            "variation": 0.75
          },
          {
            "currency": "€/t",
            "direction": 0,
            "maturity": {
              "id": "Nov22",
              "label": "Novembre 22",
              "short_label": "Nov 22"
            },
            "value": 440,
            "variation": -5.25
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Feb23",
              "label": "Février 23",
              "short_label": "Fév 23"
            },
            "value": 444.75,
            "variation": 1.25
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "May23",
              "label": "Mai 23",
              "short_label": "Mai 23"
            },
            "value": 437.75,
            "variation": 1.25
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Aug23",
              "label": "Août 23",
              "short_label": "Août 23"
            },
            "value": 437.75,
            "variation": 1.25
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Nov23",
              "label": "Novembre 23",
              "short_label": "Nov 23"
            },
            "value": 437.75,
            "variation": 1.25
          }
        ],
        "id": "RAPESEED",
        "label": "Colza Euronext"
      },
      {
        "current_prices": [
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Aug21",
              "label": "Août 21",
              "short_label": "Août 21"
            },
            "value": 263,
            "variation": 5
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Nov21",
              "label": "Novembre 21",
              "short_label": "Nov 21"
            },
            "value": 215.25,
            "variation": 2.75
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Jan22",
              "label": "Janvier 22",
              "short_label": "Jan 22"
            },
            "value": 216,
            "variation": 2.5
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Mar22",
              "label": "Mars 22",
              "short_label": "Mars 22"
            },
            "value": 215.5,
            "variation": 1
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Jun22",
              "label": "Juin 22",
              "short_label": "Juin 22"
            },
            "value": 215.5,
            "variation": 2.5
          },
          {
            "currency": "€/t",
            "direction": 0,
            "maturity": {
              "id": "Aug22",
              "label": "Août 22",
              "short_label": "Août 22"
            },
            "value": 203.75,
            "variation": -10
          },
          {
            "currency": "€/t",
            "direction": 0,
            "maturity": {
              "id": "Nov22",
              "label": "Novembre 22",
              "short_label": "Nov 22"
            },
            "value": 184.5,
            "variation": -2.75
          },
          {
            "currency": "€/t",
            "direction": 0,
            "maturity": {
              "id": "Mar23",
              "label": "Mars 23",
              "short_label": "Mars 23"
            },
            "value": 212.5,
            "variation": -10
          }
        ],
        "id": "CORN",
        "label": "Maïs Euronext"
      }
    ],
    "id": "ENC",
    "label": "Euronext",
    "last_update": "2021-06-08T12:19:58+00:00"
  }
}

Validation #1201

Failure

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

  • The property '#/' contains additional properties ["market"] outside of the schema when none are allowed in schema e0c205d0-0db9-512f-8020-c5764ad61c5d
  • The property '#/' did not contain a required property of 'commodity' in schema e0c205d0-0db9-512f-8020-c5764ad61c5d

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "CurrentPrice_356": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "currency": {
          "description": "Should be €/t or $/b or ...",
          "type": "string"
        },
        "direction": {
          "maximum": 2,
          "minimum": 0,
          "type": "integer"
        },
        "maturity": {
          "$ref": "#/definitions/DefaultMaturity_355",
          "type": "object"
        },
        "value": {
          "minimum": 0,
          "type": "number"
        },
        "variation": {
          "type": "number"
        }
      },
      "required": [
        "currency",
        "direction",
        "maturity",
        "value",
        "variation"
      ],
      "title": "Price - CurrentPrice",
      "type": "object"
    },
    "DefaultMaturity_355": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "id": {
          "enum": [
            "Apr18",
            "Apr19",
            "Apr20",
            "Apr21",
            "Apr22",
            "Apr23",
            "Aug17",
            "Aug18",
            "Aug19",
            "Aug20",
            "Aug21",
            "Aug22",
            "Aug23",
            "Cloture",
            "Dec17",
            "Dec18",
            "Dec19",
            "Dec20",
            "Dec21",
            "Dec22",
            "Dec23",
            "Feb18",
            "Feb19",
            "Feb20",
            "Feb21",
            "Feb22",
            "Feb23",
            "Feb24",
            "Jan18",
            "Jan19",
            "Jan20",
            "Jan21",
            "Jan22",
            "Jan23",
            "Jan24",
            "Jul17",
            "Jul18",
            "Jul19",
            "Jul20",
            "Jul21",
            "Jul22",
            "Jul23",
            "Jun17",
            "Jun18",
            "Jun19",
            "Jun20",
            "Jun21",
            "Jun22",
            "Jun23",
            "Mar18",
            "Mar19",
            "Mar20",
            "Mar21",
            "Mar22",
            "Mar23",
            "Mar24",
            "May17",
            "May18",
            "May19",
            "May20",
            "May21",
            "May22",
            "May23",
            "N/A",
            "Nov17",
            "Nov18",
            "Nov19",
            "Nov20",
            "Nov21",
            "Nov22",
            "Nov23",
            "Oct17",
            "Oct18",
            "Oct19",
            "Oct20",
            "Oct21",
            "Oct22",
            "Oct23",
            "Sep17",
            "Sep18",
            "Sep19",
            "Sep20",
            "Sep21",
            "Sep22",
            "Sep23",
            "Spot"
          ],
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "short_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "label",
        "short_label"
      ],
      "title": "Maturity - DefaultMaturity",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "commodity": {
      "additionalProperties": false,
      "properties": {
        "current_prices": {
          "items": {
            "$ref": "#/definitions/CurrentPrice_356",
            "type": "object"
          },
          "type": "array"
        },
        "id": {
          "enum": [
            "CORN",
            "EUR",
            "OIL",
            "RAPESEED",
            "SOYABEAN",
            "WHEAT",
            "WHEATEUR"
          ],
          "type": "string"
        },
        "label": {
          "anyOf": [
            {
              "description": "null when translation is missing",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "current_prices",
        "id",
        "label"
      ],
      "type": "object"
    }
  },
  "required": [
    "commodity"
  ],
  "title": "Commodity - DefaultCommodity",
  "type": "object"
}

JSON instance

{
  "market": {
    "commodities": [
      {
        "current_prices": [
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Sep21",
              "label": "Septembre 21",
              "short_label": "Sept 21"
            },
            "value": 217.75,
            "variation": 1.25
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Dec21",
              "label": "Décembre 21",
              "short_label": "Déc 21"
            },
            "value": 216.75,
            "variation": 1.25
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Mar22",
              "label": "Mars 22",
              "short_label": "Mars 22"
            },
            "value": 217,
            "variation": 1
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "May22",
              "label": "Mai 22",
              "short_label": "Mai 22"
            },
            "value": 218.25,
            "variation": 1.75
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Sep22",
              "label": "Septembre 22",
              "short_label": "Sept 22"
            },
            "value": 204.5,
            "variation": 0.75
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Dec22",
              "label": "Décembre 22",
              "short_label": "Déc 22"
            },
            "value": 205.25,
            "variation": 1
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Mar23",
              "label": "Mars 23",
              "short_label": "Mars 23"
            },
            "value": 205,
            "variation": 2
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "May23",
              "label": "Mai 23",
              "short_label": "Mai 23"
            },
            "value": 205.25,
            "variation": 2
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Sep23",
              "label": "Septembre 23",
              "short_label": "Sept 23"
            },
            "value": 195,
            "variation": 0.5
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Dec23",
              "label": "Décembre 23",
              "short_label": "Déc 23"
            },
            "value": 197,
            "variation": 1.75
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Mar24",
              "label": "Mars 24",
              "short_label": "Mars 24"
            },
            "value": 181.75,
            "variation": 2
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "May24",
              "label": null,
              "short_label": null
            },
            "value": 182.75,
            "variation": 2
          }
        ],
        "id": "WHEAT",
        "label": "Blé 2 Euronext"
      },
      {
        "current_prices": [
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Aug21",
              "label": "Août 21",
              "short_label": "Août 21"
            },
            "value": 543,
            "variation": 1.25
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Nov21",
              "label": "Novembre 21",
              "short_label": "Nov 21"
            },
            "value": 537.25,
            "variation": 1.75
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Feb22",
              "label": "Février 22",
              "short_label": "Fév 22"
            },
            "value": 528.75,
            "variation": 2.5
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "May22",
              "label": "Mai 22",
              "short_label": "Mai 22"
            },
            "value": 525.25,
            "variation": 1.5
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Aug22",
              "label": "Août 22",
              "short_label": "Août 22"
            },
            "value": 446,
            "variation": 0.75
          },
          {
            "currency": "€/t",
            "direction": 0,
            "maturity": {
              "id": "Nov22",
              "label": "Novembre 22",
              "short_label": "Nov 22"
            },
            "value": 440,
            "variation": -5.25
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Feb23",
              "label": "Février 23",
              "short_label": "Fév 23"
            },
            "value": 444.75,
            "variation": 1.25
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "May23",
              "label": "Mai 23",
              "short_label": "Mai 23"
            },
            "value": 437.75,
            "variation": 1.25
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Aug23",
              "label": "Août 23",
              "short_label": "Août 23"
            },
            "value": 437.75,
            "variation": 1.25
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Nov23",
              "label": "Novembre 23",
              "short_label": "Nov 23"
            },
            "value": 437.75,
            "variation": 1.25
          }
        ],
        "id": "RAPESEED",
        "label": "Colza Euronext"
      },
      {
        "current_prices": [
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Aug21",
              "label": "Août 21",
              "short_label": "Août 21"
            },
            "value": 263,
            "variation": 5
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Nov21",
              "label": "Novembre 21",
              "short_label": "Nov 21"
            },
            "value": 215.25,
            "variation": 2.75
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Jan22",
              "label": "Janvier 22",
              "short_label": "Jan 22"
            },
            "value": 216,
            "variation": 2.5
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Mar22",
              "label": "Mars 22",
              "short_label": "Mars 22"
            },
            "value": 215.5,
            "variation": 1
          },
          {
            "currency": "€/t",
            "direction": 2,
            "maturity": {
              "id": "Jun22",
              "label": "Juin 22",
              "short_label": "Juin 22"
            },
            "value": 215.5,
            "variation": 2.5
          },
          {
            "currency": "€/t",
            "direction": 0,
            "maturity": {
              "id": "Aug22",
              "label": "Août 22",
              "short_label": "Août 22"
            },
            "value": 203.75,
            "variation": -10
          },
          {
            "currency": "€/t",
            "direction": 0,
            "maturity": {
              "id": "Nov22",
              "label": "Novembre 22",
              "short_label": "Nov 22"
            },
            "value": 184.5,
            "variation": -2.75
          },
          {
            "currency": "€/t",
            "direction": 0,
            "maturity": {
              "id": "Mar23",
              "label": "Mars 23",
              "short_label": "Mars 23"
            },
            "value": 212.5,
            "variation": -10
          }
        ],
        "id": "CORN",
        "label": "Maïs Euronext"
      }
    ],
    "id": "ENC",
    "label": "Euronext",
    "last_update": "2021-06-08T12:19:58+00:00"
  }
}

Validation #1200

Success

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

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "CurrentPrice_356": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "currency": {
          "description": "Should be €/t or $/b or ...",
          "type": "string"
        },
        "direction": {
          "maximum": 2,
          "minimum": 0,
          "type": "integer"
        },
        "maturity": {
          "$ref": "#/definitions/DefaultMaturity_355",
          "type": "object"
        },
        "value": {
          "minimum": 0,
          "type": "number"
        },
        "variation": {
          "type": "number"
        }
      },
      "required": [
        "currency",
        "direction",
        "maturity",
        "value",
        "variation"
      ],
      "title": "Price - CurrentPrice",
      "type": "object"
    },
    "DefaultMaturity_355": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "id": {
          "enum": [
            "Apr18",
            "Apr19",
            "Apr20",
            "Apr21",
            "Apr22",
            "Apr23",
            "Aug17",
            "Aug18",
            "Aug19",
            "Aug20",
            "Aug21",
            "Aug22",
            "Aug23",
            "Cloture",
            "Dec17",
            "Dec18",
            "Dec19",
            "Dec20",
            "Dec21",
            "Dec22",
            "Dec23",
            "Feb18",
            "Feb19",
            "Feb20",
            "Feb21",
            "Feb22",
            "Feb23",
            "Feb24",
            "Jan18",
            "Jan19",
            "Jan20",
            "Jan21",
            "Jan22",
            "Jan23",
            "Jan24",
            "Jul17",
            "Jul18",
            "Jul19",
            "Jul20",
            "Jul21",
            "Jul22",
            "Jul23",
            "Jun17",
            "Jun18",
            "Jun19",
            "Jun20",
            "Jun21",
            "Jun22",
            "Jun23",
            "Mar18",
            "Mar19",
            "Mar20",
            "Mar21",
            "Mar22",
            "Mar23",
            "Mar24",
            "May17",
            "May18",
            "May19",
            "May20",
            "May21",
            "May22",
            "May23",
            "N/A",
            "Nov17",
            "Nov18",
            "Nov19",
            "Nov20",
            "Nov21",
            "Nov22",
            "Nov23",
            "Oct17",
            "Oct18",
            "Oct19",
            "Oct20",
            "Oct21",
            "Oct22",
            "Oct23",
            "Sep17",
            "Sep18",
            "Sep19",
            "Sep20",
            "Sep21",
            "Sep22",
            "Sep23",
            "Spot"
          ],
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "short_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "label",
        "short_label"
      ],
      "title": "Maturity - DefaultMaturity",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "commodity": {
      "additionalProperties": false,
      "properties": {
        "current_prices": {
          "items": {
            "$ref": "#/definitions/CurrentPrice_356",
            "type": "object"
          },
          "type": "array"
        },
        "id": {
          "enum": [
            "CORN",
            "EUR",
            "OIL",
            "RAPESEED",
            "SOYABEAN",
            "WHEAT",
            "WHEATEUR"
          ],
          "type": "string"
        },
        "label": {
          "anyOf": [
            {
              "description": "null when translation is missing",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "current_prices",
        "id",
        "label"
      ],
      "type": "object"
    }
  },
  "required": [
    "commodity"
  ],
  "title": "Commodity - DefaultCommodity",
  "type": "object"
}

JSON instance

{
  "commodity": {
    "current_prices": [
      {
        "currency": "deserunt",
        "direction": 2,
        "maturity": {
          "id": "May21",
          "label": "ea eu sint exercitation dolo",
          "short_label": "in cillum ut deserunt aliqua"
        },
        "value": 80061330.32354146,
        "variation": -56851289.75868019
      },
      {
        "currency": "culpa ut",
        "direction": 2,
        "maturity": {
          "id": "Feb22",
          "label": "ullamco",
          "short_label": "sunt nostrud"
        },
        "value": 52747739.61431663,
        "variation": -55428640.06480763
      },
      {
        "currency": "sunt sed dolor exercitation do",
        "direction": 2,
        "maturity": {
          "id": "May21",
          "label": "eu commodo sunt veniam in",
          "short_label": "aute Lorem deserunt"
        },
        "value": 21168909.622982547,
        "variation": 41244490.082870245
      },
      {
        "currency": "irure cupidatat non sed sint",
        "direction": 2,
        "maturity": {
          "id": "Jan22",
          "label": "consequat in veniam esse",
          "short_label": null
        },
        "value": 55827631.06465225,
        "variation": 7890429.205497533
      },
      {
        "currency": "in",
        "direction": 2,
        "maturity": {
          "id": "May19",
          "label": "officia in elit dolor cillum",
          "short_label": "sed pr"
        },
        "value": 1936283.0405752708,
        "variation": 557220.8729541153
      }
    ],
    "id": "EUR",
    "label": null
  }
}

Validation #1199

Success

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

JSON Schema

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "description": "Generated from Pericles with shasum 03dcf7a56d1d9e451caa3ddbd8c8683ea085cab1",
  "properties": {
    "data": {},
    "errors": {
      "items": {
        "type": "string"
      },
      "minItems": 1,
      "type": "array",
      "uniqueItems": true
    },
    "status": {
      "type": "string"
    }
  },
  "required": [
    "errors"
  ],
  "type": "object"
}

JSON instance

{
  "errors": [
    "eu ad et sed",
    "ullamco in aliquip et proident",
    "Lorem Ut in ipsum"
  ]
}

Validation #1198

Failure

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

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

JSON Schema

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

JSON instance

{
  "antePreviousCropId": 559,
  "antePreviousCropLabel": "Pailles",
  "calculationDate": "2021-05-26T10:56:28",
  "countryCode": "FR",
  "cropId": 39,
  "cropLabel": "ANVERGUR",
  "currentDayRisks": {
    "globalRiskLevel": 1,
    "globalRiskLevelLabel": "Maladie en progression, symptômes non visibles, …",
    "globalRiskPictureURL": "https://static-cf.farmi.com/plantsimages/6E31572FF431FA43C23D75A0F10B2CF7.png",
    "organs": [
      {
        "organId": 2,
        "organLabel": "F1",
        "organRiskLevel": 0,
        "organRiskLevelLabel": "Pas de risque"
      },
      {
        "organId": 3,
        "organLabel": "F2",
        "organRiskLevel": 1,
        "organRiskLevelLabel": "Maladie en progression, symptômes non visibles, …"
      },
      {
        "organId": 4,
        "organLabel": "F3",
        "organRiskLevel": 1,
        "organRiskLevelLabel": "Maladie en progression, symptômes non visibles, …"
      },
      {
        "organId": 5,
        "organLabel": "F4",
        "organRiskLevel": 1,
        "organRiskLevelLabel": "Maladie en progression, symptômes non visibles, …"
      },
      {
        "organId": 6,
        "organLabel": "F5",
        "organRiskLevel": 3,
        "organRiskLevelLabel": "En dehors des stades de traitement pour la maladie concernée"
      }
    ],
    "targets": [
      {
        "isTargetInTest": true,
        "organs": [],
        "plantAlertLevel": 3,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période dintervention",
        "targetId": 1,
        "targetLabel": "Piétin-verse"
      },
      {
        "isTargetInTest": false,
        "organs": [
          {
            "organId": 2,
            "organLabel": "F1",
            "organRiskLevel": 0,
            "organRiskLevelLabel": "Sain"
          },
          {
            "organId": 3,
            "organLabel": "F2",
            "organRiskLevel": 1,
            "organRiskLevelLabel": "Incubation"
          },
          {
            "organId": 4,
            "organLabel": "F3",
            "organRiskLevel": 1,
            "organRiskLevelLabel": "Incubation"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 1,
            "organRiskLevelLabel": "Incubation"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 3,
            "organRiskLevelLabel": "Senescente"
          }
        ],
        "plantAlertLevel": 1,
        "plantAlertLevelLabel": "Maladie en progression, symptômes non visibles, …",
        "targetDescription": "Maladie en progression, symptômes non visibles",
        "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": 1,
            "organRiskLevelLabel": "Incubation"
          },
          {
            "organId": 5,
            "organLabel": "F4",
            "organRiskLevel": 1,
            "organRiskLevelLabel": "Incubation"
          },
          {
            "organId": 6,
            "organLabel": "F5",
            "organRiskLevel": 3,
            "organRiskLevelLabel": "Senescente"
          }
        ],
        "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": 3,
            "organRiskLevelLabel": "Senescente"
          }
        ],
        "plantAlertLevel": 3,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "En dehors de la période dintervention",
        "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": 3,
            "organRiskLevelLabel": "Senescente"
          }
        ],
        "plantAlertLevel": 3,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "Période pertinente non atteinte",
        "targetId": 6,
        "targetLabel": "Oïdium"
      },
      {
        "isTargetInTest": true,
        "organs": [],
        "plantAlertLevel": 0,
        "plantAlertLevelLabel": "Pas de risque",
        "targetDescription": "Pas de risque",
        "targetId": 7,
        "targetLabel": "Fusariose"
      }
    ]
  },
  "farmId": 191,
  "fieldId": 1409,
  "fieldName": "LA VIGNE BRETON",
  "groupId": 1,
  "groupLabel": "Blé dur",
  "localization": {
    "latitude": 46.12916,
    "longitude": -0.71048
  },
  "missingObservations": 0,
  "nextDaysRisks": [
    {
      "globalRiskLevel": 1,
      "globalRiskLevelLabel": "Maladie en progression, symptômes non visibles, …",
      "globalRiskPictureURL": "https://static-cf.farmi.com/plantsimages/6E31572FF431FA43C23D75A0F10B2CF7.png",
      "organs": [
        {
          "organId": 2,
          "organLabel": "F1",
          "organRiskLevel": 1,
          "organRiskLevelLabel": "Maladie en progression, symptômes non visibles, …"
        },
        {
          "organId": 3,
          "organLabel": "F2",
          "organRiskLevel": 1,
          "organRiskLevelLabel": "Maladie en progression, symptômes non visibles, …"
        },
        {
          "organId": 4,
          "organLabel": "F3",
          "organRiskLevel": 1,
          "organRiskLevelLabel": "Maladie en progression, symptômes non visibles, …"
        },
        {
          "organId": 5,
          "organLabel": "F4",
          "organRiskLevel": 1,
          "organRiskLevelLabel": "Maladie en progression, symptômes non visibles, …"
        },
        {
          "organId": 6,
          "organLabel": "F5",
          "organRiskLevel": 3,
          "organRiskLevelLabel": "En dehors des stades de traitement pour la maladie concernée"
        }
      ],
      "targets": [
        {
          "isTargetInTest": true,
          "organs": [],
          "plantAlertLevel": 3,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période dintervention",
          "targetId": 1,
          "targetLabel": "Piétin-verse"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 1,
              "organRiskLevelLabel": "Incubation"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 1,
              "organRiskLevelLabel": "Incubation"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 1,
              "organRiskLevelLabel": "Incubation"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 1,
              "organRiskLevelLabel": "Incubation"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 3,
              "organRiskLevelLabel": "Senescente"
            }
          ],
          "plantAlertLevel": 1,
          "plantAlertLevelLabel": "Maladie en progression, symptômes non visibles, …",
          "targetDescription": "Maladie en progression, symptômes non visibles",
          "targetId": 2,
          "targetLabel": "Septoriose"
        },
        {
          "isTargetInTest": false,
          "organs": [
            {
              "organId": 2,
              "organLabel": "F1",
              "organRiskLevel": 0,
              "organRiskLevelLabel": "Sain"
            },
            {
              "organId": 3,
              "organLabel": "F2",
              "organRiskLevel": 1,
              "organRiskLevelLabel": "Incubation"
            },
            {
              "organId": 4,
              "organLabel": "F3",
              "organRiskLevel": 1,
              "organRiskLevelLabel": "Incubation"
            },
            {
              "organId": 5,
              "organLabel": "F4",
              "organRiskLevel": 1,
              "organRiskLevelLabel": "Incubation"
            },
            {
              "organId": 6,
              "organLabel": "F5",
              "organRiskLevel": 3,
              "organRiskLevelLabel": "Senescente"
            }
          ],
          "plantAlertLevel": 3,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période dintervention",
          "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": 3,
              "organRiskLevelLabel": "Senescente"
            }
          ],
          "plantAlertLevel": 3,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "En dehors de la période dintervention",
          "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": 3,
              "organRiskLevelLabel": "Senescente"
            }
          ],
          "plantAlertLevel": 3,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "Période pertinente non atteinte",
          "targetId": 6,
          "targetLabel": "Oïdium"
        },
        {
          "isTargetInTest": true,
          "organs": [],
          "plantAlertLevel": 0,
          "plantAlertLevelLabel": "Pas de risque",
          "targetDescription": "Pas de risque",
          "targetId": 7,
          "targetLabel": "Fusariose"
        }
      ]
    }
  ],
  "ploughed": "Non labour",
  "predictionDate": "2021-05-26T00:00:00",
  "predictionModelLabel": "Simulation agroclimatique",
  "previousCropId": 550,
  "previousCropLabel": "Pois",
  "soilTextureId": 10,
  "soilTextureLabel": "Argile calcaire",
  "sowingDate": "2020-11-11T00:00:00",
  "stages": [
    {
      "observationId": 273435,
      "position": -7,
      "stageDate": "2021-03-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.\n  Pour l'observer :\n   - Isoler le maitre-brin de chaque plante arrachée et éliminer les talles.\n  - Couper les racines à la base de la tige.\n  - Fendre la base de la tige avec une lame de couteau dans le sens de la longueur\n  - Mesurer la distance entre le sommet de l'épi et la base du plateau de tallage",
      "stageId": 2285,
      "stageLabel": "Épi 1 cm, début montaison",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH30_EPI1CM.jpg",
      "stageType": 1
    },
    {
      "position": -6,
      "stageDate": "2021-03-27T00:00:00",
      "stageDescription": "Il faut l'observer 10 à 15 jours après le stade épi 1cm. Le premier nœud est situé le plus près de la base de la tige.\n  La hauteur entre le sommet de l'épi et le plateau de tallage varie entre 3 à 5 cm.",
      "stageId": 2286,
      "stageLabel": "1er nœud formé",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH31_1NOEUD.jpg",
      "stageType": 0
    },
    {
      "position": -5,
      "stageDate": "2021-04-05T00:00:00",
      "stageDescription": "Les deux premiers nœuds sont bien visibles à la base de la tige quand on atteint 2 nœuds.\n  La hauteur entre le sommet de l'épi et le plateau de tallage varie entre 6 à 12 cm.",
      "stageId": 2287,
      "stageLabel": "2ème nœud formé",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH32_2NOEUD.jpg",
      "stageType": 0
    },
    {
      "position": -4,
      "stageDate": "2021-04-24T00:00:00",
      "stageDescription": "La dernière feuille est visible mais encore enroulée.  ",
      "stageId": 2292,
      "stageLabel": "Dernière feuille pointante",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH37_DERNIERE_FEUILLE_POINTANTE.jpg",
      "stageType": 0
    },
    {
      "position": -3,
      "stageDate": "2021-04-26T00: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": "2021-05-11T00:00:00",
      "stageDescription": "L'épiaison est le stade phénologique qui correspond à l'apparition de l'épi hors de la gaine de la dernière feuille.\n  Le stade mi-épaison correspond à 50 % de l'inflorescence sortie et la gaine est éclatée.",
      "stageId": 2303,
      "stageLabel": "Mi épiaison",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH55_MI_EPIAISON.png",
      "stageType": 0
    },
    {
      "position": -1,
      "stageDate": "2021-05-20T00:00:00",
      "stageDescription": "La floraison se caractérise par l'apparition des étamines hors des épillets.\n C'est la fin de la montaison, la croissance des tiges est terminée.\n L'appréciaiton précise du stade est délicate en raison de la présence des étamines sur les épi longtemps après la floraision.",
      "stageId": 2329,
      "stageLabel": "Floraison",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH60_FLORAISON.png",
      "stageType": 0
    },
    {
      "position": 0,
      "stageDate": "2021-06-29T00:00:00",
      "stageDescription": "",
      "stageId": 2324,
      "stageLabel": "Maturité complète",
      "stagePictureURL": "https://static-cf.farmi.com/cmsoufflet/BLE_BBCH89_MATURITECOMPLETE.png",
      "stageType": 0
    }
  ],
  "surface": 11.67,
  "workOperations": [
    {
      "operationDate": "2021-04-29T00:00:00",
      "operationId": 874,
      "operationsProducts": [
        {
          "productId": 354,
          "productLabel": "OXAR",
          "quantity": 0.42,
          "unitCode": "l/ha",
          "unitId": 20
        },
        {
          "productId": 21641,
          "productLabel": "REVYSTAR XL",
          "quantity": 0.42,
          "unitCode": "l/ha",
          "unitId": 20
        }
      ],
      "workOperationLabel": "Application fongicide",
      "workOperationType": 9
    }
  ],
  "yieldPotential": "de 70 à 80 q/ha"
}

Validation #1197

Failure

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

  • The property '#/contracts/0/fiscal_year' did not have a minimum value of 2019, inclusively in schema f7ee5e08-baab-51b5-8d21-d5d6e309edea
  • The property '#/contracts/0/orgette_price' of type null did not match the following type: number in schema f7ee5e08-baab-51b5-8d21-d5d6e309edea
  • The property '#/contracts/1/fiscal_year' did not have a minimum value of 2019, inclusively in schema f7ee5e08-baab-51b5-8d21-d5d6e309edea
  • The property '#/contracts/1/orgette_price' of type null did not match the following type: number in schema f7ee5e08-baab-51b5-8d21-d5d6e309edea
  • The property '#/contracts/2/fiscal_year' did not have a minimum value of 2019, inclusively in schema f7ee5e08-baab-51b5-8d21-d5d6e309edea
  • The property '#/contracts/2/orgette_price' of type null did not match the following type: number in schema f7ee5e08-baab-51b5-8d21-d5d6e309edea
  • The property '#/contracts/3/deliveries' of type array did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/3/deliveries/3' did not contain a required property of 'variety_name' - The property '#/contracts/3/deliveries/3' did not contain a required property of 'variety' - The property '#/contracts/3/deliveries/3' did not contain a required property of 'contract' - The property '#/contracts/3/deliveries/2' did not contain a required property of 'variety_name' - The property '#/contracts/3/deliveries/2' did not contain a required property of 'variety' - The property '#/contracts/3/deliveries/2' did not contain a required property of 'contract' - The property '#/contracts/3/deliveries/1' did not contain a required property of 'variety_name' - The property '#/contracts/3/deliveries/1' did not contain a required property of 'variety' - The property '#/contracts/3/deliveries/1' did not contain a required property of 'contract' - The property '#/contracts/3/deliveries/0' did not contain a required property of 'variety_name' - The property '#/contracts/3/deliveries/0' did not contain a required property of 'variety' - The property '#/contracts/3/deliveries/0' did not contain a required property of 'contract' - anyOf #1: - The property '#/contracts/3/deliveries' of type array did not match the following type: null
  • The property '#/contracts/3/fiscal_year' did not have a minimum value of 2019, inclusively in schema f7ee5e08-baab-51b5-8d21-d5d6e309edea
  • The property '#/contracts/4/deliveries' of type array did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/4/deliveries/2' did not contain a required property of 'variety_name' - The property '#/contracts/4/deliveries/2' did not contain a required property of 'variety' - The property '#/contracts/4/deliveries/2' did not contain a required property of 'contract' - The property '#/contracts/4/deliveries/1' did not contain a required property of 'variety_name' - The property '#/contracts/4/deliveries/1' did not contain a required property of 'variety' - The property '#/contracts/4/deliveries/1' did not contain a required property of 'contract' - The property '#/contracts/4/deliveries/0' did not contain a required property of 'variety_name' - The property '#/contracts/4/deliveries/0' did not contain a required property of 'variety' - The property '#/contracts/4/deliveries/0' did not contain a required property of 'contract' - anyOf #1: - The property '#/contracts/4/deliveries' of type array did not match the following type: null
  • The property '#/contracts/4/fiscal_year' did not have a minimum value of 2019, inclusively in schema f7ee5e08-baab-51b5-8d21-d5d6e309edea
  • The property '#/contracts/5/fiscal_year' did not have a minimum value of 2019, inclusively in schema f7ee5e08-baab-51b5-8d21-d5d6e309edea
  • The property '#/contracts/6/fiscal_year' did not have a minimum value of 2019, inclusively in schema f7ee5e08-baab-51b5-8d21-d5d6e309edea
  • The property '#/contracts/7/fiscal_year' did not have a minimum value of 2019, inclusively in schema f7ee5e08-baab-51b5-8d21-d5d6e309edea
  • The property '#/contracts/8/fiscal_year' did not have a minimum value of 2019, inclusively in schema f7ee5e08-baab-51b5-8d21-d5d6e309edea
  • The property '#/contracts/9/fiscal_year' did not have a minimum value of 2019, inclusively in schema f7ee5e08-baab-51b5-8d21-d5d6e309edea
  • The property '#/contracts/10/fiscal_year' did not have a minimum value of 2019, inclusively in schema f7ee5e08-baab-51b5-8d21-d5d6e309edea
  • The property '#/contracts/11/fiscal_year' did not have a minimum value of 2019, inclusively in schema f7ee5e08-baab-51b5-8d21-d5d6e309edea
  • The property '#/contracts/12/fiscal_year' did not have a minimum value of 2019, inclusively in schema f7ee5e08-baab-51b5-8d21-d5d6e309edea
  • The property '#/contracts/13/fiscal_year' did not have a minimum value of 2019, inclusively in schema f7ee5e08-baab-51b5-8d21-d5d6e309edea
  • The property '#/contracts/14/fiscal_year' did not have a minimum value of 2019, inclusively in schema f7ee5e08-baab-51b5-8d21-d5d6e309edea

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "DefaultCellVariety_776": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "cell": {
          "type": "string"
        },
        "variety": {
          "type": "string"
        }
      },
      "title": "CellVariety - DefaultCellVariety",
      "type": "object"
    },
    "DefaultContract_546": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "amount_to_deliver": {
          "description": "qteSoldeContrat",
          "minimum": 0,
          "type": "number"
        },
        "closing_date": {
          "description": "backend Data (settlement_price) : closingDate",
          "type": "null"
        },
        "commencement_date": {
          "anyOf": [
            {
              "description": "dateExecDebut",
              "format": "date",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "commodity": {
          "anyOf": [
            {
              "description": "codeContratTerme",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "commodity_id": {
          "anyOf": [
            {
              "description": "backend Data (settlement_price) : sflCommodity",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "contracts": {
          "items": {
            "$ref": "#/definitions/minimalContract_770",
            "type": "object"
          },
          "type": "array"
        },
        "crm_id": {
          "description": "numContratOrigin",
          "type": "string"
        },
        "date": {
          "anyOf": [
            {
              "description": "dateContrat",
              "format": "date",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "delivered_amount": {
          "description": "qteLivreContrat",
          "minimum": 0,
          "type": "number"
        },
        "deliveries": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/definitions/DefaultDelivery_552",
                "type": "object"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ]
        },
        "deposited_amount": {
          "description": "qteLivreDepot",
          "minimum": 0,
          "type": "number"
        },
        "fiscal_year": {
          "description": "campagne",
          "maximum": 2020,
          "minimum": 2019,
          "type": "integer"
        },
        "gain": {
          "description": "gain",
          "type": "number"
        },
        "id": {
          "description": "numContratOrigin",
          "pattern": "\\d*",
          "type": "string"
        },
        "is_closed": {
          "description": "clotureContrat == 'OUI'",
          "type": "boolean"
        },
        "itk_feedback": {
          "anyOf": [
            {
              "description": "itkFeedback\r\nDirectement la chaîne à afficher. Valeurs possibles : pas de retour, retour papier ou retour electronique",
              "enum": [
                "pas de retour",
                "retour papier",
                "retour electronique"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "maturity": {
          "anyOf": [
            {
              "description": "echeanceMatif",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "maturity_id": {
          "anyOf": [
            {
              "description": "backend Data (settlement_price) : sflMaturity",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "minimum_price": {
          "description": "prixMini",
          "minimum": 0,
          "type": "number"
        },
        "name": {
          "description": "libContrat",
          "type": "string"
        },
        "orgette_price": {
          "description": "prixContratOrgette",
          "minimum": 0,
          "type": "number"
        },
        "price": {
          "description": "prixContrat",
          "minimum": 0,
          "type": "number"
        },
        "product_code": {
          "type": "string"
        },
        "product_name": {
          "description": "libProduitContrat",
          "type": "string"
        },
        "quality_bonus": {
          "anyOf": [
            {
              "description": "qualityBonus",
              "minimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "samples": {
          "items": {
            "$ref": "#/definitions/DefaultSample_778",
            "type": "object"
          },
          "type": "array"
        },
        "settlement_price": {
          "type": "null"
        },
        "settlements": {
          "items": {
            "$ref": "#/definitions/DefaultSettlement_560",
            "type": "object"
          },
          "type": "array"
        },
        "special_bonus": {
          "anyOf": [
            {
              "description": "specialBonus",
              "minimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "stock_type": {
          "anyOf": [
            {
              "description": "0 = Contrat normal\r\n1 = Contrat MED",
              "maximum": 1,
              "minimum": 0,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "strike": {
          "description": "cotation",
          "type": "number"
        },
        "surface": {
          "anyOf": [
            {
              "description": "surface",
              "minimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "termination_date": {
          "anyOf": [
            {
              "description": "dateExecFin",
              "format": "date",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "total_amount": {
          "description": "qteContrat",
          "minimum": 0,
          "type": "number"
        },
        "type": {
          "description": "typeContrat",
          "type": "string"
        },
        "variety": {
          "description": "codFamOpticollecte",
          "type": "string"
        },
        "variety_name": {
          "description": "libFamOpticollecte",
          "type": "string"
        },
        "variety_standard_deviation": {
          "anyOf": [
            {
              "description": "varietyStandardDeviation",
              "minimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "warranty_cost": {
          "description": "primeOption",
          "minimum": 0,
          "type": "number"
        },
        "yield": {
          "anyOf": [
            {
              "description": "yield",
              "minimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "amount_to_deliver",
        "contracts",
        "crm_id",
        "delivered_amount",
        "deposited_amount",
        "fiscal_year",
        "gain",
        "id",
        "is_closed",
        "name",
        "orgette_price",
        "price",
        "product_code",
        "product_name",
        "samples",
        "strike",
        "total_amount",
        "type"
      ],
      "title": "Contract - DefaultContract",
      "type": "object"
    },
    "DefaultDelivery_552": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "base_price": {
          "description": "prixDeBase",
          "minimum": 0,
          "type": "number"
        },
        "characteristics": {
          "description": "caracteristiques",
          "items": {
            "$ref": "#/definitions/DeliveryCharacteristic_551",
            "type": "object"
          },
          "type": "array"
        },
        "contract": {
          "$ref": "#/definitions/DefaultContract_546",
          "type": "object"
        },
        "contractualizable_offer": {
          "type": "boolean"
        },
        "date": {
          "description": "dateLivraison",
          "format": "date",
          "type": "string"
        },
        "delivery_mode_code": {
          "description": "\"RDU1\", \"RDU2\", \"DEP1\", \"DEP2\"",
          "type": "string"
        },
        "delivery_number": {
          "pattern": "\\d*",
          "type": "string"
        },
        "invoices": {
          "description": "factures",
          "items": {
            "$ref": "#/definitions/DefaultInvoice_550",
            "type": "object"
          },
          "type": "array"
        },
        "net_amount": {
          "description": "quantiteNette",
          "minimum": 0,
          "type": "number"
        },
        "net_price": {
          "description": "prixNet",
          "minimum": 0,
          "type": "number"
        },
        "normed_amount": {
          "description": "quantiteNorme",
          "minimum": 0,
          "type": "number"
        },
        "place_id": {
          "description": "codeSiteDepot",
          "type": "string"
        },
        "product_code": {
          "description": "codeArticle",
          "type": "string"
        },
        "product_name": {
          "description": "libelleArticle",
          "type": "string"
        },
        "settled_amount": {
          "description": "debouclage",
          "minimum": 0,
          "type": "number"
        },
        "site_label": {
          "description": "libelleSite",
          "type": "string"
        },
        "stock_type": {
          "description": "natureStock",
          "maximum": 1,
          "minimum": 0,
          "type": "number"
        },
        "variety": {
          "description": "codFamOpticollecte",
          "type": "string"
        },
        "variety_name": {
          "description": "libFamOpticollecte",
          "type": "string"
        }
      },
      "required": [
        "base_price",
        "characteristics",
        "contract",
        "date",
        "delivery_number",
        "invoices",
        "net_amount",
        "net_price",
        "normed_amount",
        "place_id",
        "product_code",
        "product_name",
        "settled_amount",
        "site_label",
        "stock_type",
        "variety",
        "variety_name"
      ],
      "title": "Delivery - DefaultDelivery",
      "type": "object"
    },
    "DefaultInvoiceLine_547": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "code": {
          "type": "string"
        },
        "invoice_date": {
          "format": "date",
          "type": "string"
        },
        "invoice_number": {
          "pattern": "\\d*",
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "net_price": {
          "minimum": 0,
          "type": "number"
        }
      },
      "required": [
        "code",
        "invoice_date",
        "invoice_number",
        "label",
        "net_price"
      ],
      "title": "InvoiceLine - DefaultInvoiceLine",
      "type": "object"
    },
    "DefaultInvoicePrice_548": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "code": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "value": {
          "minimum": 0,
          "type": "number"
        }
      },
      "required": [
        "code",
        "label",
        "value"
      ],
      "title": "InvoicePrice - DefaultInvoicePrice",
      "type": "object"
    },
    "DefaultInvoice_550": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "amount": {
          "minimum": 0,
          "type": "number"
        },
        "characteristics": {
          "items": {
            "$ref": "#/definitions/InvoiceCharacteristic_549",
            "type": "object"
          },
          "type": "array"
        },
        "lines": {
          "items": {
            "$ref": "#/definitions/DefaultInvoiceLine_547",
            "type": "object"
          },
          "type": "array"
        },
        "prices": {
          "items": {
            "$ref": "#/definitions/DefaultInvoicePrice_548",
            "type": "object"
          },
          "type": "array"
        },
        "product_label": {
          "type": "string"
        }
      },
      "required": [
        "amount",
        "characteristics",
        "lines",
        "prices",
        "product_label"
      ],
      "title": "Invoice - DefaultInvoice",
      "type": "object"
    },
    "DefaultSample_778": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "cell_varieties": {
          "items": {
            "$ref": "#/definitions/DefaultCellVariety_776",
            "type": "object"
          },
          "type": "array"
        },
        "characteristics": {
          "items": {
            "$ref": "#/definitions/SampleCharacteristic_777",
            "type": "object"
          },
          "type": "array"
        },
        "date": {
          "description": "The ISO 8601 date format (%Y-%m-%d)",
          "format": "date",
          "type": "string"
        },
        "number": {
          "type": "string"
        },
        "quantity": {
          "minimum": 0,
          "type": "number"
        }
      },
      "required": [
        "characteristics",
        "date",
        "number",
        "quantity"
      ],
      "title": "Sample - DefaultSample",
      "type": "object"
    },
    "DefaultSettlement_560": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "amount": {
          "minimum": 0,
          "type": "number"
        },
        "date": {
          "format": "date",
          "type": "string"
        },
        "price": {
          "minimum": 0,
          "type": "number"
        },
        "status": {
          "description": "0 => nothing special, 1 => to validate",
          "maximum": 1,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "amount",
        "date",
        "price",
        "status"
      ],
      "title": "Settlement - DefaultSettlement",
      "type": "object"
    },
    "DeliveryCharacteristic_551": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "value": {
          "anyOf": [
            {
              "minimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "code",
        "label",
        "value"
      ],
      "title": "Characteristic - DeliveryCharacteristic",
      "type": "object"
    },
    "InvoiceCharacteristic_549": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "code": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "value": {
          "anyOf": [
            {
              "minimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "code",
        "label",
        "value"
      ],
      "title": "Characteristic - InvoiceCharacteristic",
      "type": "object"
    },
    "SampleCharacteristic_777": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "value": {
          "anyOf": [
            {
              "minimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "code",
        "label",
        "value"
      ],
      "title": "Characteristic - SampleCharacteristic",
      "type": "object"
    },
    "minimalContract_770": {
      "additionalProperties": false,
      "properties": {
        "crm_id": {
          "description": "numContratOrigin",
          "type": "string"
        },
        "id": {
          "description": "numContratOrigin",
          "pattern": "\\d*",
          "type": "string"
        }
      },
      "required": [
        "crm_id",
        "id"
      ],
      "title": "Contract - minimalContract",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "contracts": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "amount_to_deliver": {
            "description": "qteSoldeContrat",
            "minimum": 0,
            "type": "number"
          },
          "closing_date": {
            "description": "backend Data (settlement_price) : closingDate",
            "type": "null"
          },
          "commencement_date": {
            "anyOf": [
              {
                "description": "dateExecDebut",
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "commodity": {
            "anyOf": [
              {
                "description": "codeContratTerme",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "commodity_id": {
            "anyOf": [
              {
                "description": "backend Data (settlement_price) : sflCommodity",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "contracts": {
            "items": {
              "$ref": "#/definitions/minimalContract_770",
              "type": "object"
            },
            "type": "array"
          },
          "crm_id": {
            "description": "numContratOrigin",
            "type": "string"
          },
          "date": {
            "anyOf": [
              {
                "description": "dateContrat",
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "delivered_amount": {
            "description": "qteLivreContrat",
            "minimum": 0,
            "type": "number"
          },
          "deliveries": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/definitions/DefaultDelivery_552",
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ]
          },
          "deposited_amount": {
            "description": "qteLivreDepot",
            "minimum": 0,
            "type": "number"
          },
          "fiscal_year": {
            "description": "campagne",
            "maximum": 2020,
            "minimum": 2019,
            "type": "integer"
          },
          "gain": {
            "description": "gain",
            "type": "number"
          },
          "id": {
            "description": "numContratOrigin",
            "pattern": "\\d*",
            "type": "string"
          },
          "is_closed": {
            "description": "clotureContrat == 'OUI'",
            "type": "boolean"
          },
          "itk_feedback": {
            "anyOf": [
              {
                "description": "itkFeedback\r\nDirectement la chaîne à afficher. Valeurs possibles : pas de retour, retour papier ou retour electronique",
                "enum": [
                  "pas de retour",
                  "retour papier",
                  "retour electronique"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "maturity": {
            "anyOf": [
              {
                "description": "echeanceMatif",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "maturity_id": {
            "anyOf": [
              {
                "description": "backend Data (settlement_price) : sflMaturity",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "minimum_price": {
            "description": "prixMini",
            "minimum": 0,
            "type": "number"
          },
          "name": {
            "description": "libContrat",
            "type": "string"
          },
          "orgette_price": {
            "description": "prixContratOrgette",
            "minimum": 0,
            "type": "number"
          },
          "price": {
            "description": "prixContrat",
            "minimum": 0,
            "type": "number"
          },
          "product_code": {
            "type": "string"
          },
          "product_name": {
            "description": "libProduitContrat",
            "type": "string"
          },
          "quality_bonus": {
            "anyOf": [
              {
                "description": "qualityBonus",
                "minimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "samples": {
            "items": {
              "$ref": "#/definitions/DefaultSample_778",
              "type": "object"
            },
            "type": "array"
          },
          "settlement_price": {
            "type": "null"
          },
          "settlements": {
            "items": {
              "$ref": "#/definitions/DefaultSettlement_560",
              "type": "object"
            },
            "type": "array"
          },
          "special_bonus": {
            "anyOf": [
              {
                "description": "specialBonus",
                "minimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "stock_type": {
            "anyOf": [
              {
                "description": "0 = Contrat normal\r\n1 = Contrat MED",
                "maximum": 1,
                "minimum": 0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "strike": {
            "description": "cotation",
            "type": "number"
          },
          "surface": {
            "anyOf": [
              {
                "description": "surface",
                "minimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "termination_date": {
            "anyOf": [
              {
                "description": "dateExecFin",
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_amount": {
            "description": "qteContrat",
            "minimum": 0,
            "type": "number"
          },
          "type": {
            "description": "typeContrat",
            "type": "string"
          },
          "variety": {
            "description": "codFamOpticollecte",
            "type": "string"
          },
          "variety_name": {
            "description": "libFamOpticollecte",
            "type": "string"
          },
          "variety_standard_deviation": {
            "anyOf": [
              {
                "description": "varietyStandardDeviation",
                "minimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "warranty_cost": {
            "description": "primeOption",
            "minimum": 0,
            "type": "number"
          },
          "yield": {
            "anyOf": [
              {
                "description": "yield",
                "minimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "amount_to_deliver",
          "contracts",
          "crm_id",
          "delivered_amount",
          "deposited_amount",
          "fiscal_year",
          "gain",
          "id",
          "is_closed",
          "name",
          "orgette_price",
          "price",
          "product_code",
          "product_name",
          "samples",
          "strike",
          "total_amount",
          "type"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "contracts"
  ],
  "title": "Contract - DefaultContract",
  "type": "object"
}

JSON instance

{
  "contracts": [
    {
      "amount_to_deliver": 15,
      "closing_date": null,
      "commencement_date": "2018-09-01",
      "commodity": null,
      "commodity_id": null,
      "contracts": [],
      "crm_id": "34716-000",
      "date": "2018-08-07",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2018,
      "gain": 0,
      "id": "40642",
      "is_closed": false,
      "itk_feedback": null,
      "maturity": null,
      "maturity_id": null,
      "name": "Contrat d'Engagement",
      "orgette_price": null,
      "price": 0,
      "product_code": "000031",
      "product_name": "BLE BERMUDE",
      "quality_bonus": 2,
      "samples": [],
      "settlement_price": null,
      "special_bonus": null,
      "stock_type": 0,
      "strike": 0,
      "surface": 20,
      "termination_date": "2019-03-31",
      "total_amount": 15,
      "type": "P01",
      "variety": "BT",
      "variety_name": "BLE TENDRE",
      "variety_standard_deviation": 5,
      "yield": 0.75
    },
    {
      "amount_to_deliver": 0,
      "closing_date": null,
      "commencement_date": "2018-09-01",
      "commodity": null,
      "commodity_id": null,
      "contracts": [],
      "crm_id": "34715-000",
      "date": "2018-07-18",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2018,
      "gain": 0,
      "id": "40641",
      "is_closed": false,
      "itk_feedback": null,
      "maturity": null,
      "maturity_id": null,
      "name": "Contrat d'Engagement",
      "orgette_price": null,
      "price": 0,
      "product_code": "000832",
      "product_name": "BLE NARA",
      "quality_bonus": 2,
      "samples": [],
      "settlement_price": null,
      "special_bonus": null,
      "stock_type": 0,
      "strike": 0,
      "surface": 6.5,
      "termination_date": "2018-12-31",
      "total_amount": 50,
      "type": "P01",
      "variety": "BT",
      "variety_name": "BLE TENDRE",
      "variety_standard_deviation": 59,
      "yield": 7.692
    },
    {
      "amount_to_deliver": 0,
      "closing_date": null,
      "commencement_date": "2018-07-01",
      "commodity": null,
      "commodity_id": null,
      "contracts": [
        {
          "crm_id": "199874-000",
          "id": "214561"
        }
      ],
      "crm_id": "27705-000",
      "date": "2017-08-07",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2018,
      "gain": 0,
      "id": "33569",
      "is_closed": false,
      "itk_feedback": null,
      "maturity": null,
      "maturity_id": null,
      "name": "Contrat d'Engagement",
      "orgette_price": null,
      "price": 0,
      "product_code": "001003",
      "product_name": "BLE MMS 2018",
      "quality_bonus": 2,
      "samples": [],
      "settlement_price": null,
      "special_bonus": null,
      "stock_type": 0,
      "strike": 0,
      "surface": 4,
      "termination_date": "2018-08-31",
      "total_amount": 36,
      "type": "P01",
      "variety": "BT",
      "variety_name": "BLE TENDRE",
      "variety_standard_deviation": 1.5,
      "yield": 9
    },
    {
      "amount_to_deliver": 0,
      "closing_date": null,
      "commencement_date": "2018-07-01",
      "commodity": null,
      "commodity_id": null,
      "contracts": [],
      "crm_id": "199875-000",
      "date": "2017-11-27",
      "delivered_amount": 35.008,
      "deliveries": [
        {
          "base_price": 0,
          "characteristics": [
            {
              "code": "01",
              "label": "Humidité",
              "value": 12.5
            },
            {
              "code": "02",
              "label": "Impuretés",
              "value": 1.1
            },
            {
              "code": "03",
              "label": "Poids Spécifique",
              "value": 75
            },
            {
              "code": "05",
              "label": "Protéine",
              "value": 11.2
            }
          ],
          "contractualizable_offer": true,
          "date": "2018-07-06",
          "delivery_mode_code": "RDU1",
          "delivery_number": "9493-1",
          "invoices": [
            {
              "amount": 12.007,
              "characteristics": [],
              "lines": [
                {
                  "code": "COM",
                  "invoice_date": "2018-10-22",
                  "invoice_number": "16249905",
                  "label": "Complément Prix",
                  "net_price": 16
                }
              ],
              "prices": [
                {
                  "code": "XFAC01",
                  "label": "Prix de base",
                  "value": 16
                },
                {
                  "code": "XFAC08",
                  "label": "Prix Net",
                  "value": 16
                }
              ],
              "product_label": "BLE BPMF MEUNERIE"
            }
          ],
          "net_amount": 12.14,
          "net_price": 0,
          "normed_amount": 12.007,
          "place_id": "0009",
          "product_code": "000038",
          "product_name": "BLE BPMF MEUNERIE",
          "settled_amount": 0,
          "site_label": "ANGLURE",
          "stock_type": 0
        },
        {
          "base_price": 0,
          "characteristics": [
            {
              "code": "01",
              "label": "Humidité",
              "value": 12.2
            },
            {
              "code": "02",
              "label": "Impuretés",
              "value": 1.1
            },
            {
              "code": "03",
              "label": "Poids Spécifique",
              "value": 75.1
            },
            {
              "code": "05",
              "label": "Protéine",
              "value": 11.7
            }
          ],
          "contractualizable_offer": true,
          "date": "2018-07-06",
          "delivery_mode_code": "RDU1",
          "delivery_number": "9495-1",
          "invoices": [
            {
              "amount": 5.539,
              "characteristics": [],
              "lines": [
                {
                  "code": "COM",
                  "invoice_date": "2018-10-22",
                  "invoice_number": "16249905",
                  "label": "Complément Prix",
                  "net_price": 16
                }
              ],
              "prices": [
                {
                  "code": "XFAC01",
                  "label": "Prix de base",
                  "value": 16
                },
                {
                  "code": "XFAC08",
                  "label": "Prix Net",
                  "value": 16
                }
              ],
              "product_label": "BLE BPMF MEUNERIE"
            }
          ],
          "net_amount": 5.6,
          "net_price": 0,
          "normed_amount": 5.539,
          "place_id": "0009",
          "product_code": "000038",
          "product_name": "BLE BPMF MEUNERIE",
          "settled_amount": 0,
          "site_label": "ANGLURE",
          "stock_type": 0
        },
        {
          "base_price": 0,
          "characteristics": [
            {
              "code": "01",
              "label": "Humidité",
              "value": 12.3
            },
            {
              "code": "02",
              "label": "Impuretés",
              "value": 1.1
            },
            {
              "code": "03",
              "label": "Poids Spécifique",
              "value": 77.2
            },
            {
              "code": "05",
              "label": "Protéine",
              "value": 11.9
            }
          ],
          "contractualizable_offer": true,
          "date": "2018-07-07",
          "delivery_mode_code": "RDU1",
          "delivery_number": "9507-1",
          "invoices": [
            {
              "amount": 12.304,
              "characteristics": [],
              "lines": [
                {
                  "code": "COM",
                  "invoice_date": "2018-10-22",
                  "invoice_number": "16249905",
                  "label": "Complément Prix",
                  "net_price": 16
                }
              ],
              "prices": [
                {
                  "code": "XFAC01",
                  "label": "Prix de base",
                  "value": 16
                },
                {
                  "code": "XFAC08",
                  "label": "Prix Net",
                  "value": 16
                }
              ],
              "product_label": "BLE BPMF MEUNERIE"
            }
          ],
          "net_amount": 12.44,
          "net_price": 0,
          "normed_amount": 12.304,
          "place_id": "0009",
          "product_code": "000038",
          "product_name": "BLE BPMF MEUNERIE",
          "settled_amount": 0,
          "site_label": "ANGLURE",
          "stock_type": 0
        },
        {
          "base_price": 0,
          "characteristics": [
            {
              "code": "01",
              "label": "Humidité",
              "value": 12.3
            },
            {
              "code": "02",
              "label": "Impuretés",
              "value": 0.8
            },
            {
              "code": "03",
              "label": "Poids Spécifique",
              "value": 76.3
            },
            {
              "code": "05",
              "label": "Protéine",
              "value": 11.4
            }
          ],
          "contractualizable_offer": true,
          "date": "2018-07-07",
          "delivery_mode_code": "RDU1",
          "delivery_number": "9510-1",
          "invoices": [
            {
              "amount": 5.158,
              "characteristics": [],
              "lines": [
                {
                  "code": "COM",
                  "invoice_date": "2018-10-22",
                  "invoice_number": "16249905",
                  "label": "Complément Prix",
                  "net_price": 16
                }
              ],
              "prices": [
                {
                  "code": "XFAC01",
                  "label": "Prix de base",
                  "value": 16
                },
                {
                  "code": "XFAC08",
                  "label": "Prix Net",
                  "value": 16
                }
              ],
              "product_label": "BLE BPMF MEUNERIE"
            }
          ],
          "net_amount": 5.2,
          "net_price": 0,
          "normed_amount": 5.158,
          "place_id": "0009",
          "product_code": "000038",
          "product_name": "BLE BPMF MEUNERIE",
          "settled_amount": 0,
          "site_label": "ANGLURE",
          "stock_type": 0
        }
      ],
      "deposited_amount": 0,
      "fiscal_year": 2018,
      "gain": 0,
      "id": "214562",
      "is_closed": true,
      "itk_feedback": null,
      "maturity": null,
      "maturity_id": null,
      "name": "Contrat Optimum Sécurisé",
      "orgette_price": 0,
      "price": 0,
      "product_code": "000038",
      "product_name": "BLE BPMF MEUNERIE",
      "quality_bonus": 0,
      "samples": [],
      "settlement_price": null,
      "special_bonus": null,
      "stock_type": 0,
      "strike": 0,
      "surface": 0,
      "termination_date": "2018-08-31",
      "total_amount": 45,
      "type": "APO",
      "variety": "BT",
      "variety_name": "BLE TENDRE",
      "variety_standard_deviation": 0,
      "yield": 0
    },
    {
      "amount_to_deliver": 0,
      "closing_date": null,
      "commencement_date": "2018-07-01",
      "commodity": null,
      "commodity_id": null,
      "contracts": [],
      "crm_id": "199874-000",
      "date": "2017-11-27",
      "delivered_amount": 34.004,
      "deliveries": [
        {
          "base_price": 0,
          "characteristics": [
            {
              "code": "01",
              "label": "Humidité",
              "value": 11.7
            },
            {
              "code": "02",
              "label": "Impuretés",
              "value": 1
            },
            {
              "code": "03",
              "label": "Poids Spécifique",
              "value": 72.3
            },
            {
              "code": "05",
              "label": "Protéine",
              "value": 11.8
            }
          ],
          "contractualizable_offer": true,
          "date": "2018-07-08",
          "delivery_mode_code": "RDU1",
          "delivery_number": "9607-1",
          "invoices": [
            {
              "amount": 13.227,
              "characteristics": [],
              "lines": [
                {
                  "code": "COM",
                  "invoice_date": "2018-10-22",
                  "invoice_number": "16249905",
                  "label": "Complément Prix",
                  "net_price": 16
                }
              ],
              "prices": [
                {
                  "code": "XFAC01",
                  "label": "Prix de base",
                  "value": 16
                },
                {
                  "code": "XFAC08",
                  "label": "Prix Net",
                  "value": 16
                }
              ],
              "product_label": "BLE MMS 2018"
            }
          ],
          "net_amount": 13.36,
          "net_price": 0,
          "normed_amount": 13.227,
          "place_id": "0009",
          "product_code": "001003",
          "product_name": "BLE MMS 2018",
          "settled_amount": 0,
          "site_label": "ANGLURE",
          "stock_type": 0
        },
        {
          "base_price": 0,
          "characteristics": [
            {
              "code": "01",
              "label": "Humidité",
              "value": 11.8
            },
            {
              "code": "02",
              "label": "Impuretés",
              "value": 0.9
            },
            {
              "code": "03",
              "label": "Poids Spécifique",
              "value": 77.8
            },
            {
              "code": "05",
              "label": "Protéine",
              "value": 12.3
            }
          ],
          "contractualizable_offer": true,
          "date": "2018-07-08",
          "delivery_mode_code": "RDU1",
          "delivery_number": "9619-1",
          "invoices": [
            {
              "amount": 13.518,
              "characteristics": [],
              "lines": [
                {
                  "code": "COM",
                  "invoice_date": "2018-10-22",
                  "invoice_number": "16249905",
                  "label": "Complément Prix",
                  "net_price": 16
                }
              ],
              "prices": [
                {
                  "code": "XFAC01",
                  "label": "Prix de base",
                  "value": 16
                },
                {
                  "code": "XFAC08",
                  "label": "Prix Net",
                  "value": 16
                }
              ],
              "product_label": "BLE MMS 2018"
            }
          ],
          "net_amount": 13.64,
          "net_price": 0,
          "normed_amount": 13.518,
          "place_id": "0009",
          "product_code": "001003",
          "product_name": "BLE MMS 2018",
          "settled_amount": 0,
          "site_label": "ANGLURE",
          "stock_type": 0
        },
        {
          "base_price": 0,
          "characteristics": [
            {
              "code": "01",
              "label": "Humidité",
              "value": 11.7
            },
            {
              "code": "02",
              "label": "Impuretés",
              "value": 1.1
            },
            {
              "code": "03",
              "label": "Poids Spécifique",
              "value": 79.8
            },
            {
              "code": "05",
              "label": "Protéine",
              "value": 12
            }
          ],
          "contractualizable_offer": true,
          "date": "2018-07-08",
          "delivery_mode_code": "RDU1",
          "delivery_number": "9624-1",
          "invoices": [
            {
              "amount": 7.259,
              "characteristics": [],
              "lines": [
                {
                  "code": "COM",
                  "invoice_date": "2018-10-22",
                  "invoice_number": "16249905",
                  "label": "Complément Prix",
                  "net_price": 16
                }
              ],
              "prices": [
                {
                  "code": "XFAC01",
                  "label": "Prix de base",
                  "value": 16
                },
                {
                  "code": "XFAC08",
                  "label": "Prix Net",
                  "value": 16
                }
              ],
              "product_label": "BLE MMS 2018"
            }
          ],
          "net_amount": 7.34,
          "net_price": 0,
          "normed_amount": 7.259,
          "place_id": "0009",
          "product_code": "001003",
          "product_name": "BLE MMS 2018",
          "settled_amount": 0,
          "site_label": "ANGLURE",
          "stock_type": 0
        }
      ],
      "deposited_amount": 0,
      "fiscal_year": 2018,
      "gain": 0,
      "id": "214561",
      "is_closed": true,
      "itk_feedback": null,
      "maturity": null,
      "maturity_id": null,
      "name": "Contrat Optimum Sécurisé",
      "orgette_price": 0,
      "price": 0,
      "product_code": "001003",
      "product_name": "BLE MMS 2018",
      "quality_bonus": 0,
      "samples": [],
      "settlement_price": null,
      "special_bonus": null,
      "stock_type": 0,
      "strike": 0,
      "surface": 4,
      "termination_date": "2018-08-31",
      "total_amount": 36,
      "type": "APO",
      "variety": "BT",
      "variety_name": "BLE TENDRE",
      "variety_standard_deviation": 0,
      "yield": 9
    },
    {
      "amount_to_deliver": 0,
      "closing_date": null,
      "commencement_date": "2019-04-01",
      "commodity": "BL2",
      "commodity_id": "WHEAT",
      "contracts": [],
      "crm_id": "291429-000",
      "date": "2019-03-13",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2018,
      "gain": 0,
      "id": "0",
      "is_closed": false,
      "itk_feedback": null,
      "maturity": null,
      "maturity_id": null,
      "name": "Offre prix ferme",
      "orgette_price": 0,
      "price": 157.2,
      "product_code": "000005",
      "product_name": "BLE 1",
      "quality_bonus": null,
      "samples": [],
      "settlement_price": null,
      "special_bonus": null,
      "stock_type": 0,
      "strike": 0,
      "surface": null,
      "termination_date": "2019-05-31",
      "total_amount": 0.1,
      "type": "APF",
      "variety": "BT",
      "variety_name": "BLE TENDRE",
      "variety_standard_deviation": null,
      "yield": null
    },
    {
      "amount_to_deliver": 0,
      "closing_date": null,
      "commencement_date": "2019-04-01",
      "commodity": "BL2",
      "commodity_id": "WHEAT",
      "contracts": [],
      "crm_id": "291415-000",
      "date": "2019-03-13",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2018,
      "gain": 0,
      "id": "0",
      "is_closed": false,
      "itk_feedback": null,
      "maturity": null,
      "maturity_id": null,
      "name": "Offre prix ferme",
      "orgette_price": 0,
      "price": 154.95,
      "product_code": "000005",
      "product_name": "BLE 1",
      "quality_bonus": null,
      "samples": [],
      "settlement_price": null,
      "special_bonus": null,
      "stock_type": 0,
      "strike": 0,
      "surface": null,
      "termination_date": "2019-05-31",
      "total_amount": 0.1,
      "type": "APF",
      "variety": "BT",
      "variety_name": "BLE TENDRE",
      "variety_standard_deviation": null,
      "yield": null
    },
    {
      "amount_to_deliver": 0,
      "closing_date": null,
      "commencement_date": "2019-04-01",
      "commodity": "BL2",
      "commodity_id": "WHEAT",
      "contracts": [],
      "crm_id": "290253-000",
      "date": "2019-03-01",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2018,
      "gain": 0,
      "id": "0",
      "is_closed": false,
      "itk_feedback": null,
      "maturity": null,
      "maturity_id": null,
      "name": "Offre prix ferme",
      "orgette_price": 0,
      "price": 157.95,
      "product_code": "000005",
      "product_name": "BLE 1",
      "quality_bonus": null,
      "samples": [],
      "settlement_price": null,
      "special_bonus": null,
      "stock_type": 0,
      "strike": 0,
      "surface": null,
      "termination_date": "2019-05-31",
      "total_amount": 0.1,
      "type": "APF",
      "variety": "BT",
      "variety_name": "BLE TENDRE",
      "variety_standard_deviation": null,
      "yield": null
    },
    {
      "amount_to_deliver": 0,
      "closing_date": null,
      "commencement_date": "2019-04-01",
      "commodity": "BL2",
      "commodity_id": "WHEAT",
      "contracts": [],
      "crm_id": "289671-000",
      "date": "2019-02-21",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2018,
      "gain": 0,
      "id": "0",
      "is_closed": false,
      "itk_feedback": null,
      "maturity": null,
      "maturity_id": null,
      "name": "Offre prix ferme",
      "orgette_price": 0,
      "price": 168.45,
      "product_code": "000005",
      "product_name": "BLE 1",
      "quality_bonus": null,
      "samples": [],
      "settlement_price": null,
      "special_bonus": null,
      "stock_type": 0,
      "strike": 0,
      "surface": null,
      "termination_date": "2019-05-31",
      "total_amount": 0.1,
      "type": "APF",
      "variety": "BT",
      "variety_name": "BLE TENDRE",
      "variety_standard_deviation": null,
      "yield": null
    },
    {
      "amount_to_deliver": 0,
      "closing_date": null,
      "commencement_date": "2019-04-01",
      "commodity": "BL2",
      "commodity_id": "WHEAT",
      "contracts": [],
      "crm_id": "288956-000",
      "date": "2019-02-14",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2018,
      "gain": 0,
      "id": "0",
      "is_closed": false,
      "itk_feedback": null,
      "maturity": null,
      "maturity_id": null,
      "name": "Offre prix ferme",
      "orgette_price": 0,
      "price": 174.7,
      "product_code": "000005",
      "product_name": "BLE 1",
      "quality_bonus": null,
      "samples": [],
      "settlement_price": null,
      "special_bonus": null,
      "stock_type": 0,
      "strike": 0,
      "surface": null,
      "termination_date": "2019-05-31",
      "total_amount": 1,
      "type": "APF",
      "variety": "BT",
      "variety_name": "BLE TENDRE",
      "variety_standard_deviation": null,
      "yield": null
    },
    {
      "amount_to_deliver": 0,
      "closing_date": null,
      "commencement_date": "2019-04-01",
      "commodity": "BL2",
      "commodity_id": "WHEAT",
      "contracts": [],
      "crm_id": "288955-000",
      "date": "2019-02-14",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2018,
      "gain": 0,
      "id": "0",
      "is_closed": false,
      "itk_feedback": null,
      "maturity": null,
      "maturity_id": null,
      "name": "Offre prix ferme",
      "orgette_price": 0,
      "price": 174.7,
      "product_code": "000005",
      "product_name": "BLE 1",
      "quality_bonus": null,
      "samples": [],
      "settlement_price": null,
      "special_bonus": null,
      "stock_type": 0,
      "strike": 0,
      "surface": null,
      "termination_date": "2019-05-31",
      "total_amount": 1,
      "type": "APF",
      "variety": "BT",
      "variety_name": "BLE TENDRE",
      "variety_standard_deviation": null,
      "yield": null
    },
    {
      "amount_to_deliver": 0,
      "closing_date": null,
      "commencement_date": "2019-02-01",
      "commodity": "BL2",
      "commodity_id": "WHEAT",
      "contracts": [],
      "crm_id": "289032-000",
      "date": "2019-02-14",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2018,
      "gain": 0,
      "id": "0",
      "is_closed": false,
      "itk_feedback": null,
      "maturity": null,
      "maturity_id": null,
      "name": "Offre Optimum sécurisé",
      "orgette_price": 0,
      "price": 0,
      "product_code": "000005",
      "product_name": "BLE 1",
      "quality_bonus": null,
      "samples": [],
      "settlement_price": null,
      "special_bonus": null,
      "stock_type": 0,
      "strike": 0,
      "surface": null,
      "termination_date": "2019-03-31",
      "total_amount": 0.4,
      "type": "APO",
      "variety": "BT",
      "variety_name": "BLE TENDRE",
      "variety_standard_deviation": null,
      "yield": null
    },
    {
      "amount_to_deliver": 0,
      "closing_date": null,
      "commencement_date": "2019-02-01",
      "commodity": "BL2",
      "commodity_id": "WHEAT",
      "contracts": [],
      "crm_id": "288866-000",
      "date": "2019-02-14",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2018,
      "gain": 0,
      "id": "0",
      "is_closed": false,
      "itk_feedback": null,
      "maturity": null,
      "maturity_id": null,
      "name": "Offre Prix de campagne",
      "orgette_price": 0,
      "price": 0,
      "product_code": "000005",
      "product_name": "BLE 1",
      "quality_bonus": null,
      "samples": [],
      "settlement_price": null,
      "special_bonus": null,
      "stock_type": 0,
      "strike": 0,
      "surface": null,
      "termination_date": "2019-03-31",
      "total_amount": 0.8,
      "type": "B01",
      "variety": "BT",
      "variety_name": "BLE TENDRE",
      "variety_standard_deviation": null,
      "yield": null
    },
    {
      "amount_to_deliver": 0,
      "closing_date": null,
      "commencement_date": "2019-04-01",
      "commodity": "BL2",
      "commodity_id": "WHEAT",
      "contracts": [],
      "crm_id": "289031-000",
      "date": "2019-02-14",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2018,
      "gain": 0,
      "id": "0",
      "is_closed": false,
      "itk_feedback": null,
      "maturity": null,
      "maturity_id": null,
      "name": "Offre Optimum sécurisé",
      "orgette_price": 0,
      "price": 0,
      "product_code": "000005",
      "product_name": "BLE 1",
      "quality_bonus": null,
      "samples": [],
      "settlement_price": null,
      "special_bonus": null,
      "stock_type": 0,
      "strike": 0,
      "surface": null,
      "termination_date": "2019-05-31",
      "total_amount": 0.8,
      "type": "APO",
      "variety": "BT",
      "variety_name": "BLE TENDRE",
      "variety_standard_deviation": null,
      "yield": null
    },
    {
      "amount_to_deliver": 0,
      "closing_date": null,
      "commencement_date": "2019-04-01",
      "commodity": "BL2",
      "commodity_id": "WHEAT",
      "contracts": [],
      "crm_id": "288865-000",
      "date": "2019-02-14",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2018,
      "gain": 0,
      "id": "0",
      "is_closed": false,
      "itk_feedback": null,
      "maturity": null,
      "maturity_id": null,
      "name": "Offre prix ferme",
      "orgette_price": 0,
      "price": 170.7,
      "product_code": "000005",
      "product_name": "BLE 1",
      "quality_bonus": null,
      "samples": [],
      "settlement_price": null,
      "special_bonus": null,
      "stock_type": 0,
      "strike": 0,
      "surface": null,
      "termination_date": "2019-05-31",
      "total_amount": 0.2,
      "type": "APF",
      "variety": "BT",
      "variety_name": "BLE TENDRE",
      "variety_standard_deviation": null,
      "yield": null
    }
  ]
}

Validation #1196

Failure

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

  • The property '#/' of type array did not match the following type: object in schema 931e95c7-904c-5c42-994c-c7ed7caa1e79

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "DefaultDeliveryNoteContract_3198": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "constractCultureLabel": {
          "type": "string"
        },
        "contractNumber": {
          "type": "string"
        },
        "contractProductLabel": {
          "type": "string"
        },
        "contractQuantity": {
          "type": "number"
        },
        "contractQuantityDelivered": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "contractQuantityLeft": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "contractType": {
          "type": "string"
        },
        "contractTypeLabel": {
          "type": "string"
        },
        "harvest": {
          "type": "string"
        }
      },
      "required": [
        "constractCultureLabel",
        "contractNumber",
        "contractProductLabel",
        "contractQuantity",
        "contractType",
        "contractTypeLabel",
        "harvest"
      ],
      "title": "DeliveryNoteContract - DefaultDeliveryNoteContract",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "contracts": {
      "items": {
        "$ref": "#/definitions/DefaultDeliveryNoteContract_3198",
        "type": "object"
      },
      "type": "array"
    },
    "traceId": {
      "type": "string"
    }
  },
  "required": [
    "contracts",
    "traceId"
  ],
  "title": "DeliveryNoteContractWrapper - DefaultDeliveryNoteContractWrapper",
  "type": "object"
}

JSON instance

[
  {
    "crops": [
      {
        "agreements": [],
        "contracts": [
          {
            "amount": 730,
            "amountToDeliver": 730,
            "deliveredAmount": 0,
            "depositedAmount": 0,
            "type": "contract",
            "typeLabel": "Contractualisé"
          }
        ],
        "cropCode": "BT",
        "cropLabel": "BLE TENDRE"
      },
      {
        "agreements": [],
        "contracts": [
          {
            "amount": 100,
            "amountToDeliver": 100,
            "deliveredAmount": 0,
            "depositedAmount": 0,
            "type": "contract",
            "typeLabel": "Contractualisé"
          }
        ],
        "cropCode": "COL",
        "cropLabel": "COLZA"
      },
      {
        "agreements": [],
        "contracts": [
          {
            "amount": 48,
            "amountToDeliver": 48,
            "deliveredAmount": 0,
            "depositedAmount": 0,
            "type": "contract",
            "typeLabel": "Contractualisé"
          }
        ],
        "cropCode": "LIN",
        "cropLabel": "LIN"
      },
      {
        "agreements": [],
        "contracts": [
          {
            "amount": 130,
            "amountToDeliver": 130,
            "deliveredAmount": 0,
            "depositedAmount": 0,
            "type": "contract",
            "typeLabel": "Contractualisé"
          }
        ],
        "cropCode": "MAI",
        "cropLabel": "MAIS"
      },
      {
        "agreements": [],
        "contracts": [
          {
            "amount": 470,
            "amountToDeliver": 470,
            "deliveredAmount": 0,
            "depositedAmount": 0,
            "type": "contract",
            "typeLabel": "Contractualisé"
          }
        ],
        "cropCode": "OH",
        "cropLabel": "ORGE HIVER"
      },
      {
        "agreements": [],
        "contracts": [
          {
            "amount": 235,
            "amountToDeliver": 235,
            "deliveredAmount": 0,
            "depositedAmount": 0,
            "type": "contract",
            "typeLabel": "Contractualisé"
          }
        ],
        "cropCode": "OP",
        "cropLabel": "ORGE PRINTEMPS"
      },
      {
        "agreements": [],
        "contracts": [
          {
            "amount": 40,
            "amountToDeliver": 40,
            "deliveredAmount": 0,
            "depositedAmount": 0,
            "type": "contract",
            "typeLabel": "Contractualisé"
          }
        ],
        "cropCode": "POI",
        "cropLabel": "POIS"
      },
      {
        "agreements": [],
        "contracts": [
          {
            "amount": 50,
            "amountToDeliver": 50,
            "deliveredAmount": 0,
            "depositedAmount": 0,
            "type": "contract",
            "typeLabel": "Contractualisé"
          }
        ],
        "cropCode": "TOU",
        "cropLabel": "TOURNESOL"
      }
    ],
    "harvest": 2021
  },
  {
    "crops": [
      {
        "agreements": [],
        "contracts": [
          {
            "amount": 696.35,
            "amountToDeliver": 76.35,
            "deliveredAmount": 543.65,
            "depositedAmount": 0,
            "type": "contract",
            "typeLabel": "Contractualisé"
          }
        ],
        "cropCode": "BT",
        "cropLabel": "BLE TENDRE"
      },
      {
        "agreements": [],
        "contracts": [
          {
            "amount": 90,
            "amountToDeliver": 0,
            "deliveredAmount": 68.567,
            "depositedAmount": 0,
            "type": "contract",
            "typeLabel": "Contractualisé"
          }
        ],
        "cropCode": "COL",
        "cropLabel": "COLZA"
      },
      {
        "agreements": [],
        "contracts": [
          {
            "amount": 45.19,
            "amountToDeliver": 0,
            "deliveredAmount": 45.19,
            "depositedAmount": 0,
            "type": "contract",
            "typeLabel": "Contractualisé"
          }
        ],
        "cropCode": "LIN",
        "cropLabel": "LIN"
      },
      {
        "agreements": [],
        "contracts": [
          {
            "amount": 45,
            "amountToDeliver": 0,
            "deliveredAmount": 24.836,
            "depositedAmount": 0,
            "type": "contract",
            "typeLabel": "Contractualisé"
          }
        ],
        "cropCode": "MAI",
        "cropLabel": "MAIS"
      },
      {
        "agreements": [],
        "contracts": [
          {
            "amount": 140,
            "type": "precontract",
            "typeLabel": "Engagement"
          },
          {
            "amount": 735.667,
            "amountToDeliver": 82.317,
            "deliveredAmount": 368.578,
            "depositedAmount": 0,
            "type": "contract",
            "typeLabel": "Contractualisé"
          }
        ],
        "cropCode": "OH",
        "cropLabel": "ORGE HIVER"
      },
      {
        "agreements": [],
        "contracts": [
          {
            "amount": 354.322,
            "amountToDeliver": 31.674,
            "deliveredAmount": 283.326,
            "depositedAmount": 0,
            "type": "contract",
            "typeLabel": "Contractualisé"
          }
        ],
        "cropCode": "OP",
        "cropLabel": "ORGE PRINTEMPS"
      },
      {
        "agreements": [],
        "contracts": [
          {
            "amount": 15,
            "amountToDeliver": 0,
            "deliveredAmount": 3.769,
            "depositedAmount": 0,
            "type": "contract",
            "typeLabel": "Contractualisé"
          }
        ],
        "cropCode": "POI",
        "cropLabel": "POIS"
      },
      {
        "agreements": [],
        "contracts": [
          {
            "amount": 40,
            "amountToDeliver": 0,
            "deliveredAmount": 31.632,
            "depositedAmount": 0,
            "type": "contract",
            "typeLabel": "Contractualisé"
          }
        ],
        "cropCode": "TOU",
        "cropLabel": "TOURNESOL"
      }
    ],
    "harvest": 2020
  },
  {
    "crops": [
      {
        "agreements": [],
        "contracts": [
          {
            "amount": 318.565,
            "amountToDeliver": 0,
            "deliveredAmount": 207.211,
            "depositedAmount": 0,
            "type": "contract",
            "typeLabel": "Contractualisé"
          }
        ],
        "cropCode": "BT",
        "cropLabel": "BLE TENDRE"
      },
      {
        "agreements": [],
        "contracts": [
          {
            "amount": 70,
            "type": "precontract",
            "typeLabel": "Engagement"
          },
          {
            "amount": 70,
            "amountToDeliver": 0,
            "deliveredAmount": 68.9,
            "depositedAmount": 0,
            "type": "contract",
            "typeLabel": "Contractualisé"
          }
        ],
        "cropCode": "COL",
        "cropLabel": "COLZA"
      },
      {
        "agreements": [],
        "contracts": [
          {
            "amount": 250,
            "amountToDeliver": 0,
            "deliveredAmount": 137.493,
            "depositedAmount": 0,
            "type": "contract",
            "typeLabel": "Contractualisé"
          }
        ],
        "cropCode": "MAI",
        "cropLabel": "MAIS"
      },
      {
        "agreements": [],
        "contracts": [
          {
            "amount": 80,
            "amountToDeliver": 0,
            "deliveredAmount": 77.853,
            "depositedAmount": 0,
            "type": "contract",
            "typeLabel": "Contractualisé"
          }
        ],
        "cropCode": "OH",
        "cropLabel": "ORGE HIVER"
      },
      {
        "agreements": [],
        "contracts": [
          {
            "amount": 80,
            "type": "precontract",
            "typeLabel": "Engagement"
          },
          {
            "amount": 153.981,
            "amountToDeliver": 0,
            "deliveredAmount": 137.086,
            "depositedAmount": 0,
            "type": "contract",
            "typeLabel": "Contractualisé"
          }
        ],
        "cropCode": "OP",
        "cropLabel": "ORGE PRINTEMPS"
      }
    ],
    "harvest": 2019
  }
]