Validations history

Validation #891

Failure

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

  • The property '#/' contains additional properties ["farm", "language"] outside of the schema when none are allowed in schema 903247fd-b8d4-5db8-9000-67a7d11913e3
  • The property '#/' did not contain a required property of 'customer_number' in schema 903247fd-b8d4-5db8-9000-67a7d11913e3
  • The property '#/' did not contain a required property of 'provider' in schema 903247fd-b8d4-5db8-9000-67a7d11913e3
  • The property '#/' did not contain a required property of 'zip_code' in schema 903247fd-b8d4-5db8-9000-67a7d11913e3

JSON Schema

{
  "additionalProperties": false,
  "properties": {
    "customer_number": {
      "description": "numClient",
      "pattern": "\\d*",
      "type": "string"
    },
    "provider": {
      "description": "provider, mandatory for international farm",
      "enum": [
        "AGR",
        "AGR-INT"
      ],
      "type": "string"
    },
    "zip_code": {
      "description": "zipCode",
      "pattern": "^(([0-8][0-9])|(9[0-5])|(2[ab]))[0-9]{3}$",
      "type": "string"
    }
  },
  "required": [
    "customer_number",
    "provider",
    "zip_code"
  ],
  "title": "Farm - NewFarm",
  "type": "object"
}

JSON instance

{
  "farm": {
    "customer_number": "98002849",
    "farm_subscriptions": [],
    "provider": "AGR",
    "zip_code": "10400"
  },
  "language": "fr-FR"
}

Validation #890

Success

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

JSON Schema

