Validations history

Validation #445

Failure

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

  • The property '#/dashboard_statistics/number_of_analyses_worldwide_period_evolution_percentage' of type null did not match the following type: number in schema 20cbd1ef-5fcf-590b-bb7d-e899da5942b0
  • The property '#/dashboard_statistics/number_of_analyses_period_evolution_percentage' of type null did not match the following type: number in schema 20cbd1ef-5fcf-590b-bb7d-e899da5942b0
  • The property '#/dashboard_statistics/analyzed_raw_materials_ranking/0' contains additional properties ["id"] outside of the schema when none are allowed in schema 20cbd1ef-5fcf-590b-bb7d-e899da5942b0#
  • The property '#/dashboard_statistics/analyzed_raw_materials_ranking/1' contains additional properties ["id"] outside of the schema when none are allowed in schema 20cbd1ef-5fcf-590b-bb7d-e899da5942b0#
  • The property '#/dashboard_statistics/analyzed_raw_materials_ranking/2' contains additional properties ["id"] outside of the schema when none are allowed in schema 20cbd1ef-5fcf-590b-bb7d-e899da5942b0#
  • The property '#/dashboard_statistics/analyzed_raw_materials_ranking/3' contains additional properties ["id"] outside of the schema when none are allowed in schema 20cbd1ef-5fcf-590b-bb7d-e899da5942b0#
  • The property '#/dashboard_statistics/analyzed_raw_materials_ranking/4' contains additional properties ["id"] outside of the schema when none are allowed in schema 20cbd1ef-5fcf-590b-bb7d-e899da5942b0#
  • The property '#/dashboard_statistics' contains additional properties ["analyses_average_response_time"] outside of the schema when none are allowed in schema 20cbd1ef-5fcf-590b-bb7d-e899da5942b0
  • The property '#/dashboard_statistics' did not contain a required property of 'analyses_average_reponse_time' in schema 20cbd1ef-5fcf-590b-bb7d-e899da5942b0

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "DefaultActiveCustomersRankingItem_1342": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "customer_id": {
          "minimum": 0,
          "type": "integer"
        },
        "customer_name": {
          "type": "string"
        },
        "spectra_analyses_count": {
          "minimum": 0,
          "type": "integer"
        },
        "spectra_analyses_relative_percentage": {
          "maximum": 100,
          "minimum": 0,
          "type": "number"
        }
      },
      "required": [
        "customer_id",
        "customer_name",
        "spectra_analyses_count",
        "spectra_analyses_relative_percentage"
      ],
      "title": "ActiveCustomersRankingItem - DefaultActiveCustomersRankingItem",
      "type": "object"
    },
    "DefaultActivityChartDatum_1340": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "data": {
          "items": {
            "minimum": 0,
            "type": "integer"
          },
          "minItems": 0,
          "type": "array"
        },
        "name": {
          "enum": [
            "IN",
            "OUT"
          ],
          "type": "string"
        }
      },
      "required": [
        "data",
        "name"
      ],
      "title": "ActivityChartDatum - DefaultActivityChartDatum",
      "type": "object"
    },
    "DefaultActivityChart_1341": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "categories": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "data": {
          "items": {
            "$ref": "#/definitions/DefaultActivityChartDatum_1340",
            "type": "object"
          },
          "maxItems": 2,
          "minItems": 2,
          "type": "array"
        }
      },
      "required": [
        "categories",
        "data"
      ],
      "title": "ActivityChart - DefaultActivityChart",
      "type": "object"
    },
    "DefaultAnalyzedRawMaterialRankingItem_1339": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "analyses_results_count": {
          "minimum": 0,
          "type": "integer"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "analyses_results_count",
        "name"
      ],
      "title": "AnalyzedRawMaterialRankingItem - DefaultAnalyzedRawMaterialRankingItem",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "dashboard_statistics": {
      "additionalProperties": false,
      "properties": {
        "active_customers_ranking": {
          "items": {
            "$ref": "#/definitions/DefaultActiveCustomersRankingItem_1342",
            "type": "object"
          },
          "maxItems": 5,
          "minItems": 0,
          "type": "array"
        },
        "activity_chart": {
          "$ref": "#/definitions/DefaultActivityChart_1341",
          "type": "object"
        },
        "analyses_average_reponse_time": {
          "minimum": 0,
          "type": "integer"
        },
        "analyzed_raw_materials_ranking": {
          "items": {
            "$ref": "#/definitions/DefaultAnalyzedRawMaterialRankingItem_1339",
            "type": "object"
          },
          "maxItems": 5,
          "minItems": 0,
          "type": "array"
        },
        "number_of_analyses": {
          "minimum": 0,
          "type": "integer"
        },
        "number_of_analyses_period_evolution_percentage": {
          "maximum": 100,
          "minimum": 0,
          "type": "number"
        },
        "number_of_analyses_worldwide": {
          "minimum": 0,
          "type": "integer"
        },
        "number_of_analyses_worldwide_period_evolution_percentage": {
          "maximum": 100,
          "minimum": 0,
          "type": "number"
        },
        "valid_parameters_percentage": {
          "maximum": 100,
          "minimum": 0,
          "type": "number"
        }
      },
      "required": [
        "active_customers_ranking",
        "activity_chart",
        "analyses_average_reponse_time",
        "analyzed_raw_materials_ranking",
        "number_of_analyses",
        "number_of_analyses_period_evolution_percentage",
        "number_of_analyses_worldwide",
        "number_of_analyses_worldwide_period_evolution_percentage",
        "valid_parameters_percentage"
      ],
      "type": "object"
    }
  },
  "required": [
    "dashboard_statistics"
  ],
  "title": "DashboardStatistics - DefaultDashboardStatistics",
  "type": "object"
}

JSON instance

{
  "dashboard_statistics": {
    "active_customers_ranking": [
      {
        "customer_id": 238,
        "customer_name": "PT Malindo Feedmill Tbk",
        "spectra_analyses_count": 795,
        "spectra_analyses_relative_percentage": 100
      },
      {
        "customer_id": 754,
        "customer_name": "AGROCERES MULTIMIX NUTRIÇÃO ANIMAL",
        "spectra_analyses_count": 667,
        "spectra_analyses_relative_percentage": 84
      },
      {
        "customer_id": 519,
        "customer_name": "Grupo NANTA",
        "spectra_analyses_count": 376,
        "spectra_analyses_relative_percentage": 47
      },
      {
        "customer_id": 700,
        "customer_name": "PT CHAROEN POKPHAND INDONESIA TBK",
        "spectra_analyses_count": 375,
        "spectra_analyses_relative_percentage": 47
      },
      {
        "customer_id": 618,
        "customer_name": "INTERPEC SAN MARCOS",
        "spectra_analyses_count": 347,
        "spectra_analyses_relative_percentage": 44
      }
    ],
    "activity_chart": {
      "categories": [
        "Barley",
        "Blood Meal",
        "Canola Meal",
        "Corn",
        "Corn DDGS",
        "Corn Gluten Meal",
        "Cottonseed Meal",
        "Feather Meal",
        "Fish Meal",
        "Fullfat Soybean",
        "Meat and Bone Meal",
        "Milk Powder",
        "Peanut Meal",
        "Pig By Products",
        "Plasma",
        "Poultry By Products",
        "Rapeseed Meal",
        "Rice Bran",
        "Sorghum",
        "Soybean Meal 46",
        "Soybean Meal 48",
        "Sunflower Meal",
        "Triticale",
        "Wheat",
        "Wheat Bran",
        "Wheat Middlings",
        "Whey Powder"
      ],
      "data": [
        {
          "data": [
            277,
            44,
            421,
            25022,
            5389,
            122,
            216,
            5312,
            1944,
            7304,
            9790,
            126,
            102,
            38,
            88,
            8244,
            484,
            2205,
            1022,
            27764,
            6129,
            1207,
            73,
            8668,
            5112,
            60,
            147
          ],
          "name": "IN"
        },
        {
          "data": [
            338,
            0,
            0,
            3462,
            138,
            23,
            3,
            869,
            156,
            1064,
            422,
            44,
            0,
            1,
            2,
            657,
            11,
            22,
            114,
            708,
            44,
            294,
            0,
            1935,
            15,
            0,
            45
          ],
          "name": "OUT"
        }
      ]
    },
    "analyses_average_response_time": 4.45,
    "analyzed_raw_materials_ranking": [
      {
        "analyses_results_count": 28679,
        "id": 41,
        "name": "Corn"
      },
      {
        "analyses_results_count": 28498,
        "id": 39,
        "name": "Soybean Meal 46"
      },
      {
        "analyses_results_count": 10684,
        "id": 42,
        "name": "Wheat"
      },
      {
        "analyses_results_count": 10219,
        "id": 26,
        "name": "Meat and Bone Meal"
      },
      {
        "analyses_results_count": 8914,
        "id": 24,
        "name": "Poultry By Products"
      }
    ],
    "number_of_analyses": 7876,
    "number_of_analyses_period_evolution_percentage": null,
    "number_of_analyses_worldwide": 7876,
    "number_of_analyses_worldwide_period_evolution_percentage": null,
    "valid_parameters_percentage": 92
  }
}

