1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-11-21 16:00:11 +00:00

chore: replace fresca with fresh-resume-schema

This commit is contained in:
hacksalot 2018-02-02 03:42:50 -05:00
parent e889481ad8
commit f53c316ecb
No known key found for this signature in database
GPG Key ID: 2F343EC247CA4B06
3 changed files with 3 additions and 3 deletions

View File

@ -54,8 +54,8 @@
"copy": "^0.1.3",
"escape-latex": "^0.1.2",
"extend": "^3.0.0",
"fresca": "~0.6.1",
"fresh-jrs-converter": "^0.2.3",
"fresh-resume-schema": "^1.0.0-beta",
"fresh-resume-starter": "^0.3.1",
"fresh-themes": "^0.16.0-beta",
"fs-extra": "^0.26.4",

View File

@ -285,7 +285,7 @@ class FreshResume extends AbstractResume
###* Validate the sheet against the FRESH Resume schema. ###
isValid: ( info ) ->
schemaObj = require 'fresca'
schemaObj = require 'fresh-resume-schema'
validator = require 'is-my-json-valid'
validate = validator( schemaObj, { # See Note [1].
formats: { date: /^\d{4}(?:-(?:0[0-9]{1}|1[0-2]{1})(?:-[0-9]{2})?)?$/ }

View File

@ -36,7 +36,7 @@ _validate = (sources, unused, opts) ->
validator = require 'is-my-json-valid'
schemas =
fresh: require 'fresca'
fresh: require 'fresh-resume-schema'
jars: require '../core/resume.json'
results = _.map sources, (t) ->