{
  "additionalProperties": false,
  "properties": {
    "country_code": {
      "type": "string"
    },
    "email": {
      "format": "email",
      "type": "string"
    },
    "eula_version": {
      "anyOf": [
        {
          "pattern": "^(\\d+)(\\.\\d+)(\\.\\d+)?$",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "first_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "language": {
      "type": "string"
    },
    "last_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "mobile_number": {
      "anyOf": [
        {
          "maxLength": 10,
          "minLength": 9,
          "pattern": "\\d+",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "password": {
      "type": "string"
    },
    "phone_number": {
      "anyOf": [
        {
          "pattern": "^(?:(?:\\+|00)[1-9]{0,3}|0)\\s*[1-9](?:[\\s.-]*\\d{2}){4}",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "zip_code": {
      "anyOf": [
        {
          "pattern": "^(([0-8][0-9])|(9[0-5])|(2[ab]))[0-9]{3}$",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "eula_version"
  ],
  "title": "User - EditUser",
  "type": "object"
}

JSON instance

{
  "eula_version": "5.0.0",
  "language": "cs-CZ"
}

Validation #889

Success

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

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "SuggestedFarm_1502": {
      "additionalProperties": false,
      "properties": {
        "can_be_added": {
          "description": "isOwner",
          "type": "boolean"
        },
        "corporate_name": {
          "description": "raisonSociale",
          "type": "string"
        }
      },
      "required": [
        "can_be_added",
        "corporate_name"
      ],
      "title": "Farm - SuggestedFarm",
      "type": "object"
    }
  },
  "properties": {
    "data": {
      "additionalProperties": false,
      "properties": {
        "confirmed": {
          "type": "boolean"
        },
        "country_code": {
          "type": "string"
        },
        "email": {
          "format": "email",
          "type": "string"
        },
        "eula_version": {
          "anyOf": [
            {
              "pattern": "^(\\d+)(\\.\\d+)(\\.\\d+)?$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "first_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "minimum": 0,
          "type": "integer"
        },
        "is_guest": {
          "type": "boolean"
        },
        "language": {
          "type": "string"
        },
        "last_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "mobile_number": {
          "anyOf": [
            {
              "maxLength": 10,
              "minLength": 9,
              "pattern": "\\d+",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "phone_number": {
          "anyOf": [
            {
              "pattern": "^(?:(?:\\+|00)[1-9]{0,3}|0)\\s*[1-9](?:[\\s.-]*\\d{2}){4}",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "provider": {
          "type": "string"
        },
        "suggested_farms": {
          "items": {
            "$ref": "#/definitions/SuggestedFarm_1502",
            "type": "object"
          },
          "type": "array"
        },
        "type": {
          "enum": [
            "Guest",
            "Lead",
            "Customer",
            "Commercial",
            "ChefRegion",
            "DskCol"
          ],
          "type": "string"
        },
        "typology_value": {
          "maximum": 2,
          "minimum": 0,
          "type": "integer"
        },
        "uid": {
          "type": "string"
        },
        "zip_code": {
          "anyOf": [
            {
              "pattern": "^(([0-8][0-9])|(9[0-5])|(2[ab]))[0-9]{3}$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "confirmed",
        "country_code",
        "email",
        "eula_version",
        "id",
        "last_name",
        "provider",
        "suggested_farms",
        "type",
        "typology_value",
        "uid",
        "zip_code"
      ],
      "type": "object"
    },
    "status": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "data"
  ],
  "title": "User - AuthentifiedUser",
  "type": "object"
}

JSON instance

{
  "data": {
    "confirmed": true,
    "country_code": "CZ",
    "email": "PKNAIZLOVA@SOUFFLET.COM",
    "eula_version": null,
    "first_name": "Pavla",
    "id": 147260,
    "last_name": "KNAIZLOVÁ",
    "provider": "email",
    "suggested_farms": [],
    "type": "Commercial",
    "typology_value": 2,
    "uid": "UEtOQUlaTE9WQUBTT1VGRkxFVC5DT00=",
    "zip_code": "30068"
  },
  "status": "success"
}

Validation #888

Failure

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

  • The property '#/' contains additional properties ["language"] outside of the schema when none are allowed in schema 03390ce4-0007-5b89-a4fe-4fdfb6da6cf9

JSON Schema

{
  "additionalProperties": false,
  "properties": {
    "email": {
      "format": "email",
      "type": "string"
    },
    "password": {
      "type": "string"
    }
  },
  "required": [
    "email",
    "password"
  ],
  "title": "User - SignInUser",
  "type": "object"
}

JSON instance

{
  "email": "pknaizlova@soufflet.com",
  "language": "cs-CZ",
  "password": "454072"
}

Validation #855

Failure

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

  • The property '#/' contains additional properties ["place", "product_quantity", "contract_subsidiary", "product_production", "customer_number", "transport", "product_name", "product_unit", "vehicle_number", "contract_specificity", "product_variety", "language"] outside of the schema when none are allowed in schema f564175c-82d0-55f7-8a72-996da6a65ba4
  • The property '#/' did not contain a required property of 'delivery_note' in schema f564175c-82d0-55f7-8a72-996da6a65ba4

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "CreateDeliveryNoteSilo_2482": {
      "additionalProperties": false,
      "properties": {
        "email": {
          "format": "email",
          "type": "string"
        },
        "id": {
          "pattern": "\\d*",
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "email",
        "id",
        "name"
      ],
      "title": "Silo - CreateDeliveryNoteSilo",
      "type": "object"
    },
    "DefaultInsecticideTreatment_2483": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "application_date": {
          "format": "date",
          "type": "string"
        },
        "product": {
          "type": "string"
        },
        "quantity": {
          "type": "number"
        },
        "type": {
          "type": "string"
        },
        "unit": {
          "type": "string"
        }
      },
      "required": [
        "application_date",
        "product",
        "quantity",
        "type",
        "unit"
      ],
      "title": "InsecticideTreatment - DefaultInsecticideTreatment",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "delivery_note": {
      "additionalProperties": false,
      "properties": {
        "contract_specificity": {
          "type": "string"
        },
        "contract_subsidiary": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "customer_number": {
          "type": "string"
        },
        "insecticide": {
          "anyOf": [
            {
              "$ref": "#/definitions/DefaultInsecticideTreatment_2483",
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "place": {
          "anyOf": [
            {
              "$ref": "#/definitions/CreateDeliveryNoteSilo_2482",
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "product_name": {
          "type": "string"
        },
        "product_production": {
          "type": "string"
        },
        "product_quantity": {
          "type": "integer"
        },
        "product_unit": {
          "description": "kg/t, L/100t",
          "type": "string"
        },
        "product_variety": {
          "type": "string"
        },
        "transport": {
          "type": "string"
        },
        "vehicle_number": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "zip_code": {
          "type": "string"
        }
      },
      "required": [
        "contract_specificity",
        "contract_subsidiary",
        "customer_number",
        "insecticide",
        "place",
        "product_name",
        "product_production",
        "product_quantity",
        "product_unit",
        "product_variety",
        "transport",
        "vehicle_number"
      ],
      "type": "object"
    }
  },
  "required": [
    "delivery_note"
  ],
  "title": "DeliveryNote - CreateDeliveryNote",
  "type": "object"
}

JSON instance

{
  "contract_specificity": "Aucune",
  "contract_subsidiary": null,
  "customer_number": "98001605",
  "language": "fr-FR",
  "place": {
    "email": "recettesoufflet01+silo@gmail.com",
    "id": 0,
    "name": "SARRAIL NOGENT S SEINE"
  },
  "product_name": "Blé dur",
  "product_production": "Conventionnel",
  "product_quantity": 1,
  "product_unit": "t",
  "product_variety": "Test",
  "transport": "Soufflet",
  "vehicle_number": "Test"
}

Validation #854

Failure

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

  • The property '#/market_note' did not contain a required property of 'broadcast' in schema fb9ac43c-7dd1-5dbf-abf7-b1da9752858b
  • The property '#/market_note' did not contain a required property of 'can_read' in schema fb9ac43c-7dd1-5dbf-abf7-b1da9752858b
  • The property '#/market_note' did not contain a required property of 'category' in schema fb9ac43c-7dd1-5dbf-abf7-b1da9752858b
  • The property '#/market_note' did not contain a required property of 'creation_date' in schema fb9ac43c-7dd1-5dbf-abf7-b1da9752858b
  • The property '#/market_note' did not contain a required property of 'culture' in schema fb9ac43c-7dd1-5dbf-abf7-b1da9752858b
  • The property '#/market_note' did not contain a required property of 'description' in schema fb9ac43c-7dd1-5dbf-abf7-b1da9752858b
  • The property '#/market_note' did not contain a required property of 'id' in schema fb9ac43c-7dd1-5dbf-abf7-b1da9752858b
  • The property '#/market_note' did not contain a required property of 'link' in schema fb9ac43c-7dd1-5dbf-abf7-b1da9752858b
  • The property '#/market_note' did not contain a required property of 'news_channel' in schema fb9ac43c-7dd1-5dbf-abf7-b1da9752858b
  • The property '#/market_note' did not contain a required property of 'picture_url' in schema fb9ac43c-7dd1-5dbf-abf7-b1da9752858b
  • The property '#/market_note' did not contain a required property of 'title' in schema fb9ac43c-7dd1-5dbf-abf7-b1da9752858b
  • The property '#/market_note' did not contain a required property of 'typology' in schema fb9ac43c-7dd1-5dbf-abf7-b1da9752858b
  • The property '#/market_note' did not contain a required property of 'typology_value' in schema fb9ac43c-7dd1-5dbf-abf7-b1da9752858b

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "NewsContentChannel_448": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "minimum": 1,
          "type": "integer"
        },
        "is_corporate": {
          "maximum": 1,
          "minimum": 0,
          "type": "integer"
        },
        "is_native": {
          "maximum": 1,
          "minimum": 0,
          "type": "integer"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "is_corporate",
        "is_native",
        "name"
      ],
      "title": "NewsChannel - NewsContentChannel",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "market_note": {
      "additionalProperties": false,
      "properties": {
        "broadcast": {
          "enum": [
            "Actualités",
            "Cultures",
            "Marchés",
            "Messages",
            "Note de marché du jour"
          ],
          "type": "string"
        },
        "can_read": {
          "type": "boolean"
        },
        "category": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "creation_date": {
          "format": "date-time",
          "type": "string"
        },
        "culture": {
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "minimum": 1,
          "type": "integer"
        },
        "link": {
          "anyOf": [
            {
              "format": "uri",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "news_channel": {
          "$ref": "#/definitions/NewsContentChannel_448",
          "type": "object"
        },
        "picture_url": {
          "anyOf": [
            {
              "format": "uri",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "title": {
          "type": "string"
        },
        "typology": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "typology_value": {
          "maximum": 2,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "broadcast",
        "can_read",
        "category",
        "creation_date",
        "culture",
        "description",
        "id",
        "link",
        "news_channel",
        "picture_url",
        "title",
        "typology",
        "typology_value"
      ],
      "type": "object"
    }
  },
  "required": [
    "market_note"
  ],
  "title": "NewsContent - DefaultNewsContent",
  "type": "object"
}

JSON instance

{
  "market_note": {}
}

Validation #853

Failure

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

  • The property '#/collections/0/delivered_amount' did not have a minimum value of 0, inclusively in schema 26257178-942c-5144-ad0b-2e1286264748

JSON Schema

{
  "additionalProperties": false,
  "description": "Automatically generated (please edit me)",
  "properties": {
    "collections": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "amount_to_deliver": {
            "description": "amount_to_deliver",
            "minimum": 0,
            "type": "number"
          },
          "contracted_amount": {
            "description": "contracted_amount",
            "minimum": 0,
            "type": "number"
          },
          "delivered_amount": {
            "description": "delivered_amount",
            "minimum": 0,
            "type": "number"
          },
          "deposited_amount": {
            "description": "deposited_amount",
            "minimum": 0,
            "type": "number"
          },
          "fiscal_year": {
            "description": "campagne",
            "maximum": 2050,
            "minimum": 2000,
            "type": "integer"
          },
          "id": {
            "description": "codFamOpticollecte",
            "type": "string"
          },
          "name": {
            "description": "libFamOpticollecte",
            "type": "string"
          },
          "pre_contracted_amount": {
            "description": "pre_contracted_amount",
            "minimum": 0,
            "type": "number"
          }
        },
        "required": [
          "amount_to_deliver",
          "contracted_amount",
          "delivered_amount",
          "deposited_amount",
          "fiscal_year",
          "id",
          "name",
          "pre_contracted_amount"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "collections"
  ],
  "title": "Collection - DefaultCollection",
  "type": "object"
}

JSON instance

{
  "collections": [
    {
      "amount_to_deliver": 144,
      "contracted_amount": 144,
      "delivered_amount": -7,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "id": "BT",
      "name": "BLE TENDRE",
      "pre_contracted_amount": 0
    },
    {
      "amount_to_deliver": 147,
      "contracted_amount": 147,
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "id": "OP",
      "name": "ORGE PRINTEMPS",
      "pre_contracted_amount": 0
    },
    {
      "amount_to_deliver": 0,
      "contracted_amount": 379.28,
      "delivered_amount": 392.916,
      "deposited_amount": 0,
      "fiscal_year": 2019,
      "id": "BT",
      "name": "BLE TENDRE",
      "pre_contracted_amount": 0
    },
    {
      "amount_to_deliver": 0,
      "contracted_amount": 34.767,
      "delivered_amount": 34.767,
      "deposited_amount": 0,
      "fiscal_year": 2019,
      "id": "MAI",
      "name": "MAIS",
      "pre_contracted_amount": 0
    },
    {
      "amount_to_deliver": 0,
      "contracted_amount": 77.311,
      "delivered_amount": 77.311,
      "deposited_amount": 0,
      "fiscal_year": 2019,
      "id": "OP",
      "name": "ORGE PRINTEMPS",
      "pre_contracted_amount": 0
    }
  ]
}

Validation #852

Success

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

JSON Schema

{
  "additionalProperties": false,
  "description": "Automatically generated (please edit me)",
  "properties": {
    "collections": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "amount_to_deliver": {
            "description": "amount_to_deliver",
            "minimum": 0,
            "type": "number"
          },
          "contracted_amount": {
            "description": "contracted_amount",
            "minimum": 0,
            "type": "number"
          },
          "delivered_amount": {
            "description": "delivered_amount",
            "minimum": 0,
            "type": "number"
          },
          "deposited_amount": {
            "description": "deposited_amount",
            "minimum": 0,
            "type": "number"
          },
          "fiscal_year": {
            "description": "campagne",
            "maximum": 2050,
            "minimum": 2000,
            "type": "integer"
          },
          "id": {
            "description": "codFamOpticollecte",
            "type": "string"
          },
          "name": {
            "description": "libFamOpticollecte",
            "type": "string"
          },
          "pre_contracted_amount": {
            "description": "pre_contracted_amount",
            "minimum": 0,
            "type": "number"
          }
        },
        "required": [
          "amount_to_deliver",
          "contracted_amount",
          "delivered_amount",
          "deposited_amount",
          "fiscal_year",
          "id",
          "name",
          "pre_contracted_amount"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "collections"
  ],
  "title": "Collection - DefaultCollection",
  "type": "object"
}

JSON instance

{
  "collections": [
    {
      "amount_to_deliver": 144,
      "contracted_amount": 144,
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "id": "BT",
      "name": "BLE TENDRE",
      "pre_contracted_amount": 0
    },
    {
      "amount_to_deliver": 147,
      "contracted_amount": 147,
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "id": "OP",
      "name": "ORGE PRINTEMPS",
      "pre_contracted_amount": 0
    },
    {
      "amount_to_deliver": 0,
      "contracted_amount": 379.28,
      "delivered_amount": 392.916,
      "deposited_amount": 0,
      "fiscal_year": 2019,
      "id": "BT",
      "name": "BLE TENDRE",
      "pre_contracted_amount": 0
    },
    {
      "amount_to_deliver": 0,
      "contracted_amount": 34.767,
      "delivered_amount": 34.767,
      "deposited_amount": 0,
      "fiscal_year": 2019,
      "id": "MAI",
      "name": "MAIS",
      "pre_contracted_amount": 0
    },
    {
      "amount_to_deliver": 0,
      "contracted_amount": 77.311,
      "delivered_amount": 77.311,
      "deposited_amount": 0,
      "fiscal_year": 2019,
      "id": "OP",
      "name": "ORGE PRINTEMPS",
      "pre_contracted_amount": 0
    }
  ]
}

Validation #851

Failure

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

  • The property '#/collections/0/id' of type null did not match the following type: string in schema 26257178-942c-5144-ad0b-2e1286264748

JSON Schema

{
  "additionalProperties": false,
  "description": "Automatically generated (please edit me)",
  "properties": {
    "collections": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "amount_to_deliver": {
            "description": "amount_to_deliver",
            "minimum": 0,
            "type": "number"
          },
          "contracted_amount": {
            "description": "contracted_amount",
            "minimum": 0,
            "type": "number"
          },
          "delivered_amount": {
            "description": "delivered_amount",
            "minimum": 0,
            "type": "number"
          },
          "deposited_amount": {
            "description": "deposited_amount",
            "minimum": 0,
            "type": "number"
          },
          "fiscal_year": {
            "description": "campagne",
            "maximum": 2050,
            "minimum": 2000,
            "type": "integer"
          },
          "id": {
            "description": "codFamOpticollecte",
            "type": "string"
          },
          "name": {
            "description": "libFamOpticollecte",
            "type": "string"
          },
          "pre_contracted_amount": {
            "description": "pre_contracted_amount",
            "minimum": 0,
            "type": "number"
          }
        },
        "required": [
          "amount_to_deliver",
          "contracted_amount",
          "delivered_amount",
          "deposited_amount",
          "fiscal_year",
          "id",
          "name",
          "pre_contracted_amount"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "collections"
  ],
  "title": "Collection - DefaultCollection",
  "type": "object"
}

JSON instance

{
  "collections": [
    {
      "amount_to_deliver": 144,
      "contracted_amount": 144,
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "id": null,
      "name": "BLE TENDRE",
      "pre_contracted_amount": 0
    },
    {
      "amount_to_deliver": 147,
      "contracted_amount": 147,
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "id": "OP",
      "name": "ORGE PRINTEMPS",
      "pre_contracted_amount": 0
    },
    {
      "amount_to_deliver": 0,
      "contracted_amount": 379.28,
      "delivered_amount": 392.916,
      "deposited_amount": 0,
      "fiscal_year": 2019,
      "id": "BT",
      "name": "BLE TENDRE",
      "pre_contracted_amount": 0
    },
    {
      "amount_to_deliver": 0,
      "contracted_amount": 34.767,
      "delivered_amount": 34.767,
      "deposited_amount": 0,
      "fiscal_year": 2019,
      "id": "MAI",
      "name": "MAIS",
      "pre_contracted_amount": 0
    },
    {
      "amount_to_deliver": 0,
      "contracted_amount": 77.311,
      "delivered_amount": 77.311,
      "deposited_amount": 0,
      "fiscal_year": 2019,
      "id": "OP",
      "name": "ORGE PRINTEMPS",
      "pre_contracted_amount": 0
    }
  ]
}

Validation #850

Failure

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

  • The property '#/collections/0' did not contain a required property of 'id' in schema 26257178-942c-5144-ad0b-2e1286264748

JSON Schema

{
  "additionalProperties": false,
  "description": "Automatically generated (please edit me)",
  "properties": {
    "collections": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "amount_to_deliver": {
            "description": "amount_to_deliver",
            "minimum": 0,
            "type": "number"
          },
          "contracted_amount": {
            "description": "contracted_amount",
            "minimum": 0,
            "type": "number"
          },
          "delivered_amount": {
            "description": "delivered_amount",
            "minimum": 0,
            "type": "number"
          },
          "deposited_amount": {
            "description": "deposited_amount",
            "minimum": 0,
            "type": "number"
          },
          "fiscal_year": {
            "description": "campagne",
            "maximum": 2050,
            "minimum": 2000,
            "type": "integer"
          },
          "id": {
            "description": "codFamOpticollecte",
            "type": "string"
          },
          "name": {
            "description": "libFamOpticollecte",
            "type": "string"
          },
          "pre_contracted_amount": {
            "description": "pre_contracted_amount",
            "minimum": 0,
            "type": "number"
          }
        },
        "required": [
          "amount_to_deliver",
          "contracted_amount",
          "delivered_amount",
          "deposited_amount",
          "fiscal_year",
          "id",
          "name",
          "pre_contracted_amount"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "collections"
  ],
  "title": "Collection - DefaultCollection",
  "type": "object"
}

JSON instance

{
  "collections": [
    {
      "amount_to_deliver": 144,
      "contracted_amount": 144,
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "name": "BLE TENDRE",
      "pre_contracted_amount": 0
    },
    {
      "amount_to_deliver": 147,
      "contracted_amount": 147,
      "delivered_amount": 0,
      "deposited_amount": 0,
      "fiscal_year": 2020,
      "id": "OP",
      "name": "ORGE PRINTEMPS",
      "pre_contracted_amount": 0
    },
    {
      "amount_to_deliver": 0,
      "contracted_amount": 379.28,
      "delivered_amount": 392.916,
      "deposited_amount": 0,
      "fiscal_year": 2019,
      "id": "BT",
      "name": "BLE TENDRE",
      "pre_contracted_amount": 0
    },
    {
      "amount_to_deliver": 0,
      "contracted_amount": 34.767,
      "delivered_amount": 34.767,
      "deposited_amount": 0,
      "fiscal_year": 2019,
      "id": "MAI",
      "name": "MAIS",
      "pre_contracted_amount": 0
    },
    {
      "amount_to_deliver": 0,
      "contracted_amount": 77.311,
      "delivered_amount": 77.311,
      "deposited_amount": 0,
      "fiscal_year": 2019,
      "id": "OP",
      "name": "ORGE PRINTEMPS",
      "pre_contracted_amount": 0
    }
  ]
}