mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2025-05-09 23:37:09 +01:00
chore: replace fresca with fresh-resume-schema
This commit is contained in:
@ -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})?)?$/ }
|
||||
|
@ -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) ->
|
||||
|
Reference in New Issue
Block a user