Validation #444

Failure

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

  • The property '#/dashboard_statistics/number_of_analyses_worldwide_period_evolution_percentage' of type null did not match the following type: number in schema 20cbd1ef-5fcf-590b-bb7d-e899da5942b0
  • The property '#/dashboard_statistics/number_of_analyses_period_evolution_percentage' of type null did not match the following type: number in schema 20cbd1ef-5fcf-590b-bb7d-e899da5942b0
  • The property '#/dashboard_statistics' contains additional properties ["analyses_average_response_time", "active_customers_statistics", "material_statistics"] outside of the schema when none are allowed in schema 20cbd1ef-5fcf-590b-bb7d-e899da5942b0
  • The property '#/dashboard_statistics' did not contain a required property of 'active_customers_ranking' in schema 20cbd1ef-5fcf-590b-bb7d-e899da5942b0
  • The property '#/dashboard_statistics' did not contain a required property of 'analyses_average_reponse_time' in schema 20cbd1ef-5fcf-590b-bb7d-e899da5942b0
  • The property '#/dashboard_statistics' did not contain a required property of 'analyzed_raw_materials_ranking' in schema 20cbd1ef-5fcf-590b-bb7d-e899da5942b0

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "DefaultActiveCustomersRankingItem_1342": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "customer_id": {
          "minimum": 0,
          "type": "integer"
        },
        "customer_name": {
          "type": "string"
        },
        "spectra_analyses_count": {
          "minimum": 0,
          "type": "integer"
        },
        "spectra_analyses_relative_percentage": {
          "maximum": 100,
          "minimum": 0,
          "type": "number"
        }
      },
      "required": [
        "customer_id",
        "customer_name",
        "spectra_analyses_count",
        "spectra_analyses_relative_percentage"
      ],
      "title": "ActiveCustomersRankingItem - DefaultActiveCustomersRankingItem",
      "type": "object"
    },
    "DefaultActivityChartDatum_1340": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "data": {
          "items": {
            "minimum": 0,
            "type": "integer"
          },
          "minItems": 0,
          "type": "array"
        },
        "name": {
          "enum": [
            "IN",
            "OUT"
          ],
          "type": "string"
        }
      },
      "required": [
        "data",
        "name"
      ],
      "title": "ActivityChartDatum - DefaultActivityChartDatum",
      "type": "object"
    },
    "DefaultActivityChart_1341": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "categories": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "data": {
          "items": {
            "$ref": "#/definitions/DefaultActivityChartDatum_1340",
            "type": "object"
          },
          "maxItems": 2,
          "minItems": 2,
          "type": "array"
        }
      },
      "required": [
        "categories",
        "data"
      ],
      "title": "ActivityChart - DefaultActivityChart",
      "type": "object"
    },
    "DefaultAnalyzedRawMaterialRankingItem_1339": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "analyses_results_count": {
          "minimum": 0,
          "type": "integer"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "analyses_results_count",
        "name"
      ],
      "title": "AnalyzedRawMaterialRankingItem - DefaultAnalyzedRawMaterialRankingItem",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "dashboard_statistics": {
      "additionalProperties": false,
      "properties": {
        "active_customers_ranking": {
          "items": {
            "$ref": "#/definitions/DefaultActiveCustomersRankingItem_1342",
            "type": "object"
          },
          "maxItems": 5,
          "minItems": 0,
          "type": "array"
        },
        "activity_chart": {
          "$ref": "#/definitions/DefaultActivityChart_1341",
          "type": "object"
        },
        "analyses_average_reponse_time": {
          "minimum": 0,
          "type": "integer"
        },
        "analyzed_raw_materials_ranking": {
          "items": {
            "$ref": "#/definitions/DefaultAnalyzedRawMaterialRankingItem_1339",
            "type": "object"
          },
          "maxItems": 5,
          "minItems": 0,
          "type": "array"
        },
        "number_of_analyses": {
          "minimum": 0,
          "type": "integer"
        },
        "number_of_analyses_period_evolution_percentage": {
          "maximum": 100,
          "minimum": 0,
          "type": "number"
        },
        "number_of_analyses_worldwide": {
          "minimum": 0,
          "type": "integer"
        },
        "number_of_analyses_worldwide_period_evolution_percentage": {
          "maximum": 100,
          "minimum": 0,
          "type": "number"
        },
        "valid_parameters_percentage": {
          "maximum": 100,
          "minimum": 0,
          "type": "number"
        }
      },
      "required": [
        "active_customers_ranking",
        "activity_chart",
        "analyses_average_reponse_time",
        "analyzed_raw_materials_ranking",
        "number_of_analyses",
        "number_of_analyses_period_evolution_percentage",
        "number_of_analyses_worldwide",
        "number_of_analyses_worldwide_period_evolution_percentage",
        "valid_parameters_percentage"
      ],
      "type": "object"
    }
  },
  "required": [
    "dashboard_statistics"
  ],
  "title": "DashboardStatistics - DefaultDashboardStatistics",
  "type": "object"
}

JSON instance

{
  "dashboard_statistics": {
    "active_customers_statistics": [
      {
        "customer_id": 238,
        "customer_name": "PT Malindo Feedmill Tbk",
        "spectra_analyses_count": 795,
        "spectra_analyses_relative_percentage": 100
      },
      {
        "customer_id": 754,
        "customer_name": "AGROCERES MULTIMIX NUTRIÇÃO ANIMAL",
        "spectra_analyses_count": 667,
        "spectra_analyses_relative_percentage": 84
      },
      {
        "customer_id": 519,
        "customer_name": "Grupo NANTA",
        "spectra_analyses_count": 376,
        "spectra_analyses_relative_percentage": 47
      },
      {
        "customer_id": 700,
        "customer_name": "PT CHAROEN POKPHAND INDONESIA TBK",
        "spectra_analyses_count": 375,
        "spectra_analyses_relative_percentage": 47
      },
      {
        "customer_id": 618,
        "customer_name": "INTERPEC SAN MARCOS",
        "spectra_analyses_count": 347,
        "spectra_analyses_relative_percentage": 44
      }
    ],
    "activity_chart": {
      "categories": [
        "Barley",
        "Blood Meal",
        "Canola Meal",
        "Corn",
        "Corn DDGS",
        "Corn Gluten Meal",
        "Cottonseed Meal",
        "Feather Meal",
        "Fish Meal",
        "Fullfat Soybean",
        "Meat and Bone Meal",
        "Milk Powder",
        "Peanut Meal",
        "Pig By Products",
        "Plasma",
        "Poultry By Products",
        "Rapeseed Meal",
        "Rice Bran",
        "Sorghum",
        "Soybean Meal 46",
        "Soybean Meal 48",
        "Sunflower Meal",
        "Triticale",
        "Wheat",
        "Wheat Bran",
        "Wheat Middlings",
        "Whey Powder"
      ],
      "data": [
        {
          "data": [
            277,
            44,
            421,
            25022,
            5389,
            122,
            216,
            5312,
            1944,
            7304,
            9790,
            126,
            102,
            38,
            88,
            8244,
            484,
            2205,
            1022,
            27764,
            6129,
            1207,
            73,
            8668,
            5112,
            60,
            147
          ],
          "name": "IN"
        },
        {
          "data": [
            338,
            0,
            0,
            3462,
            138,
            23,
            3,
            869,
            156,
            1064,
            422,
            44,
            0,
            1,
            2,
            657,
            11,
            22,
            114,
            708,
            44,
            294,
            0,
            1935,
            15,
            0,
            45
          ],
          "name": "OUT"
        }
      ]
    },
    "analyses_average_response_time": 4.45,
    "material_statistics": [
      {
        "analyses_results_count": 28679,
        "id": 41,
        "name": "Corn"
      },
      {
        "analyses_results_count": 28498,
        "id": 39,
        "name": "Soybean Meal 46"
      },
      {
        "analyses_results_count": 10684,
        "id": 42,
        "name": "Wheat"
      },
      {
        "analyses_results_count": 10219,
        "id": 26,
        "name": "Meat and Bone Meal"
      },
      {
        "analyses_results_count": 8914,
        "id": 24,
        "name": "Poultry By Products"
      }
    ],
    "number_of_analyses": 7876,
    "number_of_analyses_period_evolution_percentage": null,
    "number_of_analyses_worldwide": 7876,
    "number_of_analyses_worldwide_period_evolution_percentage": null,
    "valid_parameters_percentage": 92
  }
}

