mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-05 09:56:22 +00:00
Fix format detection error in validate logic.
This commit is contained in:
parent
8203fa50ae
commit
f61deda4e8
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user