1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-06-30 23:40:05 +01:00

Fix format detection error in validate logic.

This commit is contained in:
hacksalot 2016-01-06 00:21:18 -05:00
parent 8203fa50ae
commit f61deda4e8

View File

@ -62,7 +62,7 @@ Implementation of the 'validate' verb for HackMyResume.
var isValid = false;
var style = 'green';
var errors = [];
var fmt = json.meta && (json.meta.format==='FRESH@0.1.0') ? 'fresh':'jars';
var fmt = json.basics ? 'jrs' : 'fresh';
try {
var validate = validator( schemas[ fmt ], { // Note [1]