Validation #443

Failure

The input JSON instance is not a valid JSON text (RFC 7159).

  • parse_error

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "DefaultActiveCustomersRankingItem_1342": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "customer_id": {
          "minimum": 0,
          "type": "integer"
        },
        "customer_name": {
          "type": "string"
        },
        "spectra_analyses_count": {
          "minimum": 0,
          "type": "integer"
        },
        "spectra_analyses_relative_percentage": {
          "maximum": 100,
          "minimum": 0,
          "type": "number"
        }
      },
      "required": [
        "customer_id",
        "customer_name",
        "spectra_analyses_count",
        "spectra_analyses_relative_percentage"
      ],
      "title": "ActiveCustomersRankingItem - DefaultActiveCustomersRankingItem",
      "type": "object"
    },
    "DefaultActivityChartDatum_1340": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "data": {
          "items": {
            "minimum": 0,
            "type": "integer"
          },
          "minItems": 0,
          "type": "array"
        },
        "name": {
          "enum": [
            "IN",
            "OUT"
          ],
          "type": "string"
        }
      },
      "required": [
        "data",
        "name"
      ],
      "title": "ActivityChartDatum - DefaultActivityChartDatum",
      "type": "object"
    },
    "DefaultActivityChart_1341": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "categories": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "data": {
          "items": {
            "$ref": "#/definitions/DefaultActivityChartDatum_1340",
            "type": "object"
          },
          "maxItems": 2,
          "minItems": 2,
          "type": "array"
        }
      },
      "required": [
        "categories",
        "data"
      ],
      "title": "ActivityChart - DefaultActivityChart",
      "type": "object"
    },
    "DefaultAnalyzedRawMaterialRankingItem_1339": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "analyses_results_count": {
          "minimum": 0,
          "type": "integer"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "analyses_results_count",
        "name"
      ],
      "title": "AnalyzedRawMaterialRankingItem - DefaultAnalyzedRawMaterialRankingItem",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "dashboard_statistics": {
      "additionalProperties": false,
      "properties": {
        "active_customers_ranking": {
          "items": {
            "$ref": "#/definitions/DefaultActiveCustomersRankingItem_1342",
            "type": "object"
          },
          "maxItems": 5,
          "minItems": 0,
          "type": "array"
        },
        "activity_chart": {
          "$ref": "#/definitions/DefaultActivityChart_1341",
          "type": "object"
        },
        "analyses_average_reponse_time": {
          "minimum": 0,
          "type": "integer"
        },
        "analyzed_raw_materials_ranking": {
          "items": {
            "$ref": "#/definitions/DefaultAnalyzedRawMaterialRankingItem_1339",
            "type": "object"
          },
          "maxItems": 5,
          "minItems": 0,
          "type": "array"
        },
        "number_of_analyses": {
          "minimum": 0,
          "type": "integer"
        },
        "number_of_analyses_period_evolution_percentage": {
          "maximum": 100,
          "minimum": 0,
          "type": "number"
        },
        "number_of_analyses_worldwide": {
          "minimum": 0,
          "type": "integer"
        },
        "number_of_analyses_worldwide_period_evolution_percentage": {
          "maximum": 100,
          "minimum": 0,
          "type": "number"
        },
        "valid_parameters_percentage": {
          "maximum": 100,
          "minimum": 0,
          "type": "number"
        }
      },
      "required": [
        "active_customers_ranking",
        "activity_chart",
        "analyses_average_reponse_time",
        "analyzed_raw_materials_ranking",
        "number_of_analyses",
        "number_of_analyses_period_evolution_percentage",
        "number_of_analyses_worldwide",
        "number_of_analyses_worldwide_period_evolution_percentage",
        "valid_parameters_percentage"
      ],
      "type": "object"
    }
  },
  "required": [
    "dashboard_statistics"
  ],
  "title": "DashboardStatistics - DefaultDashboardStatistics",
  "type": "object"
}

JSON instance

{
  "dashboard_statistics": {
    "number_of_analyses": 7876,
    "number_of_analyses_period_evolution_percentage": null,
    "number_of_analyses_worldwide": 7876,
    "number_of_analyses_worldwide_period_evolution_percentage": null,
    "valid_parameters_percentage": 92,
    "analyses_average_response_time": 4.45,
    "active_customers_statistics": [
      {
        "customer_id": 238,
        "customer_name": "PT Malindo Feedmill Tbk",
        "spectra_analyses_count": 795,
        "spectra_analyses_relative_percentage": 100
      },
      {
        "customer_id": 754,
        "customer_name": "AGROCERES MULTIMIX NUTRIÇÃO ANIMAL",
        "spectra_analyses_count": 667,
        "spectra_analyses_relative_percentage": 84
      },
      {
        "customer_id": 519,
        "customer_name": "Grupo NANTA",x
        "spectra_analyses_count": 376,
        "spectra_analyses_relative_percentage": 47
      },
      {
        "customer_id": 700,
        "customer_name": "PT CHAROEN POKPHAND INDONESIA TBK",
        "spectra_analyses_count": 375,
        "spectra_analyses_relative_percentage": 47
      },
      {
        "customer_id": 618,
        "customer_name": "INTERPEC SAN MARCOS",
        "spectra_analyses_count": 347,
        "spectra_analyses_relative_percentage": 44
      }
    ],
    "material_statistics": [
      {
        "id": 41,
        "name": "Corn",
        "analyses_results_count": 28679
      },
      {
        "id": 39,
        "name": "Soybean Meal 46",
        "analyses_results_count": 28498
      },
      {
        "id": 42,
        "name": "Wheat",
        "analyses_results_count": 10684
      },
      {
        "id": 26,
        "name": "Meat and Bone Meal",
        "analyses_results_count": 10219
      },
      {
        "id": 24,
        "name": "Poultry By Products",
        "analyses_results_count": 8914
      }
    ],
    "activity_chart": {
      "categories": [
        "Barley",
        "Blood Meal",
        "Canola Meal",
        "Corn",
        "Corn DDGS",
        "Corn Gluten Meal",
        "Cottonseed Meal",
        "Feather Meal",
        "Fish Meal",
        "Fullfat Soybean",
        "Meat and Bone Meal",
        "Milk Powder",
        "Peanut Meal",
        "Pig By Products",
        "Plasma",
        "Poultry By Products",
        "Rapeseed Meal",
        "Rice Bran",
        "Sorghum",
        "Soybean Meal 46",
        "Soybean Meal 48",
        "Sunflower Meal",
        "Triticale",
        "Wheat",
        "Wheat Bran",
        "Wheat Middlings",
        "Whey Powder"
      ],
      "data": [
        {
          "name": "IN",
          "data": [
            277,
            44,
            421,
            25022,
            5389,
            122,
            216,
            5312,
            1944,
            7304,
            9790,
            126,
            102,
            38,
            88,
            8244,
            484,
            2205,
            1022,
            27764,
            6129,
            1207,
            73,
            8668,
            5112,
            60,
            147
          ]
        },
        {
          "name": "OUT",
          "data": [
            338,
            0,
            0,
            3462,
            138,
            23,
            3,
            869,
            156,
            1064,
            422,
            44,
            0,
            1,
            2,
            657,
            11,
            22,
            114,
            708,
            44,
            294,
            0,
            1935,
            15,
            0,
            45
          ]
        }
      ]
    }
  }
}

Validation #442

