resume-cli icon indicating copy to clipboard operation
resume-cli copied to clipboard

Resume Export not Working (Bad Json Schema Errors)

Open brentshermana opened this issue 4 years ago • 1 comments

I'm on osx, running version 1.2.7

I installed json resume using the prescribed npm install -g resume-cli

I ran resume export resume.html in a directory containing this example json resume, renamed resume.json, and got this output/error:

  running validation tests on resume.json ...

Cannot export. There are errors in your resume.json schema format.

     ✗ awards.0.date is undefined , expected undefined

  fail  1

Please fix your resume.json file and try again

I think that message should be considered a bug because if a value is undefined and also expected to be undefined, it shouldn't be an issue. resume test gave the same error message.

I assumed the error message meant that the award object in the example json resume was missing a "date" field and should NOT be missing it, so I added it in ("date": "2010-01-01") and got the same error. Nonsense!

As far as I can tell the example resume seems to conform to the json resume schema.

brentshermana avatar Mar 16 '20 03:03 brentshermana

Hello @brentshermana

I think I had a similar problem (same OS and resume version)

Error: basics.email is undefined , expected undefined

I fixed that by adding @ sign in the provided email (previously I put some random text for just checking this software). So I can suggest you check date format - it seems that this error is also thrown when field content (not only existence) validation fails

ziebamarcin avatar Mar 26 '20 17:03 ziebamarcin