mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-22 16:30:11 +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 isValid = false;
|
||||||
var style = 'green';
|
var style = 'green';
|
||||||
var errors = [];
|
var errors = [];
|
||||||
var fmt = json.meta && (json.meta.format==='FRESH@0.1.0') ? 'fresh':'jars';
|
var fmt = json.basics ? 'jrs' : 'fresh';
|
||||||
|
|
||||||
try {
|
try {
|
||||||
var validate = validator( schemas[ fmt ], { // Note [1]
|
var validate = validator( schemas[ fmt ], { // Note [1]
|
||||||
|
Loading…
Reference in New Issue
Block a user