Failure

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

  • The property '#/' did not contain a required property of 'dashboard_statistics' in schema 20cbd1ef-5fcf-590b-bb7d-e899da5942b0
  • The property '#/' contains additional properties ["number_of_analyses", "number_of_analyses_period_evolution_percentage", "number_of_analyses_worldwide", "number_of_analyses_worldwide_period_evolution_percentage", "valid_parameters_percentage", "analyses_average_response_time", "active_customers_statistics", "material_statistics", "activity_chart"] outside of the schema when none are allowed in schema 20cbd1ef-5fcf-590b-bb7d-e899da5942b0

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "DefaultActiveCustomersRankingItem_1342": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "customer_id": {
          "minimum": 0,
          "type": "integer"
        },
        "customer_name": {
          "type": "string"
        },
        "spectra_analyses_count": {
          "minimum": 0,
          "type": "integer"
        },
        "spectra_analyses_relative_percentage": {
          "maximum": 100,
          "minimum": 0,
          "type": "number"
        }
      },
      "required": [
        "customer_id",
        "customer_name",
        "spectra_analyses_count",
        "spectra_analyses_relative_percentage"
      ],
      "title": "ActiveCustomersRankingItem - DefaultActiveCustomersRankingItem",
      "type": "object"
    },
    "DefaultActivityChartDatum_1340": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "data": {
          "items": {
            "minimum": 0,
            "type": "integer"
          },
          "minItems": 0,
          "type": "array"
        },
        "name": {
          "enum": [
            "IN",
            "OUT"
          ],
          "type": "string"
        }
      },
      "required": [
        "data",
        "name"
      ],
      "title": "ActivityChartDatum - DefaultActivityChartDatum",
      "type": "object"
    },
    "DefaultActivityChart_1341": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "categories": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "data": {
          "items": {
            "$ref": "#/definitions/DefaultActivityChartDatum_1340",
            "type": "object"
          },
          "maxItems": 2,
          "minItems": 2,
          "type": "array"
        }
      },
      "required": [
        "categories",
        "data"
      ],
      "title": "ActivityChart - DefaultActivityChart",
      "type": "object"
    },
    "DefaultAnalyzedRawMaterialRankingItem_1339": {
      "additionalProperties": false,
      "description": "Automatically generated (please edit me)",
      "properties": {
        "analyses_results_count": {
          "minimum": 0,
          "type": "integer"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "analyses_results_count",
        "name"
      ],
      "title": "AnalyzedRawMaterialRankingItem - DefaultAnalyzedRawMaterialRankingItem",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "dashboard_statistics": {
      "additionalProperties": false,
      "properties": {
        "active_customers_ranking": {
          "items": {
            "$ref": "#/definitions/DefaultActiveCustomersRankingItem_1342",
            "type": "object"
          },
          "maxItems": 5,
          "minItems": 0,
          "type": "array"
        },
        "activity_chart": {
          "$ref": "#/definitions/DefaultActivityChart_1341",
          "type": "object"
        },
        "analyses_average_reponse_time": {
          "minimum": 0,
          "type": "integer"
        },
        "analyzed_raw_materials_ranking": {
          "items": {
            "$ref": "#/definitions/DefaultAnalyzedRawMaterialRankingItem_1339",
            "type": "object"
          },
          "maxItems": 5,
          "minItems": 0,
          "type": "array"
        },
        "number_of_analyses": {
          "minimum": 0,
          "type": "integer"
        },
        "number_of_analyses_period_evolution_percentage": {
          "maximum": 100,
          "minimum": 0,
          "type": "number"
        },
        "number_of_analyses_worldwide": {
          "minimum": 0,
          "type": "integer"
        },
        "number_of_analyses_worldwide_period_evolution_percentage": {
          "maximum": 100,
          "minimum": 0,
          "type": "number"
        },
        "valid_parameters_percentage": {
          "maximum": 100,
          "minimum": 0,
          "type": "number"
        }
      },
      "required": [
        "active_customers_ranking",
        "activity_chart",
        "analyses_average_reponse_time",
        "analyzed_raw_materials_ranking",
        "number_of_analyses",
        "number_of_analyses_period_evolution_percentage",
        "number_of_analyses_worldwide",
        "number_of_analyses_worldwide_period_evolution_percentage",
        "valid_parameters_percentage"
      ],
      "type": "object"
    }
  },
  "required": [
    "dashboard_statistics"
  ],
  "title": "DashboardStatistics - DefaultDashboardStatistics",
  "type": "object"
}

JSON instance

{
  "active_customers_statistics": [
    {
      "customer_id": 238,
      "customer_name": "PT Malindo Feedmill Tbk",
      "spectra_analyses_count": 795,
      "spectra_analyses_relative_percentage": 100
    },
    {
      "customer_id": 754,
      "customer_name": "AGROCERES MULTIMIX NUTRIÇÃO ANIMAL",
      "spectra_analyses_count": 667,
      "spectra_analyses_relative_percentage": 84
    },
    {
      "customer_id": 519,
      "customer_name": "Grupo NANTA",
      "spectra_analyses_count": 376,
      "spectra_analyses_relative_percentage": 47
    },
    {
      "customer_id": 700,
      "customer_name": "PT CHAROEN POKPHAND INDONESIA TBK",
      "spectra_analyses_count": 375,
      "spectra_analyses_relative_percentage": 47
    },
    {
      "customer_id": 618,
      "customer_name": "INTERPEC SAN MARCOS",
      "spectra_analyses_count": 347,
      "spectra_analyses_relative_percentage": 44
    }
  ],
  "activity_chart": {
    "categories": [
      "Barley",
      "Blood Meal",
      "Canola Meal",
      "Corn",
      "Corn DDGS",
      "Corn Gluten Meal",
      "Cottonseed Meal",
      "Feather Meal",
      "Fish Meal",
      "Fullfat Soybean",
      "Meat and Bone Meal",
      "Milk Powder",
      "Peanut Meal",
      "Pig By Products",
      "Plasma",
      "Poultry By Products",
      "Rapeseed Meal",
      "Rice Bran",
      "Sorghum",
      "Soybean Meal 46",
      "Soybean Meal 48",
      "Sunflower Meal",
      "Triticale",
      "Wheat",
      "Wheat Bran",
      "Wheat Middlings",
      "Whey Powder"
    ],
    "data": [
      {
        "data": [
          277,
          44,
          421,
          25022,
          5389,
          122,
          216,
          5312,
          1944,
          7304,
          9790,
          126,
          102,
          38,
          88,
          8244,
          484,
          2205,
          1022,
          27764,
          6129,
          1207,
          73,
          8668,
          5112,
          60,
          147
        ],
        "name": "IN"
      },
      {
        "data": [
          338,
          0,
          0,
          3462,
          138,
          23,
          3,
          869,
          156,
          1064,
          422,
          44,
          0,
          1,
          2,
          657,
          11,
          22,
          114,
          708,
          44,
          294,
          0,
          1935,
          15,
          0,
          45
        ],
        "name": "OUT"
      }
    ]
  },
  "analyses_average_response_time": 4.45,
  "material_statistics": [
    {
      "analyses_results_count": 28679,
      "id": 41,
      "name": "Corn"
    },
    {
      "analyses_results_count": 28498,
      "id": 39,
      "name": "Soybean Meal 46"
    },
    {
      "analyses_results_count": 10684,
      "id": 42,
      "name": "Wheat"
    },
    {
      "analyses_results_count": 10219,
      "id": 26,
      "name": "Meat and Bone Meal"
    },
    {
      "analyses_results_count": 8914,
      "id": 24,
      "name": "Poultry By Products"
    }
  ],
  "number_of_analyses": 7876,
  "number_of_analyses_period_evolution_percentage": null,
  "number_of_analyses_worldwide": 7876,
  "number_of_analyses_worldwide_period_evolution_percentage": null,
  "valid_parameters_percentage": 92
}

Validation #441

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": {
    "existing_account": {
      "type": "boolean"
    }
  },
  "required": [
    "existing_account"
  ],
  "title": "mgen_connect_account - DefaultMgenConnectAccount",
  "type": "object"
}

JSON instance

{
  "existing_account": false
}

Validation #440

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": {
    "existing_account": {
      "type": "boolean"
    }
  },
  "required": [
    "existing_account"
  ],
  "title": "mgen_connect_account - DefaultMgenConnectAccount",
  "type": "object"
}

JSON instance

{
  "existing_account": false
}

Validation #439

