Skip to content
Snippets Groups Projects

Merge 'develop' changes into 'master'.

Merged BEAUVAIS ANTOINE requested to merge develop into master
Viewing commit 7b61e336
Show latest version
2 files
+ 17
3
Preferences
Compare changes
Files
2
@@ -60,8 +60,7 @@ public class ApiSubmitTransactionController
if(t == null)
throw new ApiBadRequestException("Missing JSON body.");
if(t.getItem() == null || t.getType() == null ||
t.getAmount() == null)
if(!t.checkIfValid())
throw new ApiBadRequestException("Invalid JSON schema.");
System.out.println("Transaction : " + t.getItem() +