SiLeBAT / BfROpenLab

BfR KNIME extensions (FoodChain-Lab, KNIME Nodes for GIS and Graph Visualization, KNIME Nodes for Nonlinear Regression, BfR Network Mining Extensions, PMM-Lab Lite)
http://silebat.github.io/BfROpenLab/
GNU General Public License v3.0
7 stars 8 forks source link

Add JSON Import Schema Validation #460

Open ruegenbfr opened 5 years ago

ruegenbfr commented 5 years ago

The JSON schema of an imported JSON has to be verified.

afalenski commented 3 years ago

What is to be tested here?

afalenski commented 3 years ago

Test for JSON schema violation.

Test 1: Faulty JSON was imported via TracingView import dialogue. Result: Error message window saying "JSON is not valid (Invalid type for '/data/stations/columnProperties' (expected: array, found: object).)."

Test 2: Faulty JSON was imported via JSON Reader -> From JSON Result: From JSON node error message in console: Execute failed: JSON is not valid (Invalid type for '/data/stations/columnProperties' (expected: array, found: object).). Done.

Data: EmptyData_with_schema_violation.json Windows 10 KNIME 4.3.2 FoodChain-Lab 1.1.38.202105261110