Validations history

Validation #972

Failure

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

  • The property '#/contracts/0' contains additional properties ["authorized_unlock"] outside of the schema when none are allowed in schema 2e414749-3021-5d55-9ed1-d874b4739a28
  • The property '#/contracts/0/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/0/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/0/yield' of type string did not match the following type: null
  • The property '#/contracts/0' did not contain a required property of 'contracts' in schema 2e414749-3021-5d55-9ed1-d874b4739a28
  • The property '#/contracts/0' did not contain a required property of 'orgette_price' in schema 2e414749-3021-5d55-9ed1-d874b4739a28
  • The property '#/contracts/0' did not contain a required property of 'samples' in schema 2e414749-3021-5d55-9ed1-d874b4739a28
  • The property '#/contracts/1' contains additional properties ["authorized_unlock"] outside of the schema when none are allowed in schema 2e414749-3021-5d55-9ed1-d874b4739a28
  • The property '#/contracts/1/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/1/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/1/yield' of type string did not match the following type: null
  • The property '#/contracts/1' did not contain a required property of 'contracts' in schema 2e414749-3021-5d55-9ed1-d874b4739a28
  • The property '#/contracts/1' did not contain a required property of 'orgette_price' in schema 2e414749-3021-5d55-9ed1-d874b4739a28
  • The property '#/contracts/1' did not contain a required property of 'samples' in schema 2e414749-3021-5d55-9ed1-d874b4739a28
  • The property '#/contracts/2' contains additional properties ["authorized_unlock", "delivery"] outside of the schema when none are allowed in schema 2e414749-3021-5d55-9ed1-d874b4739a28
  • The property '#/contracts/2/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/2/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/2/yield' of type string did not match the following type: null
  • The property '#/contracts/2' did not contain a required property of 'contracts' in schema 2e414749-3021-5d55-9ed1-d874b4739a28
  • The property '#/contracts/2' did not contain a required property of 'orgette_price' in schema 2e414749-3021-5d55-9ed1-d874b4739a28
  • The property '#/contracts/2' did not contain a required property of 'samples' in schema 2e414749-3021-5d55-9ed1-d874b4739a28
  • The property '#/contracts/3' contains additional properties ["authorized_unlock"] outside of the schema when none are allowed in schema 2e414749-3021-5d55-9ed1-d874b4739a28
  • The property '#/contracts/3/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/3/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/3/yield' of type string did not match the following type: null
  • The property '#/contracts/3' did not contain a required property of 'contracts' in schema 2e414749-3021-5d55-9ed1-d874b4739a28
  • The property '#/contracts/3' did not contain a required property of 'gain' in schema 2e414749-3021-5d55-9ed1-d874b4739a28
  • The property '#/contracts/3' did not contain a required property of 'orgette_price' in schema 2e414749-3021-5d55-9ed1-d874b4739a28
  • The property '#/contracts/3' did not contain a required property of 'samples' in schema 2e414749-3021-5d55-9ed1-d874b4739a28

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": {
          "anyOf": [
            {
              "description": "backend Data (settlement_price) : closingDate",
              "format": "date",
              "type": "string"
            },
            {
              "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": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "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": {
            "anyOf": [
              {
                "description": "backend Data (settlement_price) : closingDate",
                "format": "date",
                "type": "string"
              },
              {
                "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": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "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": 120,
      "authorized_unlock": false,
      "commencement_date": "2020-07-01T00:00:00",
      "commodity": "COM",
      "crm_id": "328548-000",
      "date": "2020-07-20T00:00:00",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "gain": 0,
      "id": "238802",
      "is_closed": false,
      "maturity": "FEB-21",
      "minimum_price": 345,
      "name": "Contrat Euronext",
      "price": 354,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "stock_type": 0,
      "strike": 362,
      "surface": 0,
      "termination_date": "2020-08-31T00:00:00",
      "total_amount": 120,
      "type": "AE1",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "warranty_cost": 9,
      "yield": "0.000"
    },
    {
      "amount_to_deliver": 20,
      "authorized_unlock": false,
      "commencement_date": "2020-09-01T00:00:00",
      "commodity": "COM",
      "crm_id": "328528-001",
      "date": "2020-08-13T00:00:00",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "gain": 0,
      "id": "238782",
      "is_closed": false,
      "maturity": "AUG-20",
      "minimum_price": 343,
      "name": "Contrat Euronext",
      "price": 354,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "stock_type": 0,
      "strike": 358,
      "surface": 0,
      "termination_date": "2020-12-31T00:00:00",
      "total_amount": 20,
      "type": "AE1",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "warranty_cost": 11,
      "yield": "0.000"
    },
    {
      "amount_to_deliver": 0,
      "authorized_unlock": false,
      "commencement_date": "2020-07-01T00:00:00",
      "commodity": "COM",
      "crm_id": "328528-000",
      "date": "2020-04-16T00:00:00",
      "delivered_amount": 10,
      "delivery": [
        {
          "characteristics": [
            {
              "code": "01",
              "label": "Humidité",
              "value": "9.000"
            },
            {
              "code": "02",
              "label": "Impuretés",
              "value": "0.000"
            }
          ],
          "contractualizable_offer": false,
          "date": "2020-08-13T00:00:00",
          "delivery_mode_code": "RDU2",
          "delivery_number": "4651-1",
          "net_amount": 10,
          "normed_amount": 10,
          "place_id": "0004",
          "product_name": "COLZA D HIVER",
          "site_label": "PLEURS",
          "stock_type": 0
        }
      ],
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "gain": 4,
      "id": "238782",
      "is_closed": false,
      "maturity": "AUG-20",
      "minimum_price": 343,
      "name": "Contrat Euronext",
      "price": 354,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "settlements": [
        {
          "amount": 30,
          "date": "2020-08-13T00:00:00",
          "price": 362,
          "status": 0
        }
      ],
      "stock_type": 0,
      "strike": 358,
      "surface": 0,
      "termination_date": "2020-08-31T00:00:00",
      "total_amount": 30,
      "type": "AE1",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "warranty_cost": 11,
      "yield": "0.000"
    },
    {
      "amount_to_deliver": 0,
      "authorized_unlock": false,
      "commencement_date": "2020-07-01T00:00:00",
      "crm_id": "328510-000",
      "date": "2020-02-12T00:00:00",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "id": "238766",
      "is_closed": false,
      "name": "Contrat Prix Ferme",
      "price": 360,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "stock_type": 0,
      "strike": 0,
      "surface": 0,
      "termination_date": "2020-08-31T00:00:00",
      "total_amount": 10,
      "type": "APF",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "yield": "0.000"
    }
  ]
}

Validation #971

Failure

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

  • The property '#/contracts/0' contains additional properties ["authorized_unlock"] outside of the schema when none are allowed in schema 2e414749-3021-5d55-9ed1-d874b4739a28
  • The property '#/contracts/0/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/0/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/0/yield' of type string did not match the following type: null
  • The property '#/contracts/0' did not contain a required property of 'contracts' in schema 2e414749-3021-5d55-9ed1-d874b4739a28
  • The property '#/contracts/0' did not contain a required property of 'orgette_price' in schema 2e414749-3021-5d55-9ed1-d874b4739a28
  • The property '#/contracts/0' did not contain a required property of 'samples' in schema 2e414749-3021-5d55-9ed1-d874b4739a28
  • The property '#/contracts/1' contains additional properties ["authorized_unlock"] outside of the schema when none are allowed in schema 2e414749-3021-5d55-9ed1-d874b4739a28
  • The property '#/contracts/1/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/1/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/1/yield' of type string did not match the following type: null
  • The property '#/contracts/1' did not contain a required property of 'contracts' in schema 2e414749-3021-5d55-9ed1-d874b4739a28
  • The property '#/contracts/1' did not contain a required property of 'orgette_price' in schema 2e414749-3021-5d55-9ed1-d874b4739a28
  • The property '#/contracts/1' did not contain a required property of 'samples' in schema 2e414749-3021-5d55-9ed1-d874b4739a28
  • The property '#/contracts/2' contains additional properties ["authorized_unlock", "delivery"] outside of the schema when none are allowed in schema 2e414749-3021-5d55-9ed1-d874b4739a28
  • The property '#/contracts/2/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/2/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/2/yield' of type string did not match the following type: null
  • The property '#/contracts/2' did not contain a required property of 'contracts' in schema 2e414749-3021-5d55-9ed1-d874b4739a28
  • The property '#/contracts/2' did not contain a required property of 'orgette_price' in schema 2e414749-3021-5d55-9ed1-d874b4739a28
  • The property '#/contracts/2' did not contain a required property of 'samples' in schema 2e414749-3021-5d55-9ed1-d874b4739a28
  • The property '#/contracts/3' contains additional properties ["authorized_unlock"] outside of the schema when none are allowed in schema 2e414749-3021-5d55-9ed1-d874b4739a28
  • The property '#/contracts/3/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/3/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/3/yield' of type string did not match the following type: null
  • The property '#/contracts/3' did not contain a required property of 'contracts' in schema 2e414749-3021-5d55-9ed1-d874b4739a28
  • The property '#/contracts/3' did not contain a required property of 'gain' in schema 2e414749-3021-5d55-9ed1-d874b4739a28
  • The property '#/contracts/3' did not contain a required property of 'orgette_price' in schema 2e414749-3021-5d55-9ed1-d874b4739a28
  • The property '#/contracts/3' did not contain a required property of 'samples' in schema 2e414749-3021-5d55-9ed1-d874b4739a28

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": {
          "anyOf": [
            {
              "description": "backend Data (settlement_price) : closingDate",
              "format": "date",
              "type": "string"
            },
            {
              "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": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "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": {
            "anyOf": [
              {
                "description": "backend Data (settlement_price) : closingDate",
                "format": "date",
                "type": "string"
              },
              {
                "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": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "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": 120,
      "authorized_unlock": false,
      "commencement_date": "2020-07-01T00:00:00",
      "commodity": "COM",
      "crm_id": "328548-000",
      "date": "2020-07-20T00:00:00",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "gain": 0,
      "id": "238802",
      "is_closed": false,
      "maturity": "FEB-21",
      "minimum_price": 345,
      "name": "Contrat Euronext",
      "price": 354,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "stock_type": 0,
      "strike": 362,
      "surface": 0,
      "termination_date": "2020-08-31T00:00:00",
      "total_amount": 120,
      "type": "AE1",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "warranty_cost": 9,
      "yield": "0.000"
    },
    {
      "amount_to_deliver": 20,
      "authorized_unlock": false,
      "commencement_date": "2020-09-01T00:00:00",
      "commodity": "COM",
      "crm_id": "328528-001",
      "date": "2020-08-13T00:00:00",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "gain": 0,
      "id": "238782",
      "is_closed": false,
      "maturity": "AUG-20",
      "minimum_price": 343,
      "name": "Contrat Euronext",
      "price": 354,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "stock_type": 0,
      "strike": 358,
      "surface": 0,
      "termination_date": "2020-12-31T00:00:00",
      "total_amount": 20,
      "type": "AE1",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "warranty_cost": 11,
      "yield": "0.000"
    },
    {
      "amount_to_deliver": 0,
      "authorized_unlock": false,
      "commencement_date": "2020-07-01T00:00:00",
      "commodity": "COM",
      "crm_id": "328528-000",
      "date": "2020-04-16T00:00:00",
      "delivered_amount": 10,
      "delivery": [
        {
          "characteristics": [
            {
              "code": "01",
              "label": "Humidité",
              "value": "9.000"
            },
            {
              "code": "02",
              "label": "Impuretés",
              "value": "0.000"
            }
          ],
          "contractualizable_offer": false,
          "date": "2020-08-13T00:00:00",
          "delivery_mode_code": "RDU2",
          "delivery_number": "4651-1",
          "net_amount": 10,
          "normed_amount": 10,
          "place_id": "0004",
          "product_name": "COLZA D HIVER",
          "site_label": "PLEURS",
          "stock_type": 0
        }
      ],
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "gain": 4,
      "id": "238782",
      "is_closed": false,
      "maturity": "AUG-20",
      "minimum_price": 343,
      "name": "Contrat Euronext",
      "price": 354,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "settlements": [
        {
          "amount": 30,
          "date": "2020-08-13T00:00:00",
          "price": 362,
          "status": 0
        }
      ],
      "stock_type": 0,
      "strike": 358,
      "surface": 0,
      "termination_date": "2020-08-31T00:00:00",
      "total_amount": 30,
      "type": "AE1",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "warranty_cost": 11,
      "yield": "0.000"
    },
    {
      "amount_to_deliver": 0,
      "authorized_unlock": false,
      "commencement_date": "2020-07-01T00:00:00",
      "crm_id": "328510-000",
      "date": "2020-02-12T00:00:00",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "id": "238766",
      "is_closed": false,
      "name": "Contrat Prix Ferme",
      "price": 360,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "stock_type": 0,
      "strike": 0,
      "surface": 0,
      "termination_date": "2020-08-31T00:00:00",
      "total_amount": 10,
      "type": "APF",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "yield": "0.000"
    }
  ]
}

Validation #970

Failure

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

  • The property '#/contracts/0' contains additional properties ["authorized_unlock"] outside of the schema when none are allowed in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/0/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/0/yield' of type string did not match the following type: null
  • The property '#/contracts/0' did not contain a required property of 'closing_date' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0' did not contain a required property of 'commodity_id' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0' did not contain a required property of 'contracts' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0' did not contain a required property of 'itk_feedback' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0' did not contain a required property of 'maturity_id' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0' did not contain a required property of 'orgette_price' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0' did not contain a required property of 'samples' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0' did not contain a required property of 'settlement_price' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0' did not contain a required property of 'special_bonus' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' contains additional properties ["authorized_unlock"] outside of the schema when none are allowed in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/1/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/1/yield' of type string did not match the following type: null
  • The property '#/contracts/1' did not contain a required property of 'closing_date' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' did not contain a required property of 'commodity_id' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' did not contain a required property of 'contracts' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' did not contain a required property of 'itk_feedback' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' did not contain a required property of 'maturity_id' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' did not contain a required property of 'orgette_price' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' did not contain a required property of 'samples' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' did not contain a required property of 'settlement_price' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' did not contain a required property of 'special_bonus' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' contains additional properties ["authorized_unlock", "delivery"] outside of the schema when none are allowed in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/2/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/2/yield' of type string did not match the following type: null
  • The property '#/contracts/2' did not contain a required property of 'closing_date' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' did not contain a required property of 'commodity_id' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' did not contain a required property of 'contracts' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' did not contain a required property of 'itk_feedback' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' did not contain a required property of 'maturity_id' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' did not contain a required property of 'orgette_price' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' did not contain a required property of 'samples' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' did not contain a required property of 'settlement_price' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' did not contain a required property of 'special_bonus' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' contains additional properties ["authorized_unlock"] outside of the schema when none are allowed in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/3/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/3/yield' of type string did not match the following type: null
  • The property '#/contracts/3' did not contain a required property of 'closing_date' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'commodity' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'commodity_id' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'contracts' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'gain' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'itk_feedback' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'maturity' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'maturity_id' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'orgette_price' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'samples' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'settlement_price' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'special_bonus' in schema a276d756-2062-590b-be01-834c96ffbee9

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": {
          "anyOf": [
            {
              "description": "backend Data (settlement_price) : closingDate",
              "format": "date",
              "type": "string"
            },
            {
              "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": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "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",
        "closing_date",
        "commencement_date",
        "commodity",
        "commodity_id",
        "contracts",
        "crm_id",
        "date",
        "delivered_amount",
        "deposited_amount",
        "fiscal_year",
        "gain",
        "id",
        "is_closed",
        "itk_feedback",
        "maturity",
        "maturity_id",
        "name",
        "orgette_price",
        "price",
        "product_code",
        "product_name",
        "quality_bonus",
        "samples",
        "settlement_price",
        "special_bonus",
        "stock_type",
        "strike",
        "surface",
        "termination_date",
        "total_amount",
        "type",
        "variety_standard_deviation",
        "yield"
      ],
      "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": {
            "anyOf": [
              {
                "description": "backend Data (settlement_price) : closingDate",
                "format": "date",
                "type": "string"
              },
              {
                "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": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "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",
          "closing_date",
          "commencement_date",
          "commodity",
          "commodity_id",
          "contracts",
          "crm_id",
          "date",
          "delivered_amount",
          "deposited_amount",
          "fiscal_year",
          "gain",
          "id",
          "is_closed",
          "itk_feedback",
          "maturity",
          "maturity_id",
          "name",
          "orgette_price",
          "price",
          "product_code",
          "product_name",
          "quality_bonus",
          "samples",
          "settlement_price",
          "special_bonus",
          "stock_type",
          "strike",
          "surface",
          "termination_date",
          "total_amount",
          "type",
          "variety_standard_deviation",
          "yield"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "contracts"
  ],
  "title": "Contract - DefaultContract",
  "type": "object"
}

JSON instance

{
  "contracts": [
    {
      "amount_to_deliver": 120,
      "authorized_unlock": false,
      "commencement_date": "2020-07-01T00:00:00",
      "commodity": "COM",
      "crm_id": "328548-000",
      "date": "2020-07-20T00:00:00",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "gain": 0,
      "id": "238802",
      "is_closed": false,
      "maturity": "FEB-21",
      "minimum_price": 345,
      "name": "Contrat Euronext",
      "price": 354,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "stock_type": 0,
      "strike": 362,
      "surface": 0,
      "termination_date": "2020-08-31T00:00:00",
      "total_amount": 120,
      "type": "AE1",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "warranty_cost": 9,
      "yield": "0.000"
    },
    {
      "amount_to_deliver": 20,
      "authorized_unlock": false,
      "commencement_date": "2020-09-01T00:00:00",
      "commodity": "COM",
      "crm_id": "328528-001",
      "date": "2020-08-13T00:00:00",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "gain": 0,
      "id": "238782",
      "is_closed": false,
      "maturity": "AUG-20",
      "minimum_price": 343,
      "name": "Contrat Euronext",
      "price": 354,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "stock_type": 0,
      "strike": 358,
      "surface": 0,
      "termination_date": "2020-12-31T00:00:00",
      "total_amount": 20,
      "type": "AE1",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "warranty_cost": 11,
      "yield": "0.000"
    },
    {
      "amount_to_deliver": 0,
      "authorized_unlock": false,
      "commencement_date": "2020-07-01T00:00:00",
      "commodity": "COM",
      "crm_id": "328528-000",
      "date": "2020-04-16T00:00:00",
      "delivered_amount": 10,
      "delivery": [
        {
          "characteristics": [
            {
              "code": "01",
              "label": "Humidité",
              "value": "9.000"
            },
            {
              "code": "02",
              "label": "Impuretés",
              "value": "0.000"
            }
          ],
          "contractualizable_offer": false,
          "date": "2020-08-13T00:00:00",
          "delivery_mode_code": "RDU2",
          "delivery_number": "4651-1",
          "net_amount": 10,
          "normed_amount": 10,
          "place_id": "0004",
          "product_name": "COLZA D HIVER",
          "site_label": "PLEURS",
          "stock_type": 0
        }
      ],
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "gain": 4,
      "id": "238782",
      "is_closed": false,
      "maturity": "AUG-20",
      "minimum_price": 343,
      "name": "Contrat Euronext",
      "price": 354,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "settlements": [
        {
          "amount": 30,
          "date": "2020-08-13T00:00:00",
          "price": 362,
          "status": 0
        }
      ],
      "stock_type": 0,
      "strike": 358,
      "surface": 0,
      "termination_date": "2020-08-31T00:00:00",
      "total_amount": 30,
      "type": "AE1",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "warranty_cost": 11,
      "yield": "0.000"
    },
    {
      "amount_to_deliver": 0,
      "authorized_unlock": false,
      "commencement_date": "2020-07-01T00:00:00",
      "crm_id": "328510-000",
      "date": "2020-02-12T00:00:00",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "id": "238766",
      "is_closed": false,
      "name": "Contrat Prix Ferme",
      "price": 360,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "stock_type": 0,
      "strike": 0,
      "surface": 0,
      "termination_date": "2020-08-31T00:00:00",
      "total_amount": 10,
      "type": "APF",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "yield": "0.000"
    }
  ]
}

Validation #969

Success

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

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": {
          "anyOf": [
            {
              "description": "backend Data (settlement_price) : closingDate",
              "format": "date",
              "type": "string"
            },
            {
              "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": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "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",
        "closing_date",
        "commencement_date",
        "commodity",
        "commodity_id",
        "contracts",
        "crm_id",
        "date",
        "delivered_amount",
        "deposited_amount",
        "fiscal_year",
        "gain",
        "id",
        "is_closed",
        "itk_feedback",
        "maturity",
        "maturity_id",
        "name",
        "orgette_price",
        "price",
        "product_code",
        "product_name",
        "quality_bonus",
        "samples",
        "settlement_price",
        "special_bonus",
        "stock_type",
        "strike",
        "surface",
        "termination_date",
        "total_amount",
        "type",
        "variety_standard_deviation",
        "yield"
      ],
      "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": {
            "anyOf": [
              {
                "description": "backend Data (settlement_price) : closingDate",
                "format": "date",
                "type": "string"
              },
              {
                "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": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "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",
          "closing_date",
          "commencement_date",
          "commodity",
          "commodity_id",
          "contracts",
          "crm_id",
          "date",
          "delivered_amount",
          "deposited_amount",
          "fiscal_year",
          "gain",
          "id",
          "is_closed",
          "itk_feedback",
          "maturity",
          "maturity_id",
          "name",
          "orgette_price",
          "price",
          "product_code",
          "product_name",
          "quality_bonus",
          "samples",
          "settlement_price",
          "special_bonus",
          "stock_type",
          "strike",
          "surface",
          "termination_date",
          "total_amount",
          "type",
          "variety_standard_deviation",
          "yield"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "contracts"
  ],
  "title": "Contract - DefaultContract",
  "type": "object"
}

JSON instance

{
  "contracts": [
    {
      "amount_to_deliver": 24917471.002682935,
      "closing_date": null,
      "commencement_date": null,
      "commodity": null,
      "commodity_id": null,
      "contracts": [
        {
          "crm_id": "in sint occaecat cupidatat",
          "id": "8530405"
        },
        {
          "crm_id": "proid",
          "id": "571312643"
        },
        {
          "crm_id": "exercitation do eu",
          "id": "27807640"
        },
        {
          "crm_id": "sed ad",
          "id": "33277276"
        }
      ],
      "crm_id": "sint",
      "date": "1958-07-31",
      "delivered_amount": 49252572.92695173,
      "deposited_amount": 96423158.99537414,
      "fiscal_year": 2019,
      "gain": 53164756.60897967,
      "id": "1853731",
      "is_closed": false,
      "itk_feedback": "retour papier",
      "maturity": "ea velit magna ullamco",
      "maturity_id": "proiden",
      "name": "adipisicing",
      "orgette_price": 23367366.529734347,
      "price": 17082617.689639833,
      "product_code": "dolor Ut exercitation",
      "product_name": "non reprehenderit et in nulla",
      "quality_bonus": null,
      "samples": [
        {
          "characteristics": [
            {
              "code": "consectetur",
              "label": "dolore ut Duis",
              "value": null
            },
            {
              "code": "ex veniam elit",
              "label": "amet ad",
              "value": 74876666.04092838
            },
            {
              "code": "in",
              "label": "minim ex tempor",
              "value": 15974495.943006285
            },
            {
              "code": "exercitation magna fugiat",
              "label": "in veniam amet culpa dolor",
              "value": 17047496.457958866
            }
          ],
          "date": "1946-02-04",
          "number": "qui Lorem ad",
          "quantity": 72434731.19037773
        },
        {
          "characteristics": [
            {
              "code": "laborum pariatur reprehenderit sint",
              "label": "dolor",
              "value": null
            },
            {
              "code": "ex minim fugiat",
              "label": "dolor velit ut anim non",
              "value": 56368620.44336051
            },
            {
              "code": "commodo nulla nostrud",
              "label": "consequat sunt",
              "value": 95016907.79344428
            },
            {
              "code": "est",
              "label": "cupidatat deserunt cu",
              "value": 39886946.359882526
            }
          ],
          "date": "1998-11-10",
          "number": "ullamco",
          "quantity": 63060735.738746956
        }
      ],
      "settlement_price": -68441790.07746108,
      "special_bonus": 40425684.58384581,
      "stock_type": 1,
      "strike": 32407599.960880652,
      "surface": null,
      "termination_date": "1987-05-04",
      "total_amount": 86429189.6718942,
      "type": "ex dolore",
      "variety_standard_deviation": null,
      "yield": 19706695.482758787
    },
    {
      "amount_to_deliver": 30364887.63291787,
      "closing_date": "2012-02-08",
      "commencement_date": null,
      "commodity": "sit est",
      "commodity_id": "et in fugiat",
      "contracts": [
        {
          "crm_id": "reprehenderit tempor nisi",
          "id": "6582"
        },
        {
          "crm_id": "eu veniam ea sit incididunt",
          "id": "2053"
        },
        {
          "crm_id": "ea sint eu Duis quis",
          "id": "24618"
        },
        {
          "crm_id": "anim irure sint ad",
          "id": "5291381195"
        }
      ],
      "crm_id": "ullamco occaecat aliquip",
      "date": null,
      "delivered_amount": 40271112.658725224,
      "deposited_amount": 75600505.24433817,
      "fiscal_year": 2019,
      "gain": 5409715.577855945,
      "id": "104",
      "is_closed": true,
      "itk_feedback": null,
      "maturity": null,
      "maturity_id": null,
      "name": "ad tempor",
      "orgette_price": 52137591.41040615,
      "price": 3564813.5415515816,
      "product_code": "voluptate irure",
      "product_name": "fugiat quis magna",
      "quality_bonus": null,
      "samples": [
        {
          "characteristics": [
            {
              "code": "",
              "label": "in Excepteur Ut nulla",
              "value": 90735058.17038691
            },
            {
              "code": "Duis",
              "label": "exercitation Duis mollit et ea",
              "value": 93432992.482194
            }
          ],
          "date": "2012-10-08",
          "number": "nisi fugiat",
          "quantity": 51396500.41067887
        },
        {
          "characteristics": [
            {
              "code": "in velit",
              "label": "ad dolore irure elit",
              "value": 22186625.787843227
            },
            {
              "code": "in Duis consequat cillum",
              "label": "tempor ipsum Excepteur",
              "value": 58105730.95627447
            },
            {
              "code": "amet cillum magna sunt",
              "label": "nostrud",
              "value": 12225620.54052232
            },
            {
              "code": "ex incididunt cupidatat consect",
              "label": "culpa veniam minim in",
              "value": null
            }
          ],
          "date": "1997-03-27",
          "number": "do adipisicing esse deserunt",
          "quantity": 69315309.81773525
        }
      ],
      "settlement_price": null,
      "special_bonus": 43219601.68608336,
      "stock_type": null,
      "strike": 18301851.643243432,
      "surface": 90801539.89952062,
      "termination_date": "1959-10-20",
      "total_amount": 77120822.23685457,
      "type": "esse minim sunt irure",
      "variety_standard_deviation": 73084413.65235588,
      "yield": 39826461.3098813
    },
    {
      "amount_to_deliver": 73286270.47702183,
      "closing_date": null,
      "commencement_date": null,
      "commodity": null,
      "commodity_id": "laborum sunt aute",
      "contracts": [
        {
          "crm_id": "laborum ut aliqua",
          "id": "367"
        },
        {
          "crm_id": "tempor in nulla anim",
          "id": "1248728648"
        },
        {
          "crm_id": "adipisicing pariatur",
          "id": "28303132"
        }
      ],
      "crm_id": "minim eiusmod nostrud",
      "date": null,
      "delivered_amount": 57296984.92072788,
      "deposited_amount": 24582061.5437643,
      "fiscal_year": 2020,
      "gain": 1043112.8038495034,
      "id": "5",
      "is_closed": true,
      "itk_feedback": null,
      "maturity": "ea dolore in ut",
      "maturity_id": null,
      "name": "pariatur est cillum",
      "orgette_price": 64257635.727904946,
      "price": 10629945.047983425,
      "product_code": "id aliqua in sit dolore",
      "product_name": "voluptate r",
      "quality_bonus": null,
      "samples": [
        {
          "characteristics": [
            {
              "code": "pariatur",
              "label": "elit Ut irure labore",
              "value": 8856409.146655753
            }
          ],
          "date": "1973-04-02",
          "number": "ut consequat consectetur culpa",
          "quantity": 67984037.23078315
        },
        {
          "characteristics": [
            {
              "code": "dolor aute Excepteur magna",
              "label": "tempor ad magna",
              "value": 80763088.14489259
            },
            {
              "code": "nostrud enim sunt ullamco ipsum",
              "label": "do Excepteur",
              "value": null
            },
            {
              "code": "nisi anim adipisicing dolor",
              "label": "tempor id aute",
              "value": null
            }
          ],
          "date": "1976-01-17",
          "number": "incididunt",
          "quantity": 84150003.70502992
        },
        {
          "characteristics": [
            {
              "code": "cillum",
              "label": "anim aliquip esse mollit",
              "value": 81169323.66121991
            },
            {
              "code": "labore reprehenderit non aliqua",
              "label": "anim dolore tempor ex",
              "value": null
            },
            {
              "code": "commodo",
              "label": "in velit culpa aliqua",
              "value": 13176815.137159025
            },
            {
              "code": "cupidatat ",
              "label": "Excepteur ex",
              "value": null
            }
          ],
          "date": "1973-12-10",
          "number": "ipsum",
          "quantity": 45656955.59717229
        }
      ],
      "settlement_price": -13480753.786273286,
      "special_bonus": 55874176.629608944,
      "stock_type": 0,
      "strike": -26288170.452584267,
      "surface": null,
      "termination_date": "1979-04-19",
      "total_amount": 30286763.217543755,
      "type": "ut officia dolore sed",
      "variety_standard_deviation": 11633556.923302146,
      "yield": 6952815.138592317
    },
    {
      "amount_to_deliver": 69108055.77583577,
      "closing_date": null,
      "commencement_date": "1980-02-21",
      "commodity": "esse nulla",
      "commodity_id": null,
      "contracts": [
        {
          "crm_id": "aliqua minim eiusmod magna",
          "id": "518"
        },
        {
          "crm_id": "dolor amet Excepteur culpa",
          "id": "08"
        },
        {
          "crm_id": "s",
          "id": "09506490"
        },
        {
          "crm_id": "ipsum et",
          "id": "968448"
        },
        {
          "crm_id": "sint",
          "id": "78"
        }
      ],
      "crm_id": "sunt reprehenderit sit adipisicing et",
      "date": "1961-05-06",
      "delivered_amount": 84671486.350316,
      "deposited_amount": 1734327.6733989166,
      "fiscal_year": 2020,
      "gain": 82192968.23543915,
      "id": "657945",
      "is_closed": false,
      "itk_feedback": null,
      "maturity": "voluptate ullamco",
      "maturity_id": "incididunt culpa in",
      "name": "reprehenderit tempor nisi",
      "orgette_price": 66119786.050449304,
      "price": 34429355.238161884,
      "product_code": "dolore mollit",
      "product_name": "incididunt tempor ex culpa",
      "quality_bonus": null,
      "samples": [
        {
          "characteristics": [
            {
              "code": "ullamco sint",
              "label": "sit",
              "value": null
            },
            {
              "code": "et consequat labore pariatur",
              "label": "eiusmod dolore consequat Ut voluptate",
              "value": null
            },
            {
              "code": "aliquip ut irure",
              "label": "voluptate ad",
              "value": null
            }
          ],
          "date": "1961-05-04",
          "number": "irure proident in tempor do",
          "quantity": 15859782.284942802
        }
      ],
      "settlement_price": 31071836.644146472,
      "special_bonus": 27690882.466304246,
      "stock_type": 1,
      "strike": -554703.2072306126,
      "surface": 81997685.13354646,
      "termination_date": null,
      "total_amount": 40904914.722048,
      "type": "in cupidatat",
      "variety_standard_deviation": null,
      "yield": null
    },
    {
      "amount_to_deliver": 18951799.4433005,
      "closing_date": "1964-05-24",
      "commencement_date": "1949-04-05",
      "commodity": "in",
      "commodity_id": "commodo in eu dolor",
      "contracts": [
        {
          "crm_id": "sunt esse nul",
          "id": "30170"
        },
        {
          "crm_id": "voluptate consectetur sint esse cupidatat",
          "id": "3"
        }
      ],
      "crm_id": "Excepteur veniam ea et qui",
      "date": null,
      "delivered_amount": 98892721.84152919,
      "deposited_amount": 26302808.559073497,
      "fiscal_year": 2019,
      "gain": -67323821.65314914,
      "id": "",
      "is_closed": true,
      "itk_feedback": null,
      "maturity": "Duis sed",
      "maturity_id": null,
      "name": "ad cillum magna Ut",
      "orgette_price": 81045380.98293075,
      "price": 16192779.69419497,
      "product_code": "proident pariatur Duis aliquip",
      "product_name": "consectetur",
      "quality_bonus": null,
      "samples": [
        {
          "characteristics": [
            {
              "code": "in minim amet sit eu",
              "label": "dolore in Excepteur ea",
              "value": 54165717.01648467
            }
          ],
          "date": "1953-03-18",
          "number": "ex pariatur in ut et",
          "quantity": 78392264.92201729
        },
        {
          "characteristics": [
            {
              "code": "do in",
              "label": "dolore ad anim",
              "value": null
            },
            {
              "code": "sint Ut co",
              "label": "sed ea amet laborum",
              "value": 38010609.53543982
            },
            {
              "code": "est",
              "label": "enim nisi veniam adipisicing",
              "value": null
            },
            {
              "code": "Excepteur est in qui incididunt",
              "label": "qui ea laborum",
              "value": 22592959.759603582
            },
            {
              "code": "dolore eiusmod aute pariatur elit",
              "label": "aliqua consectetur laborum enim pariatur",
              "value": 42113033.16424708
            }
          ],
          "date": "1964-07-13",
          "number": "quis adipisicing dolor",
          "quantity": 14414944.0060662
        },
        {
          "characteristics": [
            {
              "code": "in irure",
              "label": "ad quis voluptate dolore minim",
              "value": 22774423.04613968
            },
            {
              "code": "in",
              "label": "nisi commodo reprehenderit laboris",
              "value": 65228158.41883372
            },
            {
              "code": "exercita",
              "label": "vel",
              "value": 82541915.78134766
            },
            {
              "code": "cupidatat culpa quis incididunt",
              "label": "sed",
              "value": 90512023.70150408
            }
          ],
          "date": "1988-05-10",
          "number": "Lorem do in tempor commodo",
          "quantity": 91153552.36188684
        }
      ],
      "settlement_price": null,
      "special_bonus": null,
      "stock_type": null,
      "strike": -34152578.99691962,
      "surface": 85433894.16328008,
      "termination_date": null,
      "total_amount": 17617777.639845513,
      "type": "est esse incididunt sint eu",
      "variety_standard_deviation": null,
      "yield": 1470836.0705721457
    }
  ]
}

Validation #968

Failure

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

  • The property '#/contracts/0' contains additional properties ["authorized_unlock"] outside of the schema when none are allowed in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/0/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/0/yield' of type string did not match the following type: null
  • The property '#/contracts/0' did not contain a required property of 'closing_date' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0' did not contain a required property of 'commodity_id' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0' did not contain a required property of 'contracts' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0' did not contain a required property of 'itk_feedback' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0' did not contain a required property of 'maturity_id' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0' did not contain a required property of 'orgette_price' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0' did not contain a required property of 'samples' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0' did not contain a required property of 'settlement_price' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0' did not contain a required property of 'special_bonus' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' contains additional properties ["authorized_unlock"] outside of the schema when none are allowed in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/1/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/1/yield' of type string did not match the following type: null
  • The property '#/contracts/1' did not contain a required property of 'closing_date' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' did not contain a required property of 'commodity_id' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' did not contain a required property of 'contracts' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' did not contain a required property of 'itk_feedback' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' did not contain a required property of 'maturity_id' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' did not contain a required property of 'orgette_price' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' did not contain a required property of 'samples' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' did not contain a required property of 'settlement_price' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' did not contain a required property of 'special_bonus' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' contains additional properties ["authorized_unlock", "delivery"] outside of the schema when none are allowed in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/2/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/2/yield' of type string did not match the following type: null
  • The property '#/contracts/2' did not contain a required property of 'closing_date' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' did not contain a required property of 'commodity_id' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' did not contain a required property of 'contracts' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' did not contain a required property of 'itk_feedback' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' did not contain a required property of 'maturity_id' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' did not contain a required property of 'orgette_price' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' did not contain a required property of 'samples' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' did not contain a required property of 'settlement_price' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' did not contain a required property of 'special_bonus' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' contains additional properties ["authorized_unlock"] outside of the schema when none are allowed in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/3/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/3/yield' of type string did not match the following type: null
  • The property '#/contracts/3' did not contain a required property of 'closing_date' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'commodity' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'commodity_id' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'contracts' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'gain' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'itk_feedback' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'maturity' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'maturity_id' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'orgette_price' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'samples' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'settlement_price' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'special_bonus' in schema a276d756-2062-590b-be01-834c96ffbee9

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": {
          "anyOf": [
            {
              "description": "backend Data (settlement_price) : closingDate",
              "format": "date",
              "type": "string"
            },
            {
              "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": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "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",
        "closing_date",
        "commencement_date",
        "commodity",
        "commodity_id",
        "contracts",
        "crm_id",
        "date",
        "delivered_amount",
        "deposited_amount",
        "fiscal_year",
        "gain",
        "id",
        "is_closed",
        "itk_feedback",
        "maturity",
        "maturity_id",
        "name",
        "orgette_price",
        "price",
        "product_code",
        "product_name",
        "quality_bonus",
        "samples",
        "settlement_price",
        "special_bonus",
        "stock_type",
        "strike",
        "surface",
        "termination_date",
        "total_amount",
        "type",
        "variety_standard_deviation",
        "yield"
      ],
      "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": {
            "anyOf": [
              {
                "description": "backend Data (settlement_price) : closingDate",
                "format": "date",
                "type": "string"
              },
              {
                "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": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "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",
          "closing_date",
          "commencement_date",
          "commodity",
          "commodity_id",
          "contracts",
          "crm_id",
          "date",
          "delivered_amount",
          "deposited_amount",
          "fiscal_year",
          "gain",
          "id",
          "is_closed",
          "itk_feedback",
          "maturity",
          "maturity_id",
          "name",
          "orgette_price",
          "price",
          "product_code",
          "product_name",
          "quality_bonus",
          "samples",
          "settlement_price",
          "special_bonus",
          "stock_type",
          "strike",
          "surface",
          "termination_date",
          "total_amount",
          "type",
          "variety_standard_deviation",
          "yield"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "contracts"
  ],
  "title": "Contract - DefaultContract",
  "type": "object"
}

JSON instance

{
  "contracts": [
    {
      "amount_to_deliver": 120,
      "authorized_unlock": false,
      "commencement_date": "2020-07-01T00:00:00",
      "commodity": "COM",
      "crm_id": "328548-000",
      "date": "2020-07-20T00:00:00",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "gain": 0,
      "id": "238802",
      "is_closed": false,
      "maturity": "FEB-21",
      "minimum_price": 345,
      "name": "Contrat Euronext",
      "price": 354,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "stock_type": 0,
      "strike": 362,
      "surface": 0,
      "termination_date": "2020-08-31T00:00:00",
      "total_amount": 120,
      "type": "AE1",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "warranty_cost": 9,
      "yield": "0.000"
    },
    {
      "amount_to_deliver": 20,
      "authorized_unlock": false,
      "commencement_date": "2020-09-01T00:00:00",
      "commodity": "COM",
      "crm_id": "328528-001",
      "date": "2020-08-13T00:00:00",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "gain": 0,
      "id": "238782",
      "is_closed": false,
      "maturity": "AUG-20",
      "minimum_price": 343,
      "name": "Contrat Euronext",
      "price": 354,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "stock_type": 0,
      "strike": 358,
      "surface": 0,
      "termination_date": "2020-12-31T00:00:00",
      "total_amount": 20,
      "type": "AE1",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "warranty_cost": 11,
      "yield": "0.000"
    },
    {
      "amount_to_deliver": 0,
      "authorized_unlock": false,
      "commencement_date": "2020-07-01T00:00:00",
      "commodity": "COM",
      "crm_id": "328528-000",
      "date": "2020-04-16T00:00:00",
      "delivered_amount": 10,
      "delivery": [
        {
          "characteristics": [
            {
              "code": "01",
              "label": "Humidité",
              "value": "9.000"
            },
            {
              "code": "02",
              "label": "Impuretés",
              "value": "0.000"
            }
          ],
          "contractualizable_offer": false,
          "date": "2020-08-13T00:00:00",
          "delivery_mode_code": "RDU2",
          "delivery_number": "4651-1",
          "net_amount": 10,
          "normed_amount": 10,
          "place_id": "0004",
          "product_name": "COLZA D HIVER",
          "site_label": "PLEURS",
          "stock_type": 0
        }
      ],
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "gain": 4,
      "id": "238782",
      "is_closed": false,
      "maturity": "AUG-20",
      "minimum_price": 343,
      "name": "Contrat Euronext",
      "price": 354,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "settlements": [
        {
          "amount": 30,
          "date": "2020-08-13T00:00:00",
          "price": 362,
          "status": 0
        }
      ],
      "stock_type": 0,
      "strike": 358,
      "surface": 0,
      "termination_date": "2020-08-31T00:00:00",
      "total_amount": 30,
      "type": "AE1",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "warranty_cost": 11,
      "yield": "0.000"
    },
    {
      "amount_to_deliver": 0,
      "authorized_unlock": false,
      "commencement_date": "2020-07-01T00:00:00",
      "crm_id": "328510-000",
      "date": "2020-02-12T00:00:00",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "id": "238766",
      "is_closed": false,
      "name": "Contrat Prix Ferme",
      "price": 360,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "stock_type": 0,
      "strike": 0,
      "surface": 0,
      "termination_date": "2020-08-31T00:00:00",
      "total_amount": 10,
      "type": "APF",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "yield": "0.000"
    }
  ]
}

Validation #967

Failure

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

  • The property '#/contracts/0' contains additional properties ["authorized_unlock"] outside of the schema when none are allowed in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/0/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/0/yield' of type string did not match the following type: null
  • The property '#/contracts/0' did not contain a required property of 'closing_date' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0' did not contain a required property of 'commodity_id' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0' did not contain a required property of 'contracts' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0' did not contain a required property of 'itk_feedback' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0' did not contain a required property of 'maturity_id' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0' did not contain a required property of 'orgette_price' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0' did not contain a required property of 'samples' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0' did not contain a required property of 'settlement_price' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0' did not contain a required property of 'special_bonus' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' contains additional properties ["authorized_unlock"] outside of the schema when none are allowed in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/1/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/1/yield' of type string did not match the following type: null
  • The property '#/contracts/1' did not contain a required property of 'closing_date' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' did not contain a required property of 'commodity_id' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' did not contain a required property of 'contracts' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' did not contain a required property of 'itk_feedback' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' did not contain a required property of 'maturity_id' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' did not contain a required property of 'orgette_price' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' did not contain a required property of 'samples' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' did not contain a required property of 'settlement_price' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' did not contain a required property of 'special_bonus' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' contains additional properties ["authorized_unlock", "delivery"] outside of the schema when none are allowed in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/2/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/2/yield' of type string did not match the following type: null
  • The property '#/contracts/2' did not contain a required property of 'closing_date' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' did not contain a required property of 'commodity_id' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' did not contain a required property of 'contracts' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' did not contain a required property of 'itk_feedback' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' did not contain a required property of 'maturity_id' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' did not contain a required property of 'orgette_price' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' did not contain a required property of 'samples' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' did not contain a required property of 'settlement_price' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' did not contain a required property of 'special_bonus' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' contains additional properties ["authorized_unlock"] outside of the schema when none are allowed in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/3/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/3/yield' of type string did not match the following type: null
  • The property '#/contracts/3' did not contain a required property of 'closing_date' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'commodity' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'commodity_id' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'contracts' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'gain' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'itk_feedback' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'maturity' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'maturity_id' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'orgette_price' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'samples' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'settlement_price' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'special_bonus' in schema a276d756-2062-590b-be01-834c96ffbee9

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": {
          "anyOf": [
            {
              "description": "backend Data (settlement_price) : closingDate",
              "format": "date",
              "type": "string"
            },
            {
              "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": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "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",
        "closing_date",
        "commencement_date",
        "commodity",
        "commodity_id",
        "contracts",
        "crm_id",
        "date",
        "delivered_amount",
        "deposited_amount",
        "fiscal_year",
        "gain",
        "id",
        "is_closed",
        "itk_feedback",
        "maturity",
        "maturity_id",
        "name",
        "orgette_price",
        "price",
        "product_code",
        "product_name",
        "quality_bonus",
        "samples",
        "settlement_price",
        "special_bonus",
        "stock_type",
        "strike",
        "surface",
        "termination_date",
        "total_amount",
        "type",
        "variety_standard_deviation",
        "yield"
      ],
      "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": {
            "anyOf": [
              {
                "description": "backend Data (settlement_price) : closingDate",
                "format": "date",
                "type": "string"
              },
              {
                "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": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "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",
          "closing_date",
          "commencement_date",
          "commodity",
          "commodity_id",
          "contracts",
          "crm_id",
          "date",
          "delivered_amount",
          "deposited_amount",
          "fiscal_year",
          "gain",
          "id",
          "is_closed",
          "itk_feedback",
          "maturity",
          "maturity_id",
          "name",
          "orgette_price",
          "price",
          "product_code",
          "product_name",
          "quality_bonus",
          "samples",
          "settlement_price",
          "special_bonus",
          "stock_type",
          "strike",
          "surface",
          "termination_date",
          "total_amount",
          "type",
          "variety_standard_deviation",
          "yield"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "contracts"
  ],
  "title": "Contract - DefaultContract",
  "type": "object"
}

JSON instance

{
  "contracts": [
    {
      "amount_to_deliver": 120,
      "authorized_unlock": false,
      "commencement_date": "2020-07-01T00:00:00",
      "commodity": "COM",
      "crm_id": "328548-000",
      "date": "2020-07-20T00:00:00",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "gain": 0,
      "id": "238802",
      "is_closed": false,
      "maturity": "FEB-21",
      "minimum_price": 345,
      "name": "Contrat Euronext",
      "price": 354,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "stock_type": 0,
      "strike": 362,
      "surface": 0,
      "termination_date": "2020-08-31T00:00:00",
      "total_amount": 120,
      "type": "AE1",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "warranty_cost": 9,
      "yield": "0.000"
    },
    {
      "amount_to_deliver": 20,
      "authorized_unlock": false,
      "commencement_date": "2020-09-01T00:00:00",
      "commodity": "COM",
      "crm_id": "328528-001",
      "date": "2020-08-13T00:00:00",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "gain": 0,
      "id": "238782",
      "is_closed": false,
      "maturity": "AUG-20",
      "minimum_price": 343,
      "name": "Contrat Euronext",
      "price": 354,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "stock_type": 0,
      "strike": 358,
      "surface": 0,
      "termination_date": "2020-12-31T00:00:00",
      "total_amount": 20,
      "type": "AE1",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "warranty_cost": 11,
      "yield": "0.000"
    },
    {
      "amount_to_deliver": 0,
      "authorized_unlock": false,
      "commencement_date": "2020-07-01T00:00:00",
      "commodity": "COM",
      "crm_id": "328528-000",
      "date": "2020-04-16T00:00:00",
      "delivered_amount": 10,
      "delivery": [
        {
          "characteristics": [
            {
              "code": "01",
              "label": "Humidité",
              "value": "9.000"
            },
            {
              "code": "02",
              "label": "Impuretés",
              "value": "0.000"
            }
          ],
          "contractualizable_offer": false,
          "date": "2020-08-13T00:00:00",
          "delivery_mode_code": "RDU2",
          "delivery_number": "4651-1",
          "net_amount": 10,
          "normed_amount": 10,
          "place_id": "0004",
          "product_name": "COLZA D HIVER",
          "site_label": "PLEURS",
          "stock_type": 0
        }
      ],
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "gain": 4,
      "id": "238782",
      "is_closed": false,
      "maturity": "AUG-20",
      "minimum_price": 343,
      "name": "Contrat Euronext",
      "price": 354,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "settlements": [
        {
          "amount": 30,
          "date": "2020-08-13T00:00:00",
          "price": 362,
          "status": 0
        }
      ],
      "stock_type": 0,
      "strike": 358,
      "surface": 0,
      "termination_date": "2020-08-31T00:00:00",
      "total_amount": 30,
      "type": "AE1",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "warranty_cost": 11,
      "yield": "0.000"
    },
    {
      "amount_to_deliver": 0,
      "authorized_unlock": false,
      "commencement_date": "2020-07-01T00:00:00",
      "crm_id": "328510-000",
      "date": "2020-02-12T00:00:00",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "id": "238766",
      "is_closed": false,
      "name": "Contrat Prix Ferme",
      "price": 360,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "stock_type": 0,
      "strike": 0,
      "surface": 0,
      "termination_date": "2020-08-31T00:00:00",
      "total_amount": 10,
      "type": "APF",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "yield": "0.000"
    }
  ]
}

Validation #966

Failure

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

  • The property '#/contracts/0' contains additional properties ["authorized_unlock"] outside of the schema when none are allowed in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/0/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/0/yield' of type string did not match the following type: null
  • The property '#/contracts/0' did not contain a required property of 'closing_date' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0' did not contain a required property of 'commodity_id' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0' did not contain a required property of 'contracts' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0' did not contain a required property of 'itk_feedback' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0' did not contain a required property of 'maturity_id' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0' did not contain a required property of 'orgette_price' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0' did not contain a required property of 'samples' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0' did not contain a required property of 'settlement_price' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/0' did not contain a required property of 'special_bonus' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' contains additional properties ["authorized_unlock"] outside of the schema when none are allowed in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/1/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/1/yield' of type string did not match the following type: null
  • The property '#/contracts/1' did not contain a required property of 'closing_date' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' did not contain a required property of 'commodity_id' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' did not contain a required property of 'contracts' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' did not contain a required property of 'itk_feedback' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' did not contain a required property of 'maturity_id' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' did not contain a required property of 'orgette_price' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' did not contain a required property of 'samples' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' did not contain a required property of 'settlement_price' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/1' did not contain a required property of 'special_bonus' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' contains additional properties ["authorized_unlock", "delivery"] outside of the schema when none are allowed in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/2/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/2/yield' of type string did not match the following type: null
  • The property '#/contracts/2' did not contain a required property of 'closing_date' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' did not contain a required property of 'commodity_id' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' did not contain a required property of 'contracts' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' did not contain a required property of 'itk_feedback' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' did not contain a required property of 'maturity_id' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' did not contain a required property of 'orgette_price' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' did not contain a required property of 'samples' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' did not contain a required property of 'settlement_price' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/2' did not contain a required property of 'special_bonus' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' contains additional properties ["authorized_unlock"] outside of the schema when none are allowed in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/3/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/3/yield' of type string did not match the following type: null
  • The property '#/contracts/3' did not contain a required property of 'closing_date' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'commodity' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'commodity_id' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'contracts' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'gain' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'itk_feedback' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'maturity' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'maturity_id' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'orgette_price' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'samples' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'settlement_price' in schema a276d756-2062-590b-be01-834c96ffbee9
  • The property '#/contracts/3' did not contain a required property of 'special_bonus' in schema a276d756-2062-590b-be01-834c96ffbee9

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": {
          "anyOf": [
            {
              "description": "backend Data (settlement_price) : closingDate",
              "format": "date",
              "type": "string"
            },
            {
              "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": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "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",
        "closing_date",
        "commencement_date",
        "commodity",
        "commodity_id",
        "contracts",
        "crm_id",
        "date",
        "delivered_amount",
        "deposited_amount",
        "fiscal_year",
        "gain",
        "id",
        "is_closed",
        "itk_feedback",
        "maturity",
        "maturity_id",
        "name",
        "orgette_price",
        "price",
        "product_code",
        "product_name",
        "quality_bonus",
        "samples",
        "settlement_price",
        "special_bonus",
        "stock_type",
        "strike",
        "surface",
        "termination_date",
        "total_amount",
        "type",
        "variety_standard_deviation",
        "yield"
      ],
      "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": {
            "anyOf": [
              {
                "description": "backend Data (settlement_price) : closingDate",
                "format": "date",
                "type": "string"
              },
              {
                "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": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "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",
          "closing_date",
          "commencement_date",
          "commodity",
          "commodity_id",
          "contracts",
          "crm_id",
          "date",
          "delivered_amount",
          "deposited_amount",
          "fiscal_year",
          "gain",
          "id",
          "is_closed",
          "itk_feedback",
          "maturity",
          "maturity_id",
          "name",
          "orgette_price",
          "price",
          "product_code",
          "product_name",
          "quality_bonus",
          "samples",
          "settlement_price",
          "special_bonus",
          "stock_type",
          "strike",
          "surface",
          "termination_date",
          "total_amount",
          "type",
          "variety_standard_deviation",
          "yield"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "contracts"
  ],
  "title": "Contract - DefaultContract",
  "type": "object"
}

JSON instance

{
  "contracts": [
    {
      "amount_to_deliver": 120,
      "authorized_unlock": false,
      "commencement_date": "2020-07-01T00:00:00",
      "commodity": "COM",
      "crm_id": "328548-000",
      "date": "2020-07-20T00:00:00",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "gain": 0,
      "id": "238802",
      "is_closed": false,
      "maturity": "FEB-21",
      "minimum_price": 345,
      "name": "Contrat Euronext",
      "price": 354,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "stock_type": 0,
      "strike": 362,
      "surface": 0,
      "termination_date": "2020-08-31T00:00:00",
      "total_amount": 120,
      "type": "AE1",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "warranty_cost": 9,
      "yield": "0.000"
    },
    {
      "amount_to_deliver": 20,
      "authorized_unlock": false,
      "commencement_date": "2020-09-01T00:00:00",
      "commodity": "COM",
      "crm_id": "328528-001",
      "date": "2020-08-13T00:00:00",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "gain": 0,
      "id": "238782",
      "is_closed": false,
      "maturity": "AUG-20",
      "minimum_price": 343,
      "name": "Contrat Euronext",
      "price": 354,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "stock_type": 0,
      "strike": 358,
      "surface": 0,
      "termination_date": "2020-12-31T00:00:00",
      "total_amount": 20,
      "type": "AE1",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "warranty_cost": 11,
      "yield": "0.000"
    },
    {
      "amount_to_deliver": 0,
      "authorized_unlock": false,
      "commencement_date": "2020-07-01T00:00:00",
      "commodity": "COM",
      "crm_id": "328528-000",
      "date": "2020-04-16T00:00:00",
      "delivered_amount": 10,
      "delivery": [
        {
          "characteristics": [
            {
              "code": "01",
              "label": "Humidité",
              "value": "9.000"
            },
            {
              "code": "02",
              "label": "Impuretés",
              "value": "0.000"
            }
          ],
          "contractualizable_offer": false,
          "date": "2020-08-13T00:00:00",
          "delivery_mode_code": "RDU2",
          "delivery_number": "4651-1",
          "net_amount": 10,
          "normed_amount": 10,
          "place_id": "0004",
          "product_name": "COLZA D HIVER",
          "site_label": "PLEURS",
          "stock_type": 0
        }
      ],
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "gain": 4,
      "id": "238782",
      "is_closed": false,
      "maturity": "AUG-20",
      "minimum_price": 343,
      "name": "Contrat Euronext",
      "price": 354,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "settlements": [
        {
          "amount": 30,
          "date": "2020-08-13T00:00:00",
          "price": 362,
          "status": 0
        }
      ],
      "stock_type": 0,
      "strike": 358,
      "surface": 0,
      "termination_date": "2020-08-31T00:00:00",
      "total_amount": 30,
      "type": "AE1",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "warranty_cost": 11,
      "yield": "0.000"
    },
    {
      "amount_to_deliver": 0,
      "authorized_unlock": false,
      "commencement_date": "2020-07-01T00:00:00",
      "crm_id": "328510-000",
      "date": "2020-02-12T00:00:00",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "id": "238766",
      "is_closed": false,
      "name": "Contrat Prix Ferme",
      "price": 360,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "stock_type": 0,
      "strike": 0,
      "surface": 0,
      "termination_date": "2020-08-31T00:00:00",
      "total_amount": 10,
      "type": "APF",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "yield": "0.000"
    }
  ]
}

Validation #965

Failure

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

  • The property '#/contracts/0' contains additional properties ["authorized_unlock"] outside of the schema when none are allowed in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/0/fiscal_year' did not have a maximum value of 2018, inclusively in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/0/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/0/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/0/yield' of type string did not match the following type: null
  • The property '#/contracts/0' did not contain a required property of 'closing_date' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/0' did not contain a required property of 'commodity_id' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/0' did not contain a required property of 'contracts' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/0' did not contain a required property of 'itk_feedback' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/0' did not contain a required property of 'maturity_id' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/0' did not contain a required property of 'orgette_price' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/0' did not contain a required property of 'samples' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/0' did not contain a required property of 'settlement_price' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/0' did not contain a required property of 'special_bonus' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1' contains additional properties ["authorized_unlock"] outside of the schema when none are allowed in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1/fiscal_year' did not have a maximum value of 2018, inclusively in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/1/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/1/yield' of type string did not match the following type: null
  • The property '#/contracts/1' did not contain a required property of 'closing_date' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1' did not contain a required property of 'commodity_id' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1' did not contain a required property of 'contracts' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1' did not contain a required property of 'itk_feedback' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1' did not contain a required property of 'maturity_id' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1' did not contain a required property of 'orgette_price' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1' did not contain a required property of 'samples' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1' did not contain a required property of 'settlement_price' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1' did not contain a required property of 'special_bonus' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2' contains additional properties ["authorized_unlock", "delivery"] outside of the schema when none are allowed in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2/fiscal_year' did not have a maximum value of 2018, inclusively in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/2/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/2/yield' of type string did not match the following type: null
  • The property '#/contracts/2' did not contain a required property of 'closing_date' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2' did not contain a required property of 'commodity_id' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2' did not contain a required property of 'contracts' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2' did not contain a required property of 'itk_feedback' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2' did not contain a required property of 'maturity_id' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2' did not contain a required property of 'orgette_price' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2' did not contain a required property of 'samples' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2' did not contain a required property of 'settlement_price' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2' did not contain a required property of 'special_bonus' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' contains additional properties ["authorized_unlock"] outside of the schema when none are allowed in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3/fiscal_year' did not have a maximum value of 2018, inclusively in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/3/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/3/yield' of type string did not match the following type: null
  • The property '#/contracts/3' did not contain a required property of 'closing_date' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'commodity' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'commodity_id' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'contracts' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'gain' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'itk_feedback' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'maturity' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'maturity_id' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'orgette_price' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'samples' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'settlement_price' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'special_bonus' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb

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": {
          "anyOf": [
            {
              "description": "backend Data (settlement_price) : closingDate",
              "format": "date",
              "type": "string"
            },
            {
              "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": 2018,
          "minimum": 2017,
          "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": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "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",
        "closing_date",
        "commencement_date",
        "commodity",
        "commodity_id",
        "contracts",
        "crm_id",
        "date",
        "delivered_amount",
        "deposited_amount",
        "fiscal_year",
        "gain",
        "id",
        "is_closed",
        "itk_feedback",
        "maturity",
        "maturity_id",
        "name",
        "orgette_price",
        "price",
        "product_code",
        "product_name",
        "quality_bonus",
        "samples",
        "settlement_price",
        "special_bonus",
        "stock_type",
        "strike",
        "surface",
        "termination_date",
        "total_amount",
        "type",
        "variety_standard_deviation",
        "yield"
      ],
      "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": {
            "anyOf": [
              {
                "description": "backend Data (settlement_price) : closingDate",
                "format": "date",
                "type": "string"
              },
              {
                "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": 2018,
            "minimum": 2017,
            "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": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "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",
          "closing_date",
          "commencement_date",
          "commodity",
          "commodity_id",
          "contracts",
          "crm_id",
          "date",
          "delivered_amount",
          "deposited_amount",
          "fiscal_year",
          "gain",
          "id",
          "is_closed",
          "itk_feedback",
          "maturity",
          "maturity_id",
          "name",
          "orgette_price",
          "price",
          "product_code",
          "product_name",
          "quality_bonus",
          "samples",
          "settlement_price",
          "special_bonus",
          "stock_type",
          "strike",
          "surface",
          "termination_date",
          "total_amount",
          "type",
          "variety_standard_deviation",
          "yield"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "contracts"
  ],
  "title": "Contract - DefaultContract",
  "type": "object"
}

JSON instance

{
  "contracts": [
    {
      "amount_to_deliver": 120,
      "authorized_unlock": false,
      "commencement_date": "2020-07-01T00:00:00",
      "commodity": "COM",
      "crm_id": "328548-000",
      "date": "2020-07-20T00:00:00",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "gain": 0,
      "id": "238802",
      "is_closed": false,
      "maturity": "FEB-21",
      "minimum_price": 345,
      "name": "Contrat Euronext",
      "price": 354,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "stock_type": 0,
      "strike": 362,
      "surface": 0,
      "termination_date": "2020-08-31T00:00:00",
      "total_amount": 120,
      "type": "AE1",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "warranty_cost": 9,
      "yield": "0.000"
    },
    {
      "amount_to_deliver": 20,
      "authorized_unlock": false,
      "commencement_date": "2020-09-01T00:00:00",
      "commodity": "COM",
      "crm_id": "328528-001",
      "date": "2020-08-13T00:00:00",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "gain": 0,
      "id": "238782",
      "is_closed": false,
      "maturity": "AUG-20",
      "minimum_price": 343,
      "name": "Contrat Euronext",
      "price": 354,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "stock_type": 0,
      "strike": 358,
      "surface": 0,
      "termination_date": "2020-12-31T00:00:00",
      "total_amount": 20,
      "type": "AE1",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "warranty_cost": 11,
      "yield": "0.000"
    },
    {
      "amount_to_deliver": 0,
      "authorized_unlock": false,
      "commencement_date": "2020-07-01T00:00:00",
      "commodity": "COM",
      "crm_id": "328528-000",
      "date": "2020-04-16T00:00:00",
      "delivered_amount": 10,
      "delivery": [
        {
          "characteristics": [
            {
              "code": "01",
              "label": "Humidité",
              "value": "9.000"
            },
            {
              "code": "02",
              "label": "Impuretés",
              "value": "0.000"
            }
          ],
          "contractualizable_offer": false,
          "date": "2020-08-13T00:00:00",
          "delivery_mode_code": "RDU2",
          "delivery_number": "4651-1",
          "net_amount": 10,
          "normed_amount": 10,
          "place_id": "0004",
          "product_name": "COLZA D HIVER",
          "site_label": "PLEURS",
          "stock_type": 0
        }
      ],
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "gain": 4,
      "id": "238782",
      "is_closed": false,
      "maturity": "AUG-20",
      "minimum_price": 343,
      "name": "Contrat Euronext",
      "price": 354,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "settlements": [
        {
          "amount": 30,
          "date": "2020-08-13T00:00:00",
          "price": 362,
          "status": 0
        }
      ],
      "stock_type": 0,
      "strike": 358,
      "surface": 0,
      "termination_date": "2020-08-31T00:00:00",
      "total_amount": 30,
      "type": "AE1",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "warranty_cost": 11,
      "yield": "0.000"
    },
    {
      "amount_to_deliver": 0,
      "authorized_unlock": false,
      "commencement_date": "2020-07-01T00:00:00",
      "crm_id": "328510-000",
      "date": "2020-02-12T00:00:00",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "id": "238766",
      "is_closed": false,
      "name": "Contrat Prix Ferme",
      "price": 360,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "stock_type": 0,
      "strike": 0,
      "surface": 0,
      "termination_date": "2020-08-31T00:00:00",
      "total_amount": 10,
      "type": "APF",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "yield": "0.000"
    }
  ]
}

Validation #964

Failure

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

  • The property '#/contracts/0' contains additional properties ["authorized_unlock"] outside of the schema when none are allowed in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/0/fiscal_year' did not have a maximum value of 2018, inclusively in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/0/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/0/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/0/yield' of type string did not match the following type: null
  • The property '#/contracts/0' did not contain a required property of 'closing_date' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/0' did not contain a required property of 'commodity_id' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/0' did not contain a required property of 'contracts' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/0' did not contain a required property of 'itk_feedback' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/0' did not contain a required property of 'maturity_id' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/0' did not contain a required property of 'orgette_price' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/0' did not contain a required property of 'samples' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/0' did not contain a required property of 'settlement_price' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/0' did not contain a required property of 'special_bonus' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1' contains additional properties ["authorized_unlock"] outside of the schema when none are allowed in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1/fiscal_year' did not have a maximum value of 2018, inclusively in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/1/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/1/yield' of type string did not match the following type: null
  • The property '#/contracts/1' did not contain a required property of 'closing_date' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1' did not contain a required property of 'commodity_id' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1' did not contain a required property of 'contracts' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1' did not contain a required property of 'itk_feedback' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1' did not contain a required property of 'maturity_id' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1' did not contain a required property of 'orgette_price' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1' did not contain a required property of 'samples' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1' did not contain a required property of 'settlement_price' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1' did not contain a required property of 'special_bonus' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2' contains additional properties ["authorized_unlock", "delivery"] outside of the schema when none are allowed in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2/fiscal_year' did not have a maximum value of 2018, inclusively in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/2/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/2/yield' of type string did not match the following type: null
  • The property '#/contracts/2' did not contain a required property of 'closing_date' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2' did not contain a required property of 'commodity_id' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2' did not contain a required property of 'contracts' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2' did not contain a required property of 'itk_feedback' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2' did not contain a required property of 'maturity_id' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2' did not contain a required property of 'orgette_price' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2' did not contain a required property of 'samples' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2' did not contain a required property of 'settlement_price' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2' did not contain a required property of 'special_bonus' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' contains additional properties ["authorized_unlock"] outside of the schema when none are allowed in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3/fiscal_year' did not have a maximum value of 2018, inclusively in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/3/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/3/yield' of type string did not match the following type: null
  • The property '#/contracts/3' did not contain a required property of 'closing_date' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'commodity' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'commodity_id' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'contracts' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'gain' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'itk_feedback' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'maturity' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'maturity_id' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'orgette_price' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'samples' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'settlement_price' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'special_bonus' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb

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": {
          "anyOf": [
            {
              "description": "backend Data (settlement_price) : closingDate",
              "format": "date",
              "type": "string"
            },
            {
              "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": 2018,
          "minimum": 2017,
          "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": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "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",
        "closing_date",
        "commencement_date",
        "commodity",
        "commodity_id",
        "contracts",
        "crm_id",
        "date",
        "delivered_amount",
        "deposited_amount",
        "fiscal_year",
        "gain",
        "id",
        "is_closed",
        "itk_feedback",
        "maturity",
        "maturity_id",
        "name",
        "orgette_price",
        "price",
        "product_code",
        "product_name",
        "quality_bonus",
        "samples",
        "settlement_price",
        "special_bonus",
        "stock_type",
        "strike",
        "surface",
        "termination_date",
        "total_amount",
        "type",
        "variety_standard_deviation",
        "yield"
      ],
      "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": {
            "anyOf": [
              {
                "description": "backend Data (settlement_price) : closingDate",
                "format": "date",
                "type": "string"
              },
              {
                "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": 2018,
            "minimum": 2017,
            "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": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "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",
          "closing_date",
          "commencement_date",
          "commodity",
          "commodity_id",
          "contracts",
          "crm_id",
          "date",
          "delivered_amount",
          "deposited_amount",
          "fiscal_year",
          "gain",
          "id",
          "is_closed",
          "itk_feedback",
          "maturity",
          "maturity_id",
          "name",
          "orgette_price",
          "price",
          "product_code",
          "product_name",
          "quality_bonus",
          "samples",
          "settlement_price",
          "special_bonus",
          "stock_type",
          "strike",
          "surface",
          "termination_date",
          "total_amount",
          "type",
          "variety_standard_deviation",
          "yield"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "contracts"
  ],
  "title": "Contract - DefaultContract",
  "type": "object"
}

JSON instance

{
  "contracts": [
    {
      "amount_to_deliver": 120,
      "authorized_unlock": false,
      "commencement_date": "2020-07-01T00:00:00",
      "commodity": "COM",
      "crm_id": "328548-000",
      "date": "2020-07-20T00:00:00",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "gain": 0,
      "id": "238802",
      "is_closed": false,
      "maturity": "FEB-21",
      "minimum_price": 345,
      "name": "Contrat Euronext",
      "price": 354,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "stock_type": 0,
      "strike": 362,
      "surface": 0,
      "termination_date": "2020-08-31T00:00:00",
      "total_amount": 120,
      "type": "AE1",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "warranty_cost": 9,
      "yield": "0.000"
    },
    {
      "amount_to_deliver": 20,
      "authorized_unlock": false,
      "commencement_date": "2020-09-01T00:00:00",
      "commodity": "COM",
      "crm_id": "328528-001",
      "date": "2020-08-13T00:00:00",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "gain": 0,
      "id": "238782",
      "is_closed": false,
      "maturity": "AUG-20",
      "minimum_price": 343,
      "name": "Contrat Euronext",
      "price": 354,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "stock_type": 0,
      "strike": 358,
      "surface": 0,
      "termination_date": "2020-12-31T00:00:00",
      "total_amount": 20,
      "type": "AE1",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "warranty_cost": 11,
      "yield": "0.000"
    },
    {
      "amount_to_deliver": 0,
      "authorized_unlock": false,
      "commencement_date": "2020-07-01T00:00:00",
      "commodity": "COM",
      "crm_id": "328528-000",
      "date": "2020-04-16T00:00:00",
      "delivered_amount": 10,
      "delivery": [
        {
          "characteristics": [
            {
              "code": "01",
              "label": "Humidité",
              "value": "9.000"
            },
            {
              "code": "02",
              "label": "Impuretés",
              "value": "0.000"
            }
          ],
          "contractualizable_offer": false,
          "date": "2020-08-13T00:00:00",
          "delivery_mode_code": "RDU2",
          "delivery_number": "4651-1",
          "net_amount": 10,
          "normed_amount": 10,
          "place_id": "0004",
          "product_name": "COLZA D HIVER",
          "site_label": "PLEURS",
          "stock_type": 0
        }
      ],
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "gain": 4,
      "id": "238782",
      "is_closed": false,
      "maturity": "AUG-20",
      "minimum_price": 343,
      "name": "Contrat Euronext",
      "price": 354,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "settlements": [
        {
          "amount": 30,
          "date": "2020-08-13T00:00:00",
          "price": 362,
          "status": 0
        }
      ],
      "stock_type": 0,
      "strike": 358,
      "surface": 0,
      "termination_date": "2020-08-31T00:00:00",
      "total_amount": 30,
      "type": "AE1",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "warranty_cost": 11,
      "yield": "0.000"
    },
    {
      "amount_to_deliver": 0,
      "authorized_unlock": false,
      "commencement_date": "2020-07-01T00:00:00",
      "crm_id": "328510-000",
      "date": "2020-02-12T00:00:00",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "id": "238766",
      "is_closed": false,
      "name": "Contrat Prix Ferme",
      "price": 360,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "stock_type": 0,
      "strike": 0,
      "surface": 0,
      "termination_date": "2020-08-31T00:00:00",
      "total_amount": 10,
      "type": "APF",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "yield": "0.000"
    }
  ]
}

Validation #963

Failure

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

  • The property '#/contracts/0' contains additional properties ["authorized_unlock"] outside of the schema when none are allowed in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/0/fiscal_year' did not have a maximum value of 2018, inclusively in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/0/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/0/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/0/yield' of type string did not match the following type: null
  • The property '#/contracts/0' did not contain a required property of 'closing_date' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/0' did not contain a required property of 'commodity_id' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/0' did not contain a required property of 'contracts' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/0' did not contain a required property of 'itk_feedback' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/0' did not contain a required property of 'maturity_id' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/0' did not contain a required property of 'orgette_price' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/0' did not contain a required property of 'samples' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/0' did not contain a required property of 'settlement_price' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/0' did not contain a required property of 'special_bonus' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1' contains additional properties ["authorized_unlock"] outside of the schema when none are allowed in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1/fiscal_year' did not have a maximum value of 2018, inclusively in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/1/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/1/yield' of type string did not match the following type: null
  • The property '#/contracts/1' did not contain a required property of 'closing_date' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1' did not contain a required property of 'commodity_id' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1' did not contain a required property of 'contracts' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1' did not contain a required property of 'itk_feedback' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1' did not contain a required property of 'maturity_id' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1' did not contain a required property of 'orgette_price' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1' did not contain a required property of 'samples' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1' did not contain a required property of 'settlement_price' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/1' did not contain a required property of 'special_bonus' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2' contains additional properties ["authorized_unlock", "delivery"] outside of the schema when none are allowed in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2/fiscal_year' did not have a maximum value of 2018, inclusively in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/2/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/2/yield' of type string did not match the following type: null
  • The property '#/contracts/2' did not contain a required property of 'closing_date' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2' did not contain a required property of 'commodity_id' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2' did not contain a required property of 'contracts' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2' did not contain a required property of 'itk_feedback' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2' did not contain a required property of 'maturity_id' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2' did not contain a required property of 'orgette_price' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2' did not contain a required property of 'samples' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2' did not contain a required property of 'settlement_price' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/2' did not contain a required property of 'special_bonus' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' contains additional properties ["authorized_unlock"] outside of the schema when none are allowed in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3/fiscal_year' did not have a maximum value of 2018, inclusively in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3/yield' of type string did not match one or more of the required schemas. The schema specific errors were: - anyOf #0: - The property '#/contracts/3/yield' of type string did not match the following type: number - anyOf #1: - The property '#/contracts/3/yield' of type string did not match the following type: null
  • The property '#/contracts/3' did not contain a required property of 'closing_date' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'commodity' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'commodity_id' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'contracts' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'gain' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'itk_feedback' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'maturity' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'maturity_id' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'orgette_price' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'samples' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'settlement_price' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb
  • The property '#/contracts/3' did not contain a required property of 'special_bonus' in schema b81e3ef1-3ebd-55e7-ac1a-f009d5470cbb

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": {
          "anyOf": [
            {
              "description": "backend Data (settlement_price) : closingDate",
              "format": "date",
              "type": "string"
            },
            {
              "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": 2018,
          "minimum": 2017,
          "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": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "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",
        "closing_date",
        "commencement_date",
        "commodity",
        "commodity_id",
        "contracts",
        "crm_id",
        "date",
        "delivered_amount",
        "deposited_amount",
        "fiscal_year",
        "gain",
        "id",
        "is_closed",
        "itk_feedback",
        "maturity",
        "maturity_id",
        "name",
        "orgette_price",
        "price",
        "product_code",
        "product_name",
        "quality_bonus",
        "samples",
        "settlement_price",
        "special_bonus",
        "stock_type",
        "strike",
        "surface",
        "termination_date",
        "total_amount",
        "type",
        "variety_standard_deviation",
        "yield"
      ],
      "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": {
            "anyOf": [
              {
                "description": "backend Data (settlement_price) : closingDate",
                "format": "date",
                "type": "string"
              },
              {
                "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": 2018,
            "minimum": 2017,
            "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": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "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",
          "closing_date",
          "commencement_date",
          "commodity",
          "commodity_id",
          "contracts",
          "crm_id",
          "date",
          "delivered_amount",
          "deposited_amount",
          "fiscal_year",
          "gain",
          "id",
          "is_closed",
          "itk_feedback",
          "maturity",
          "maturity_id",
          "name",
          "orgette_price",
          "price",
          "product_code",
          "product_name",
          "quality_bonus",
          "samples",
          "settlement_price",
          "special_bonus",
          "stock_type",
          "strike",
          "surface",
          "termination_date",
          "total_amount",
          "type",
          "variety_standard_deviation",
          "yield"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "contracts"
  ],
  "title": "Contract - DefaultContract",
  "type": "object"
}

JSON instance

{
  "contracts": [
    {
      "amount_to_deliver": 120,
      "authorized_unlock": false,
      "commencement_date": "2020-07-01T00:00:00",
      "commodity": "COM",
      "crm_id": "328548-000",
      "date": "2020-07-20T00:00:00",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "gain": 0,
      "id": "238802",
      "is_closed": false,
      "maturity": "FEB-21",
      "minimum_price": 345,
      "name": "Contrat Euronext",
      "price": 354,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "stock_type": 0,
      "strike": 362,
      "surface": 0,
      "termination_date": "2020-08-31T00:00:00",
      "total_amount": 120,
      "type": "AE1",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "warranty_cost": 9,
      "yield": "0.000"
    },
    {
      "amount_to_deliver": 20,
      "authorized_unlock": false,
      "commencement_date": "2020-09-01T00:00:00",
      "commodity": "COM",
      "crm_id": "328528-001",
      "date": "2020-08-13T00:00:00",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "gain": 0,
      "id": "238782",
      "is_closed": false,
      "maturity": "AUG-20",
      "minimum_price": 343,
      "name": "Contrat Euronext",
      "price": 354,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "stock_type": 0,
      "strike": 358,
      "surface": 0,
      "termination_date": "2020-12-31T00:00:00",
      "total_amount": 20,
      "type": "AE1",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "warranty_cost": 11,
      "yield": "0.000"
    },
    {
      "amount_to_deliver": 0,
      "authorized_unlock": false,
      "commencement_date": "2020-07-01T00:00:00",
      "commodity": "COM",
      "crm_id": "328528-000",
      "date": "2020-04-16T00:00:00",
      "delivered_amount": 10,
      "delivery": [
        {
          "characteristics": [
            {
              "code": "01",
              "label": "Humidité",
              "value": "9.000"
            },
            {
              "code": "02",
              "label": "Impuretés",
              "value": "0.000"
            }
          ],
          "contractualizable_offer": false,
          "date": "2020-08-13T00:00:00",
          "delivery_mode_code": "RDU2",
          "delivery_number": "4651-1",
          "net_amount": 10,
          "normed_amount": 10,
          "place_id": "0004",
          "product_name": "COLZA D HIVER",
          "site_label": "PLEURS",
          "stock_type": 0
        }
      ],
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "gain": 4,
      "id": "238782",
      "is_closed": false,
      "maturity": "AUG-20",
      "minimum_price": 343,
      "name": "Contrat Euronext",
      "price": 354,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "settlements": [
        {
          "amount": 30,
          "date": "2020-08-13T00:00:00",
          "price": 362,
          "status": 0
        }
      ],
      "stock_type": 0,
      "strike": 358,
      "surface": 0,
      "termination_date": "2020-08-31T00:00:00",
      "total_amount": 30,
      "type": "AE1",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "warranty_cost": 11,
      "yield": "0.000"
    },
    {
      "amount_to_deliver": 0,
      "authorized_unlock": false,
      "commencement_date": "2020-07-01T00:00:00",
      "crm_id": "328510-000",
      "date": "2020-02-12T00:00:00",
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "id": "238766",
      "is_closed": false,
      "name": "Contrat Prix Ferme",
      "price": 360,
      "product_code": "000129",
      "product_name": "COLZA D HIVER",
      "quality_bonus": 0,
      "stock_type": 0,
      "strike": 0,
      "surface": 0,
      "termination_date": "2020-08-31T00:00:00",
      "total_amount": 10,
      "type": "APF",
      "variety": "COL",
      "variety_name": "COLZA",
      "variety_standard_deviation": 0,
      "yield": "0.000"
    }
  ]
}