mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-22 00:10:15 +00:00
chore: replace fresca with fresh-resume-schema
This commit is contained in:
parent
e889481ad8
commit
f53c316ecb
@ -54,8 +54,8 @@
|
|||||||
"copy": "^0.1.3",
|
"copy": "^0.1.3",
|
||||||
"escape-latex": "^0.1.2",
|
"escape-latex": "^0.1.2",
|
||||||
"extend": "^3.0.0",
|
"extend": "^3.0.0",
|
||||||
"fresca": "~0.6.1",
|
|
||||||
"fresh-jrs-converter": "^0.2.3",
|
"fresh-jrs-converter": "^0.2.3",
|
||||||
|
"fresh-resume-schema": "^1.0.0-beta",
|
||||||
"fresh-resume-starter": "^0.3.1",
|
"fresh-resume-starter": "^0.3.1",
|
||||||
"fresh-themes": "^0.16.0-beta",
|
"fresh-themes": "^0.16.0-beta",
|
||||||
"fs-extra": "^0.26.4",
|
"fs-extra": "^0.26.4",
|
||||||
|
@ -285,7 +285,7 @@ class FreshResume extends AbstractResume
|
|||||||
|
|
||||||
###* Validate the sheet against the FRESH Resume schema. ###
|
###* Validate the sheet against the FRESH Resume schema. ###
|
||||||
isValid: ( info ) ->
|
isValid: ( info ) ->
|
||||||
schemaObj = require 'fresca'
|
schemaObj = require 'fresh-resume-schema'
|
||||||
validator = require 'is-my-json-valid'
|
validator = require 'is-my-json-valid'
|
||||||
validate = validator( schemaObj, { # See Note [1].
|
validate = validator( schemaObj, { # See Note [1].
|
||||||
formats: { date: /^\d{4}(?:-(?:0[0-9]{1}|1[0-2]{1})(?:-[0-9]{2})?)?$/ }
|
formats: { date: /^\d{4}(?:-(?:0[0-9]{1}|1[0-2]{1})(?:-[0-9]{2})?)?$/ }
|
||||||
|
@ -36,7 +36,7 @@ _validate = (sources, unused, opts) ->
|
|||||||
|
|
||||||
validator = require 'is-my-json-valid'
|
validator = require 'is-my-json-valid'
|
||||||
schemas =
|
schemas =
|
||||||
fresh: require 'fresca'
|
fresh: require 'fresh-resume-schema'
|
||||||
jars: require '../core/resume.json'
|
jars: require '../core/resume.json'
|
||||||
|
|
||||||
results = _.map sources, (t) ->
|
results = _.map sources, (t) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user