Success

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

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "ProductOrderLine_555": {
      "additionalProperties": false,
      "properties": {
        "amount_delivered": {
          "minimum": 0,
          "type": "number"
        },
        "delivery_date": {
          "anyOf": [
            {
              "format": "date",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "delivery_note_number": {
          "anyOf": [
            {
              "pattern": "\\d*",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "due_date": {
          "anyOf": [
            {
              "format": "date",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "pattern": "\\d*",
          "type": "string"
        },
        "invoice_date": {
          "anyOf": [
            {
              "format": "date",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "invoice_number": {
          "pattern": "\\d*",
          "type": "string"
        },
        "order": {
          "$ref": "#/definitions/ProductOrder_557",
          "type": "object"
        },
        "total_amount": {
          "minimum": 0,
          "type": "number"
        },
        "unit": {
          "type": "string"
        },
        "unit_price": {
          "minimum": 0,
          "type": "number"
        }
      },
      "required": [
        "amount_delivered",
        "delivery_date",
        "delivery_note_number",
        "due_date",
        "id",
        "invoice_date",
        "invoice_number",
        "order",
        "total_amount",
        "unit",
        "unit_price"
      ],
      "title": "OrderLine - ProductOrderLine",
      "type": "object"
    },
    "ProductOrder_557": {
      "additionalProperties": false,
      "properties": {
        "date": {
          "format": "date",
          "type": "string"
        },
        "delivery_mode": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "settled": {
          "type": "boolean"
        },
        "status": {
          "maximum": 2,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "date",
        "delivery_mode",
        "id",
        "settled",
        "status"
      ],
      "title": "Order - ProductOrder",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "products": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "activity_type": {
            "type": "string"
          },
          "amount_to_deliver": {
            "minimum": 0,
            "type": "number"
          },
          "delivered_amount": {
            "minimum": 0,
            "type": "number"
          },
          "id": {
            "pattern": "\\d*",
            "type": "string"
          },
          "invoiced_amount": {
            "minimum": 0,
            "type": "number"
          },
          "label": {
            "type": "string"
          },
          "order_lines": {
            "items": {
              "$ref": "#/definitions/ProductOrderLine_555",
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "activity_type",
          "amount_to_deliver",
          "delivered_amount",
          "id",
          "invoiced_amount",
          "label",
          "order_lines"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "products"
  ],
  "title": "Product - DefaultProduct",
  "type": "object"
}

JSON instance

{
  "products": [
    {
      "activity_type": "PEN",
      "amount_to_deliver": 0,
      "delivered_amount": 2.8,
      "id": "104925",
      "invoiced_amount": 0,
      "label": "00-25-25 SP",
      "order_lines": [
        {
          "amount_delivered": 2.8,
          "delivery_date": "2017-09-13",
          "delivery_note_number": "3664867",
          "due_date": null,
          "id": "1000",
          "invoice_date": null,
          "invoice_number": "0",
          "order": {
            "date": "2017-09-08",
            "delivery_mode": ".",
            "id": "10103647",
            "settled": false,
            "status": 1
          },
          "total_amount": 2.8,
          "unit": "TN",
          "unit_price": 320
        }
      ]
    },
    {
      "activity_type": "PEN",
      "amount_to_deliver": 30.3,
      "delivered_amount": 0,
      "id": "131987",
      "invoiced_amount": 0,
      "label": "EPANDAGE ORGA 2.5 A 4 T/HA TM",
      "order_lines": [
        {
          "amount_delivered": 0,
          "delivery_date": null,
          "delivery_note_number": null,
          "due_date": null,
          "id": "1000",
          "invoice_date": null,
          "invoice_number": "0",
          "order": {
            "date": "2017-07-13",
            "delivery_mode": ".",
            "id": "10063396",
            "settled": false,
            "status": 0
          },
          "total_amount": 30.3,
          "unit": "TN",
          "unit_price": 10
        }
      ]
    },
    {
      "activity_type": "PEN",
      "amount_to_deliver": 0,
      "delivered_amount": 0,
      "id": "112417",
      "invoiced_amount": 30.3,
      "label": "HUMOCAL B",
      "order_lines": [
        {
          "amount_delivered": 30.3,
          "delivery_date": "2017-08-08",
          "delivery_note_number": "3620437",
          "due_date": "2017-09-30",
          "id": "1000",
          "invoice_date": "2017-09-11",
          "invoice_number": "17016135",
          "order": {
            "date": "2017-07-13",
            "delivery_mode": ".",
            "id": "9950598",
            "settled": true,
            "status": 2
          },
          "total_amount": 30.3,
          "unit": "TN",
          "unit_price": 39
        }
      ]
    },
    {
      "activity_type": "PEN",
      "amount_to_deliver": 0,
      "delivered_amount": 0,
      "id": "104910",
      "invoiced_amount": 31.9,
      "label": "SOL AZOTEE 39+11SO3 (29.4+8.4)",
      "order_lines": [
        {
          "amount_delivered": 31.9,
          "delivery_date": "2017-08-16",
          "delivery_note_number": "3628773",
          "due_date": "2017-09-30",
          "id": "1000",
          "invoice_date": "2017-09-11",
          "invoice_number": "17016135",
          "order": {
            "date": "2017-06-12",
            "delivery_mode": ".",
            "id": "9975282",
            "settled": true,
            "status": 2
          },
          "total_amount": 31.9,
          "unit": "TN",
          "unit_price": 195
        }
      ]
    },
    {
      "activity_type": "PEN",
      "amount_to_deliver": 60,
      "delivered_amount": 0,
      "id": "179728",
      "invoiced_amount": 0,
      "label": "VINASSE +",
      "order_lines": [
        {
          "amount_delivered": 0,
          "delivery_date": null,
          "delivery_note_number": null,
          "due_date": null,
          "id": "1000",
          "invoice_date": null,
          "invoice_number": "0",
          "order": {
            "date": "2017-07-13",
            "delivery_mode": ".",
            "id": "9950592",
            "settled": false,
            "status": 0
          },
          "total_amount": 60,
          "unit": "TN",
          "unit_price": 73
        }
      ]
    }
  ]
}

Validation #438

Success

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

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "ProductOrderLine_555": {
      "additionalProperties": false,
      "properties": {
        "amount_delivered": {
          "minimum": 0,
          "type": "number"
        },
        "delivery_date": {
          "anyOf": [
            {
              "format": "date",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "delivery_note_number": {
          "anyOf": [
            {
              "pattern": "\\d*",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "due_date": {
          "anyOf": [
            {
              "format": "date",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "pattern": "\\d*",
          "type": "string"
        },
        "invoice_date": {
          "anyOf": [
            {
              "format": "date",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "invoice_number": {
          "pattern": "\\d*",
          "type": "string"
        },
        "order": {
          "$ref": "#/definitions/ProductOrder_557",
          "type": "object"
        },
        "total_amount": {
          "minimum": 0,
          "type": "number"
        },
        "unit": {
          "type": "string"
        },
        "unit_price": {
          "minimum": 0,
          "type": "number"
        }
      },
      "required": [
        "amount_delivered",
        "delivery_date",
        "delivery_note_number",
        "due_date",
        "id",
        "invoice_date",
        "invoice_number",
        "order",
        "total_amount",
        "unit",
        "unit_price"
      ],
      "title": "OrderLine - ProductOrderLine",
      "type": "object"
    },
    "ProductOrder_557": {
      "additionalProperties": false,
      "properties": {
        "date": {
          "format": "date",
          "type": "string"
        },
        "delivery_mode": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "settled": {
          "type": "boolean"
        },
        "status": {
          "maximum": 2,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "date",
        "delivery_mode",
        "id",
        "settled",
        "status"
      ],
      "title": "Order - ProductOrder",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "products": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "activity_type": {
            "type": "string"
          },
          "amount_to_deliver": {
            "minimum": 0,
            "type": "number"
          },
          "delivered_amount": {
            "minimum": 0,
            "type": "number"
          },
          "id": {
            "pattern": "\\d*",
            "type": "string"
          },
          "invoiced_amount": {
            "minimum": 0,
            "type": "number"
          },
          "label": {
            "type": "string"
          },
          "order_lines": {
            "items": {
              "$ref": "#/definitions/ProductOrderLine_555",
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "activity_type",
          "amount_to_deliver",
          "delivered_amount",
          "id",
          "invoiced_amount",
          "label",
          "order_lines"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "products"
  ],
  "title": "Product - DefaultProduct",
  "type": "object"
}

JSON instance

{
  "products": [
    {
      "activity_type": "PEN",
      "amount_to_deliver": 0,
      "delivered_amount": 0,
      "id": "105056",
      "invoiced_amount": 20.05,
      "label": "SOL AZOTEE 390 (30%)",
      "order_lines": [
        {
          "amount_delivered": 5.7,
          "delivery_date": "2018-07-10",
          "delivery_note_number": "3986012",
          "due_date": "2018-08-31",
          "id": "1000",
          "invoice_date": "2018-08-08",
          "invoice_number": "18014271",
          "order": {
            "date": "2018-03-30",
            "delivery_mode": "Direct camion groupe",
            "id": "10811710",
            "settled": true,
            "status": 2
          },
          "total_amount": 5.7,
          "unit": "TN",
          "unit_price": 164
        },
        {
          "amount_delivered": 14.35,
          "delivery_date": "2018-07-12",
          "delivery_note_number": "3987814",
          "due_date": "2018-08-31",
          "id": "1000",
          "invoice_date": "2018-08-08",
          "invoice_number": "18014271",
          "order": {
            "date": "2018-04-05",
            "delivery_mode": "Direct camion groupe",
            "id": "10870046",
            "settled": true,
            "status": 2
          },
          "total_amount": 14.35,
          "unit": "TN",
          "unit_price": 164
        }
      ]
    },
    {
      "activity_type": "PEN",
      "amount_to_deliver": 7,
      "delivered_amount": 0,
      "id": "109058",
      "invoiced_amount": 0,
      "label": "SULF MAGNESIE 25MGO+40SO3",
      "order_lines": [
        {
          "amount_delivered": 0,
          "delivery_date": null,
          "delivery_note_number": null,
          "due_date": null,
          "id": "1000",
          "invoice_date": null,
          "invoice_number": "0",
          "order": {
            "date": "2018-11-12",
            "delivery_mode": "Relivraison vrac benne agri",
            "id": "11197485",
            "settled": false,
            "status": 0
          },
          "total_amount": 7,
          "unit": "TN",
          "unit_price": 255
        }
      ]
    },
    {
      "activity_type": "PEN",
      "amount_to_deliver": 0,
      "delivered_amount": 0,
      "id": "129439B2",
      "invoiced_amount": 17.4,
      "label": "SULFAN 24N+18SO3 BB600",
      "order_lines": [
        {
          "amount_delivered": 14.4,
          "delivery_date": "2018-08-27",
          "delivery_note_number": "4030769",
          "due_date": "2018-09-30",
          "id": "1000",
          "invoice_date": "2018-09-13",
          "invoice_number": "18031857",
          "order": {
            "date": "2018-06-01",
            "delivery_mode": "Direct camion groupe",
            "id": "10846341",
            "settled": true,
            "status": 2
          },
          "total_amount": 14.4,
          "unit": "TN",
          "unit_price": 222
        },
        {
          "amount_delivered": 3,
          "delivery_date": "2018-08-02",
          "delivery_note_number": "4003428",
          "due_date": "2018-09-30",
          "id": "1000",
          "invoice_date": "2018-09-13",
          "invoice_number": "18031857",
          "order": {
            "date": "2018-06-01",
            "delivery_mode": "Direct camion groupe",
            "id": "10846377",
            "settled": true,
            "status": 2
          },
          "total_amount": 3,
          "unit": "TN",
          "unit_price": 222
        }
      ]
    },
    {
      "activity_type": "PEN",
      "amount_to_deliver": 0,
      "delivered_amount": 0,
      "id": "105065",
      "invoiced_amount": 10,
      "label": "SUPERPHOSPHATE 46%",
      "order_lines": [
        {
          "amount_delivered": 10,
          "delivery_date": "2018-08-30",
          "delivery_note_number": "4034848",
          "due_date": "2018-09-30",
          "id": "1000",
          "invoice_date": "2018-09-13",
          "invoice_number": "18031857",
          "order": {
            "date": "2018-05-29",
            "delivery_mode": "Depart magasin",
            "id": "10769715",
            "settled": true,
            "status": 2
          },
          "total_amount": 10,
          "unit": "TN",
          "unit_price": 335
        }
      ]
    },
    {
      "activity_type": "PEN",
      "amount_to_deliver": 0,
      "delivered_amount": 0,
      "id": "104936B2",
      "invoiced_amount": 10.8,
      "label": "UREE 46% GR BB600",
      "order_lines": [
        {
          "amount_delivered": 10.8,
          "delivery_date": "2018-10-03",
          "delivery_note_number": "4070729",
          "due_date": "2018-11-30",
          "id": "1000",
          "invoice_date": "2018-11-12",
          "invoice_number": "18082458",
          "order": {
            "date": "2018-09-14",
            "delivery_mode": "Direct camion groupe",
            "id": "11039830",
            "settled": false,
            "status": 2
          },
          "total_amount": 10.8,
          "unit": "TN",
          "unit_price": 349
        }
      ]
    },
    {
      "activity_type": "PEN",
      "amount_to_deliver": 0,
      "delivered_amount": 0,
      "id": "179728",
      "invoiced_amount": 30.7,
      "label": "VINASSE +",
      "order_lines": [
        {
          "amount_delivered": 26.5,
          "delivery_date": "2018-08-21",
          "delivery_note_number": "4024383",
          "due_date": "2018-09-30",
          "id": "1000",
          "invoice_date": "2018-09-13",
          "invoice_number": "18031857",
          "order": {
            "date": "2018-03-29",
            "delivery_mode": "Orga direct avec epandage",
            "id": "10713536",
            "settled": true,
            "status": 2
          },
          "total_amount": 26.5,
          "unit": "TN",
          "unit_price": 73
        },
        {
          "amount_delivered": 4.2,
          "delivery_date": "2018-08-21",
          "delivery_note_number": "4024384",
          "due_date": "2018-09-30",
          "id": "1100",
          "invoice_date": "2018-09-13",
          "invoice_number": "18031857",
          "order": {
            "date": "2018-03-29",
            "delivery_mode": "Orga direct avec epandage",
            "id": "10713536",
            "settled": true,
            "status": 2
          },
          "total_amount": 4.2,
          "unit": "TN",
          "unit_price": 73
        }
      ]
    }
  ]
}

Validation #437

Failure

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

  • The property '#/products/1/order_lines/0/delivery_date' of type null did not match the following type: string in schema 5c365e0d-a509-5582-b8c6-0901f8b010e2#
  • The property '#/products/1/order_lines/0/delivery_note_number' of type null did not match the following type: string in schema 5c365e0d-a509-5582-b8c6-0901f8b010e2#
  • The property '#/products/1/order_lines/0/due_date' of type null did not match the following type: string in schema 5c365e0d-a509-5582-b8c6-0901f8b010e2#
  • The property '#/products/1/order_lines/0/invoice_date' of type null did not match the following type: string in schema 5c365e0d-a509-5582-b8c6-0901f8b010e2#

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "ProductOrderLine_555": {
      "additionalProperties": false,
      "properties": {
        "amount_delivered": {
          "minimum": 0,
          "type": "number"
        },
        "delivery_date": {
          "format": "date",
          "type": "string"
        },
        "delivery_note_number": {
          "pattern": "\\d*",
          "type": "string"
        },
        "due_date": {
          "format": "date",
          "type": "string"
        },
        "id": {
          "pattern": "\\d*",
          "type": "string"
        },
        "invoice_date": {
          "format": "date",
          "type": "string"
        },
        "invoice_number": {
          "pattern": "\\d*",
          "type": "string"
        },
        "order": {
          "$ref": "#/definitions/ProductOrder_557",
          "type": "object"
        },
        "total_amount": {
          "minimum": 0,
          "type": "number"
        },
        "unit": {
          "type": "string"
        },
        "unit_price": {
          "minimum": 0,
          "type": "number"
        }
      },
      "required": [
        "amount_delivered",
        "delivery_date",
        "delivery_note_number",
        "due_date",
        "id",
        "invoice_date",
        "invoice_number",
        "order",
        "total_amount",
        "unit",
        "unit_price"
      ],
      "title": "OrderLine - ProductOrderLine",
      "type": "object"
    },
    "ProductOrder_557": {
      "additionalProperties": false,
      "properties": {
        "date": {
          "format": "date",
          "type": "string"
        },
        "delivery_mode": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "settled": {
          "type": "boolean"
        },
        "status": {
          "maximum": 2,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "date",
        "delivery_mode",
        "id",
        "settled",
        "status"
      ],
      "title": "Order - ProductOrder",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "products": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "activity_type": {
            "type": "string"
          },
          "amount_to_deliver": {
            "minimum": 0,
            "type": "number"
          },
          "delivered_amount": {
            "minimum": 0,
            "type": "number"
          },
          "id": {
            "pattern": "\\d*",
            "type": "string"
          },
          "invoiced_amount": {
            "minimum": 0,
            "type": "number"
          },
          "label": {
            "type": "string"
          },
          "order_lines": {
            "items": {
              "$ref": "#/definitions/ProductOrderLine_555",
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "activity_type",
          "amount_to_deliver",
          "delivered_amount",
          "id",
          "invoiced_amount",
          "label",
          "order_lines"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "products"
  ],
  "title": "Product - DefaultProduct",
  "type": "object"
}

JSON instance

{
  "products": [
    {
      "activity_type": "PEN",
      "amount_to_deliver": 0,
      "delivered_amount": 0,
      "id": "105056",
      "invoiced_amount": 20.05,
      "label": "SOL AZOTEE 390 (30%)",
      "order_lines": [
        {
          "amount_delivered": 5.7,
          "delivery_date": "2018-07-10",
          "delivery_note_number": "3986012",
          "due_date": "2018-08-31",
          "id": "1000",
          "invoice_date": "2018-08-08",
          "invoice_number": "18014271",
          "order": {
            "date": "2018-03-30",
            "delivery_mode": "Direct camion groupe",
            "id": "10811710",
            "settled": true,
            "status": 2
          },
          "total_amount": 5.7,
          "unit": "TN",
          "unit_price": 164
        },
        {
          "amount_delivered": 14.35,
          "delivery_date": "2018-07-12",
          "delivery_note_number": "3987814",
          "due_date": "2018-08-31",
          "id": "1000",
          "invoice_date": "2018-08-08",
          "invoice_number": "18014271",
          "order": {
            "date": "2018-04-05",
            "delivery_mode": "Direct camion groupe",
            "id": "10870046",
            "settled": true,
            "status": 2
          },
          "total_amount": 14.35,
          "unit": "TN",
          "unit_price": 164
        }
      ]
    },
    {
      "activity_type": "PEN",
      "amount_to_deliver": 7,
      "delivered_amount": 0,
      "id": "109058",
      "invoiced_amount": 0,
      "label": "SULF MAGNESIE 25MGO+40SO3",
      "order_lines": [
        {
          "amount_delivered": 0,
          "delivery_date": null,
          "delivery_note_number": null,
          "due_date": null,
          "id": "1000",
          "invoice_date": null,
          "invoice_number": "0",
          "order": {
            "date": "2018-11-12",
            "delivery_mode": "Relivraison vrac benne agri",
            "id": "11197485",
            "settled": false,
            "status": 0
          },
          "total_amount": 7,
          "unit": "TN",
          "unit_price": 255
        }
      ]
    },
    {
      "activity_type": "PEN",
      "amount_to_deliver": 0,
      "delivered_amount": 0,
      "id": "129439B2",
      "invoiced_amount": 17.4,
      "label": "SULFAN 24N+18SO3 BB600",
      "order_lines": [
        {
          "amount_delivered": 14.4,
          "delivery_date": "2018-08-27",
          "delivery_note_number": "4030769",
          "due_date": "2018-09-30",
          "id": "1000",
          "invoice_date": "2018-09-13",
          "invoice_number": "18031857",
          "order": {
            "date": "2018-06-01",
            "delivery_mode": "Direct camion groupe",
            "id": "10846341",
            "settled": true,
            "status": 2
          },
          "total_amount": 14.4,
          "unit": "TN",
          "unit_price": 222
        },
        {
          "amount_delivered": 3,
          "delivery_date": "2018-08-02",
          "delivery_note_number": "4003428",
          "due_date": "2018-09-30",
          "id": "1000",
          "invoice_date": "2018-09-13",
          "invoice_number": "18031857",
          "order": {
            "date": "2018-06-01",
            "delivery_mode": "Direct camion groupe",
            "id": "10846377",
            "settled": true,
            "status": 2
          },
          "total_amount": 3,
          "unit": "TN",
          "unit_price": 222
        }
      ]
    },
    {
      "activity_type": "PEN",
      "amount_to_deliver": 0,
      "delivered_amount": 0,
      "id": "105065",
      "invoiced_amount": 10,
      "label": "SUPERPHOSPHATE 46%",
      "order_lines": [
        {
          "amount_delivered": 10,
          "delivery_date": "2018-08-30",
          "delivery_note_number": "4034848",
          "due_date": "2018-09-30",
          "id": "1000",
          "invoice_date": "2018-09-13",
          "invoice_number": "18031857",
          "order": {
            "date": "2018-05-29",
            "delivery_mode": "Depart magasin",
            "id": "10769715",
            "settled": true,
            "status": 2
          },
          "total_amount": 10,
          "unit": "TN",
          "unit_price": 335
        }
      ]
    },
    {
      "activity_type": "PEN",
      "amount_to_deliver": 0,
      "delivered_amount": 0,
      "id": "104936B2",
      "invoiced_amount": 10.8,
      "label": "UREE 46% GR BB600",
      "order_lines": [
        {
          "amount_delivered": 10.8,
          "delivery_date": "2018-10-03",
          "delivery_note_number": "4070729",
          "due_date": "2018-11-30",
          "id": "1000",
          "invoice_date": "2018-11-12",
          "invoice_number": "18082458",
          "order": {
            "date": "2018-09-14",
            "delivery_mode": "Direct camion groupe",
            "id": "11039830",
            "settled": false,
            "status": 2
          },
          "total_amount": 10.8,
          "unit": "TN",
          "unit_price": 349
        }
      ]
    },
    {
      "activity_type": "PEN",
      "amount_to_deliver": 0,
      "delivered_amount": 0,
      "id": "179728",
      "invoiced_amount": 30.7,
      "label": "VINASSE +",
      "order_lines": [
        {
          "amount_delivered": 26.5,
          "delivery_date": "2018-08-21",
          "delivery_note_number": "4024383",
          "due_date": "2018-09-30",
          "id": "1000",
          "invoice_date": "2018-09-13",
          "invoice_number": "18031857",
          "order": {
            "date": "2018-03-29",
            "delivery_mode": "Orga direct avec epandage",
            "id": "10713536",
            "settled": true,
            "status": 2
          },
          "total_amount": 26.5,
          "unit": "TN",
          "unit_price": 73
        },
        {
          "amount_delivered": 4.2,
          "delivery_date": "2018-08-21",
          "delivery_note_number": "4024384",
          "due_date": "2018-09-30",
          "id": "1100",
          "invoice_date": "2018-09-13",
          "invoice_number": "18031857",
          "order": {
            "date": "2018-03-29",
            "delivery_mode": "Orga direct avec epandage",
            "id": "10713536",
            "settled": true,
            "status": 2
          },
          "total_amount": 4.2,
          "unit": "TN",
          "unit_price": 73
        }
      ]
    }
  ]
}

Validation #436

Failure

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

  • The property '#/products/0/order_lines/0/unit' value "TN" did not match one of the following values: LT in schema 0a52cc9c-37c8-5b51-95d1-fa8ed2928474#
  • The property '#/products/0/order_lines/1/unit' value "TN" did not match one of the following values: LT in schema 0a52cc9c-37c8-5b51-95d1-fa8ed2928474#
  • The property '#/products/1/order_lines/0/delivery_date' of type null did not match the following type: string in schema 0a52cc9c-37c8-5b51-95d1-fa8ed2928474#
  • The property '#/products/1/order_lines/0/delivery_note_number' of type null did not match the following type: string in schema 0a52cc9c-37c8-5b51-95d1-fa8ed2928474#
  • The property '#/products/1/order_lines/0/due_date' of type null did not match the following type: string in schema 0a52cc9c-37c8-5b51-95d1-fa8ed2928474#
  • The property '#/products/1/order_lines/0/invoice_date' of type null did not match the following type: string in schema 0a52cc9c-37c8-5b51-95d1-fa8ed2928474#
  • The property '#/products/1/order_lines/0/unit' value "TN" did not match one of the following values: LT in schema 0a52cc9c-37c8-5b51-95d1-fa8ed2928474#
  • The property '#/products/2/order_lines/0/unit' value "TN" did not match one of the following values: LT in schema 0a52cc9c-37c8-5b51-95d1-fa8ed2928474#
  • The property '#/products/2/order_lines/1/unit' value "TN" did not match one of the following values: LT in schema 0a52cc9c-37c8-5b51-95d1-fa8ed2928474#
  • The property '#/products/3/order_lines/0/unit' value "TN" did not match one of the following values: LT in schema 0a52cc9c-37c8-5b51-95d1-fa8ed2928474#
  • The property '#/products/4/order_lines/0/unit' value "TN" did not match one of the following values: LT in schema 0a52cc9c-37c8-5b51-95d1-fa8ed2928474#
  • The property '#/products/5/order_lines/0/unit' value "TN" did not match one of the following values: LT in schema 0a52cc9c-37c8-5b51-95d1-fa8ed2928474#
  • The property '#/products/5/order_lines/1/unit' value "TN" did not match one of the following values: LT in schema 0a52cc9c-37c8-5b51-95d1-fa8ed2928474#

JSON Schema

{
  "additionalProperties": false,
  "definitions": {
    "ProductOrderLine_555": {
      "additionalProperties": false,
      "properties": {
        "amount_delivered": {
          "minimum": 0,
          "type": "number"
        },
        "delivery_date": {
          "format": "date",
          "type": "string"
        },
        "delivery_note_number": {
          "pattern": "\\d*",
          "type": "string"
        },
        "due_date": {
          "format": "date",
          "type": "string"
        },
        "id": {
          "pattern": "\\d*",
          "type": "string"
        },
        "invoice_date": {
          "format": "date",
          "type": "string"
        },
        "invoice_number": {
          "pattern": "\\d*",
          "type": "string"
        },
        "order": {
          "$ref": "#/definitions/ProductOrder_557",
          "type": "object"
        },
        "total_amount": {
          "minimum": 0,
          "type": "number"
        },
        "unit": {
          "enum": [
            "LT"
          ],
          "type": "string"
        },
        "unit_price": {
          "minimum": 0,
          "type": "number"
        }
      },
      "required": [
        "amount_delivered",
        "delivery_date",
        "delivery_note_number",
        "due_date",
        "id",
        "invoice_date",
        "invoice_number",
        "order",
        "total_amount",
        "unit",
        "unit_price"
      ],
      "title": "OrderLine - ProductOrderLine",
      "type": "object"
    },
    "ProductOrder_557": {
      "additionalProperties": false,
      "properties": {
        "date": {
          "format": "date",
          "type": "string"
        },
        "delivery_mode": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "settled": {
          "type": "boolean"
        },
        "status": {
          "maximum": 2,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "date",
        "delivery_mode",
        "id",
        "settled",
        "status"
      ],
      "title": "Order - ProductOrder",
      "type": "object"
    }
  },
  "description": "Automatically generated (please edit me)",
  "properties": {
    "products": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "activity_type": {
            "type": "string"
          },
          "amount_to_deliver": {
            "minimum": 0,
            "type": "number"
          },
          "delivered_amount": {
            "minimum": 0,
            "type": "number"
          },
          "id": {
            "pattern": "\\d*",
            "type": "string"
          },
          "invoiced_amount": {
            "minimum": 0,
            "type": "number"
          },
          "label": {
            "type": "string"
          },
          "order_lines": {
            "items": {
              "$ref": "#/definitions/ProductOrderLine_555",
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "activity_type",
          "amount_to_deliver",
          "delivered_amount",
          "id",
          "invoiced_amount",
          "label",
          "order_lines"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "products"
  ],
  "title": "Product - DefaultProduct",
  "type": "object"
}

JSON instance

{
  "products": [
    {
      "activity_type": "PEN",
      "amount_to_deliver": 0,
      "delivered_amount": 0,
      "id": "105056",
      "invoiced_amount": 20.05,
      "label": "SOL AZOTEE 390 (30%)",
      "order_lines": [
        {
          "amount_delivered": 5.7,
          "delivery_date": "2018-07-10",
          "delivery_note_number": "3986012",
          "due_date": "2018-08-31",
          "id": "1000",
          "invoice_date": "2018-08-08",
          "invoice_number": "18014271",
          "order": {
            "date": "2018-03-30",
            "delivery_mode": "Direct camion groupe",
            "id": "10811710",
            "settled": true,
            "status": 2
          },
          "total_amount": 5.7,
          "unit": "TN",
          "unit_price": 164
        },
        {
          "amount_delivered": 14.35,
          "delivery_date": "2018-07-12",
          "delivery_note_number": "3987814",
          "due_date": "2018-08-31",
          "id": "1000",
          "invoice_date": "2018-08-08",
          "invoice_number": "18014271",
          "order": {
            "date": "2018-04-05",
            "delivery_mode": "Direct camion groupe",
            "id": "10870046",
            "settled": true,
            "status": 2
          },
          "total_amount": 14.35,
          "unit": "TN",
          "unit_price": 164
        }
      ]
    },
    {
      "activity_type": "PEN",
      "amount_to_deliver": 7,
      "delivered_amount": 0,
      "id": "109058",
      "invoiced_amount": 0,
      "label": "SULF MAGNESIE 25MGO+40SO3",
      "order_lines": [
        {
          "amount_delivered": 0,
          "delivery_date": null,
          "delivery_note_number": null,
          "due_date": null,
          "id": "1000",
          "invoice_date": null,
          "invoice_number": "0",
          "order": {
            "date": "2018-11-12",
            "delivery_mode": "Relivraison vrac benne agri",
            "id": "11197485",
            "settled": false,
            "status": 0
          },
          "total_amount": 7,
          "unit": "TN",
          "unit_price": 255
        }
      ]
    },
    {
      "activity_type": "PEN",
      "amount_to_deliver": 0,
      "delivered_amount": 0,
      "id": "129439B2",
      "invoiced_amount": 17.4,
      "label": "SULFAN 24N+18SO3 BB600",
      "order_lines": [
        {
          "amount_delivered": 14.4,
          "delivery_date": "2018-08-27",
          "delivery_note_number": "4030769",
          "due_date": "2018-09-30",
          "id": "1000",
          "invoice_date": "2018-09-13",
          "invoice_number": "18031857",
          "order": {
            "date": "2018-06-01",
            "delivery_mode": "Direct camion groupe",
            "id": "10846341",
            "settled": true,
            "status": 2
          },
          "total_amount": 14.4,
          "unit": "TN",
          "unit_price": 222
        },
        {
          "amount_delivered": 3,
          "delivery_date": "2018-08-02",
          "delivery_note_number": "4003428",
          "due_date": "2018-09-30",
          "id": "1000",
          "invoice_date": "2018-09-13",
          "invoice_number": "18031857",
          "order": {
            "date": "2018-06-01",
            "delivery_mode": "Direct camion groupe",
            "id": "10846377",
            "settled": true,
            "status": 2
          },
          "total_amount": 3,
          "unit": "TN",
          "unit_price": 222
        }
      ]
    },
    {
      "activity_type": "PEN",
      "amount_to_deliver": 0,
      "delivered_amount": 0,
      "id": "105065",
      "invoiced_amount": 10,
      "label": "SUPERPHOSPHATE 46%",
      "order_lines": [
        {
          "amount_delivered": 10,
          "delivery_date": "2018-08-30",
          "delivery_note_number": "4034848",
          "due_date": "2018-09-30",
          "id": "1000",
          "invoice_date": "2018-09-13",
          "invoice_number": "18031857",
          "order": {
            "date": "2018-05-29",
            "delivery_mode": "Depart magasin",
            "id": "10769715",
            "settled": true,
            "status": 2
          },
          "total_amount": 10,
          "unit": "TN",
          "unit_price": 335
        }
      ]
    },
    {
      "activity_type": "PEN",
      "amount_to_deliver": 0,
      "delivered_amount": 0,
      "id": "104936B2",
      "invoiced_amount": 10.8,
      "label": "UREE 46% GR BB600",
      "order_lines": [
        {
          "amount_delivered": 10.8,
          "delivery_date": "2018-10-03",
          "delivery_note_number": "4070729",
          "due_date": "2018-11-30",
          "id": "1000",
          "invoice_date": "2018-11-12",
          "invoice_number": "18082458",
          "order": {
            "date": "2018-09-14",
            "delivery_mode": "Direct camion groupe",
            "id": "11039830",
            "settled": false,
            "status": 2
          },
          "total_amount": 10.8,
          "unit": "TN",
          "unit_price": 349
        }
      ]
    },
    {
      "activity_type": "PEN",
      "amount_to_deliver": 0,
      "delivered_amount": 0,
      "id": "179728",
      "invoiced_amount": 30.7,
      "label": "VINASSE +",
      "order_lines": [
        {
          "amount_delivered": 26.5,
          "delivery_date": "2018-08-21",
          "delivery_note_number": "4024383",
          "due_date": "2018-09-30",
          "id": "1000",
          "invoice_date": "2018-09-13",
          "invoice_number": "18031857",
          "order": {
            "date": "2018-03-29",
            "delivery_mode": "Orga direct avec epandage",
            "id": "10713536",
            "settled": true,
            "status": 2
          },
          "total_amount": 26.5,
          "unit": "TN",
          "unit_price": 73
        },
        {
          "amount_delivered": 4.2,
          "delivery_date": "2018-08-21",
          "delivery_note_number": "4024384",
          "due_date": "2018-09-30",
          "id": "1100",
          "invoice_date": "2018-09-13",
          "invoice_number": "18031857",
          "order": {
            "date": "2018-03-29",
            "delivery_mode": "Orga direct avec epandage",
            "id": "10713536",
            "settled": true,
            "status": 2
          },
          "total_amount": 4.2,
          "unit": "TN",
          "unit_price": 73
        }
      ]
    }
  ]
}