-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
36 improve api errors on wrong datastructures (#41)
* Added DataStructure TYPO error message. Added hint on error message if the TYPO is close enough to a valid input. * Fixed mypy and flake8 errors. --------- Co-authored-by: Francisco Javier Hernández del Caño <javier.hernandez@meaningfuldata.eu>
- Loading branch information
1 parent
70932d5
commit 2e82bfa
Showing
27 changed files
with
661 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Id_1,Id_2,Id_3,Id_4,Id_5,Id_6,Id_7,Id_8,Me_1 | ||
1,0.2e-3,TRUE,"2010-01-01/2010-12-01","2014-01-01",2015M03,blabla,"Q",blabla |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Id_1,Id_2,Id_3,Id_4,Id_5,Id_6,Id_7,Id_8,Me_1 | ||
1,0.2e-3,TRUE,"2010-01-01/2010-12-01","2014-01-01",2015M03,blabla,"Q",blabla |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Id_1,Id_2,Id_3,Id_4,Id_5,Id_6,Id_7,Id_8,Me_1 | ||
1,0.2e-3,TRUE,"2010-01-01/2010-12-01","2014-01-01",2015M03,blabla,"Q",blabla |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Id_1,Id_2,Id_3,Id_4,Id_5,Id_6,Id_7,Id_8,Me_1 | ||
1,0.2e-3,TRUE,"2010-01-01/2010-12-01","2014-01-01",2015M03,blabla,"Q",blabla |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Id_1,Id_2,Id_3,Id_4,Id_5,Id_6,Id_7,Id_8,Me_1 | ||
1,0.2e-3,TRUE,"2010-01-01/2010-12-01","2014-01-01",2015M03,blabla,"Q",blabla |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Id_1,Id_2,Id_3,Id_4,Id_5,Id_6,Id_7,Id_8,Me_1 | ||
1,0.2e-3,TRUE,"2010-01-01/2010-12-01","2014-01-01",2015M03,blabla,"Q",blabla |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Id_1,Id_2,Id_3,Id_4,Id_5,Id_6,Id_7,Id_8,Me_1 | ||
1,0.2e-3,TRUE,"2010-01-01/2010-12-01","2014-01-01",2015M03,blabla,"Q",blabla |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"datasets": [ | ||
{ | ||
"name": "DS_1", | ||
"DataStructure": [ | ||
{ | ||
"name": "Id_1", | ||
"role": "Identfier", | ||
"type": "Integer", | ||
"nullable": false | ||
}, | ||
{ | ||
"name": "Id_2", | ||
"role": "Identifier", | ||
"type": "Number", | ||
"nullable": false | ||
}, | ||
{ | ||
"name": "Id_3", | ||
"role": "Identifier", | ||
"type": "Boolean", | ||
"nullable": false | ||
}, | ||
{ | ||
"name": "Id_4", | ||
"role": "Identifier", | ||
"type": "Time", | ||
"nullable": false | ||
}, | ||
{ | ||
"name": "Id_5", | ||
"role": "Identifier", | ||
"type": "Date", | ||
"nullable": false | ||
}, | ||
{ | ||
"name": "Id_6", | ||
"role": "Identifier", | ||
"type": "Time_Period", | ||
"nullable": false | ||
}, | ||
{ | ||
"name": "Id_7", | ||
"role": "Identifier", | ||
"type": "String", | ||
"nullable": false | ||
}, | ||
{ | ||
"name": "Id_8", | ||
"role": "Identifier", | ||
"type": "Duration", | ||
"nullable": false | ||
}, | ||
{ | ||
"name": "Me_1", | ||
"role": "Measure", | ||
"type": "String", | ||
"nullable": true | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"datasets": [ | ||
{ | ||
"name": "DS_1", | ||
"DataStructure": [ | ||
{ | ||
"name": "Id_1", | ||
"role": "Identifier", | ||
"type": "Integer", | ||
"nullable": false | ||
}, | ||
{ | ||
"name": "Id_2", | ||
"role": "Identifier", | ||
"type": "Number", | ||
"nullable": false | ||
}, | ||
{ | ||
"name": "Id_3", | ||
"role": "Identifier", | ||
"type": "Boolean", | ||
"nullable": false | ||
}, | ||
{ | ||
"name": "Id_4", | ||
"role": "Identifier", | ||
"type": "Time", | ||
"nullable": false | ||
}, | ||
{ | ||
"name": "Id_5", | ||
"role": "Identifier", | ||
"type": "Date", | ||
"nullable": false | ||
}, | ||
{ | ||
"name": "Id_6", | ||
"role": "Identifier", | ||
"type": "Time_Period", | ||
"nullable": false | ||
}, | ||
{ | ||
"name": "Id_7", | ||
"role": "Identifier", | ||
"type": "String", | ||
"nullable": false | ||
}, | ||
{ | ||
"name": "Id_8", | ||
"role": "Identifier", | ||
"type": "Duration", | ||
"nullable": false | ||
}, | ||
{ | ||
"name": "Me_1", | ||
"role": "Masure", | ||
"type": "String", | ||
"nullable": true | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"datasets": [ | ||
{ | ||
"name": "DS_1", | ||
"DataStructure": [ | ||
{ | ||
"name": "Id_1", | ||
"role": "Identifier", | ||
"type": "Integer", | ||
"nullable": false | ||
}, | ||
{ | ||
"name": "Id_2", | ||
"role": "Identifier", | ||
"type": "Numver", | ||
"nullable": false | ||
}, | ||
{ | ||
"name": "Id_3", | ||
"role": "Identifier", | ||
"type": "Boolean", | ||
"nullable": false | ||
}, | ||
{ | ||
"name": "Id_4", | ||
"role": "Identifier", | ||
"type": "Time", | ||
"nullable": false | ||
}, | ||
{ | ||
"name": "Id_5", | ||
"role": "Identifier", | ||
"type": "Date", | ||
"nullable": false | ||
}, | ||
{ | ||
"name": "Id_6", | ||
"role": "Identifier", | ||
"type": "Time_Period", | ||
"nullable": false | ||
}, | ||
{ | ||
"name": "Id_7", | ||
"role": "Identifier", | ||
"type": "String", | ||
"nullable": false | ||
}, | ||
{ | ||
"name": "Id_8", | ||
"role": "Identifier", | ||
"type": "Duration", | ||
"nullable": false | ||
}, | ||
{ | ||
"name": "Me_1", | ||
"role": "Measure", | ||
"type": "String", | ||
"nullable": true | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.