resume-schema
Advanced tools
Comparing version 0.0.16 to 0.0.17
{ | ||
"name": "resume-schema", | ||
"version": "0.0.16", | ||
"description": "JSON Resume Schema", | ||
"main": "validator.js", | ||
"scripts": { | ||
"test": "node ./test/index.js | tap-spec" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/jsonresume/resume-schema.git" | ||
}, | ||
"author": "", | ||
"license": "BSD-2-Clause", | ||
"bugs": { | ||
"url": "https://github.com/jsonresume/resume-schema/issues" | ||
}, | ||
"dependencies": { | ||
"z-schema": "~2.4.8" | ||
}, | ||
"devDependencies": { | ||
"tap-spec": "^0.2.0", | ||
"tape": "^2.13.3" | ||
} | ||
"name": "resume-schema", | ||
"version": "0.0.17", | ||
"description": "JSON Resume Schema", | ||
"main": "validator.js", | ||
"scripts": { | ||
"test": "node ./test/index.js | tap-spec" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/jsonresume/resume-schema.git" | ||
}, | ||
"license": "BSD-2-Clause", | ||
"bugs": { | ||
"url": "https://github.com/jsonresume/resume-schema/issues" | ||
}, | ||
"files": [ | ||
"resume.json", | ||
"schema.json", | ||
"validator.js" | ||
], | ||
"dependencies": { | ||
"z-schema": "~3.19.0" | ||
}, | ||
"devDependencies": { | ||
"promise": "^8.0.1", | ||
"tap-spec": "^4.1.1", | ||
"tape": "^4.6.3" | ||
}, | ||
"engines": { | ||
"node": "8" | ||
} | ||
} |
# JSON Resume Schema | ||
[![Build Status](https://api.travis-ci.org/jsonresume/resume-schema.svg)](http://travis-ci.org/jsonresume/resume-schema) | ||
[![Greenkeeper badge](https://badges.greenkeeper.io/jsonresume/resume-schema.svg)](https://greenkeeper.io/) | ||
[![Build Status](https://api.travis-ci.org/jsonresume/resume-schema.svg)](http://travis-ci.org/jsonresume/resume-schema) [![Dependency Status](https://david-dm.org/jsonresume/resume-schema.svg)](https://david-dm.org/jsonresume/resume-schema) | ||
Standard, Specification, Schema | ||
@@ -36,5 +38,5 @@ | ||
### IRC | ||
### Gitter | ||
Everyone working on the early stages of the project should join our Freenode channel `#jsonresume`. You can use the web client [http://webchat.freenode.net](http://webchat.freenode.net/). | ||
Everyone working on the early stages of the project should join our gitter channel [gitter.im/jsonresume/public](https://gitter.im/jsonresume/public). | ||
@@ -49,5 +51,11 @@ ### Getting started | ||
``` | ||
```js | ||
var resumeSchema = require('resume-schema'); | ||
resumeSchema.validate({name: "Thomas"}); | ||
resumeSchema.validate({ name: "Thomas" }, function (err, report) { | ||
if (err) { | ||
console.error('The resume was invalid:', err); | ||
return; | ||
} | ||
console.log('Resume validated successfully:', report); | ||
}); | ||
``` | ||
@@ -57,3 +65,3 @@ | ||
``` | ||
```js | ||
var fs = require('fs'); | ||
@@ -65,2 +73,8 @@ var resumeSchema = require('resume-schema'); | ||
The JSON Resume schema is available from: | ||
```js | ||
require('resume-schema').schema; | ||
``` | ||
### People | ||
@@ -72,3 +86,3 @@ | ||
We encourage anyone who's interested in participating in the formation of this standard, to join us on IRC, and/or to join the discussions [here on GitHub](https://github.com/jsonresume/resume-schema/issues). Also feel free to fork this project and submit new ideas to add to the JSON Resume Schema standard. To make sure all formatting is kept in check, please install the [EditorConfig plugin](http://editorconfig.org/) for your editor of choice. | ||
We encourage anyone who's interested in participating in the formation of this standard, to join us on Gitter, and/or to join the discussions [here on GitHub](https://github.com/jsonresume/resume-schema/issues). Also feel free to fork this project and submit new ideas to add to the JSON Resume Schema standard. To make sure all formatting is kept in check, please install the [EditorConfig plugin](http://editorconfig.org/) for your editor of choice. | ||
@@ -75,0 +89,0 @@ ### Versioning |
846
schema.json
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "Resume Schema", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"basics": { | ||
"type": "object", | ||
"additionalProperties": true, | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"label": { | ||
"type": "string", | ||
"description": "e.g. Web Developer" | ||
}, | ||
"picture": { | ||
"type": "string", | ||
"description": "URL (as per RFC 3986) to a picture in JPEG or PNG format" | ||
}, | ||
"email": { | ||
"type": "string", | ||
"description": "e.g. thomas@gmail.com", | ||
"format": "email" | ||
}, | ||
"phone": { | ||
"type": "string", | ||
"description": "Phone numbers are stored as strings so use any format you like, e.g. 712-117-2923" | ||
}, | ||
"website": { | ||
"type": "string", | ||
"description": "URL (as per RFC 3986) to your website, e.g. personal homepage", | ||
"format": "uri" | ||
}, | ||
"summary": { | ||
"type": "string", | ||
"description": "Write a short 2-3 sentence biography about yourself" | ||
}, | ||
"location": { | ||
"type": "object", | ||
"additionalProperties": true, | ||
"properties": { | ||
"address": { | ||
"type": "string", | ||
"description": "To add multiple address lines, use \n. For example, 1234 Glücklichkeit Straße\nHinterhaus 5. Etage li." | ||
}, | ||
"postalCode": { | ||
"type": "string" | ||
}, | ||
"city": { | ||
"type": "string" | ||
}, | ||
"countryCode": { | ||
"type": "string", | ||
"description": "code as per ISO-3166-1 ALPHA-2, e.g. US, AU, IN" | ||
}, | ||
"region": { | ||
"type": "string", | ||
"description": "The general region where you live. Can be a US state, or a province, for instance." | ||
} | ||
} | ||
}, | ||
"profiles": { | ||
"type": "array", | ||
"description": "Specify any number of social networks that you participate in", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "object", | ||
"additionalProperties": true, | ||
"properties": { | ||
"network": { | ||
"type": "string", | ||
"description": "e.g. Facebook or Twitter" | ||
}, | ||
"username": { | ||
"type": "string", | ||
"description": "e.g. neutralthoughts" | ||
}, | ||
"url": { | ||
"type": "string", | ||
"description": "e.g. http://twitter.com/neutralthoughts" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"work": { | ||
"type": "array", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "object", | ||
"additionalProperties": true, | ||
"properties": { | ||
"company": { | ||
"type": "string", | ||
"description": "e.g. Facebook" | ||
}, | ||
"position": { | ||
"type": "string", | ||
"description": "e.g. Software Engineer" | ||
}, | ||
"website": { | ||
"type": "string", | ||
"description": "e.g. http://facebook.com", | ||
"format": "uri" | ||
}, | ||
"startDate": { | ||
"type": "string", | ||
"description": "resume.json uses the ISO 8601 date standard e.g. 2014-06-29", | ||
"format": "date" | ||
}, | ||
"endDate": { | ||
"type": "string", | ||
"description": "e.g. 2012-06-29", | ||
"format": "date" | ||
}, | ||
"summary": { | ||
"type": "string", | ||
"description": "Give an overview of your responsibilities at the company" | ||
}, | ||
"highlights": { | ||
"type": "array", | ||
"description": "Specify multiple accomplishments", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "string", | ||
"description": "e.g. Increased profits by 20% from 2011-2012 through viral advertising" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"volunteer": { | ||
"type": "array", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "object", | ||
"additionalProperties": true, | ||
"properties": { | ||
"organization": { | ||
"type": "string", | ||
"description": "e.g. Facebook" | ||
}, | ||
"position": { | ||
"type": "string", | ||
"description": "e.g. Software Engineer" | ||
}, | ||
"website": { | ||
"type": "string", | ||
"description": "e.g. http://facebook.com", | ||
"format": "uri" | ||
}, | ||
"startDate": { | ||
"type": "string", | ||
"description": "resume.json uses the ISO 8601 date standard e.g. 2014-06-29", | ||
"format": "date" | ||
}, | ||
"endDate": { | ||
"type": "string", | ||
"description": "e.g. 2012-06-29", | ||
"format": "date" | ||
}, | ||
"summary": { | ||
"type": "string", | ||
"description": "Give an overview of your responsibilities at the company" | ||
}, | ||
"highlights": { | ||
"type": "array", | ||
"description": "Specify multiple accomplishments", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "string", | ||
"description": "e.g. Increased profits by 20% from 2011-2012 through viral advertising" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"education": { | ||
"type": "array", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "object", | ||
"additionalProperties": true, | ||
"properties": { | ||
"institution": { | ||
"type": "string", | ||
"description": "e.g. Massachusetts Institute of Technology" | ||
}, | ||
"area": { | ||
"type": "string", | ||
"description": "e.g. Arts" | ||
}, | ||
"studyType": { | ||
"type": "string", | ||
"description": "e.g. Bachelor" | ||
}, | ||
"startDate": { | ||
"type": "string", | ||
"description": "e.g. 2014-06-29", | ||
"format": "date" | ||
}, | ||
"endDate": { | ||
"type": "string", | ||
"description": "e.g. 2012-06-29", | ||
"format": "date" | ||
}, | ||
"gpa": { | ||
"type": "string", | ||
"description": "grade point average, e.g. 3.67/4.0" | ||
}, | ||
"courses": { | ||
"type": "array", | ||
"description": "List notable courses/subjects", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "string", | ||
"description": "e.g. H1302 - Introduction to American history" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"awards": { | ||
"type": "array", | ||
"description": "Specify any awards you have received throughout your professional career", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "object", | ||
"additionalProperties": true, | ||
"properties": { | ||
"title": { | ||
"type": "string", | ||
"description": "e.g. One of the 100 greatest minds of the century" | ||
}, | ||
"date": { | ||
"type": "string", | ||
"description": "e.g. 1989-06-12", | ||
"format": "date" | ||
}, | ||
"awarder": { | ||
"type": "string", | ||
"description": "e.g. Time Magazine" | ||
}, | ||
"summary": { | ||
"type": "string", | ||
"description": "e.g. Received for my work with Quantum Physics" | ||
} | ||
} | ||
} | ||
}, | ||
"publications": { | ||
"type": "array", | ||
"description": "Specify your publications through your career", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "object", | ||
"additionalProperties": true, | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "e.g. The World Wide Web" | ||
}, | ||
"publisher": { | ||
"type": "string", | ||
"description": "e.g. IEEE, Computer Magazine" | ||
}, | ||
"releaseDate": { | ||
"type": "string", | ||
"description": "e.g. 1990-08-01" | ||
}, | ||
"website": { | ||
"type": "string", | ||
"description": "e.g. http://www.computer.org/csdl/mags/co/1996/10/rx069-abs.html" | ||
}, | ||
"summary": { | ||
"type": "string", | ||
"description": "Short summary of publication. e.g. Discussion of the World Wide Web, HTTP, HTML." | ||
} | ||
} | ||
} | ||
}, | ||
"skills": { | ||
"type": "array", | ||
"description": "List out your professional skill-set", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "object", | ||
"additionalProperties": true, | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "e.g. Web Development" | ||
}, | ||
"level": { | ||
"type": "string", | ||
"description": "e.g. Master" | ||
}, | ||
"keywords": { | ||
"type": "array", | ||
"description": "List some keywords pertaining to this skill", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "string", | ||
"description": "e.g. HTML" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"languages": { | ||
"type": "array", | ||
"description": "List any other languages you speak", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "object", | ||
"additionalProperties": true, | ||
"properties": { | ||
"language": { | ||
"type": "string", | ||
"description": "e.g. English, Spanish" | ||
}, | ||
"fluency": { | ||
"type": "string", | ||
"description": "e.g. Fluent, Beginner" | ||
} | ||
} | ||
} | ||
}, | ||
"interests": { | ||
"type": "array", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "object", | ||
"additionalProperties": true, | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "e.g. Philosophy" | ||
}, | ||
"keywords": { | ||
"type": "array", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "string", | ||
"description": "e.g. Friedrich Nietzsche" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"references": { | ||
"type": "array", | ||
"description": "List references you have received", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "object", | ||
"additionalProperties": true, | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "e.g. Timothy Cook" | ||
}, | ||
"reference": { | ||
"type": "string", | ||
"description": "e.g. Joe blogs was a great employee, who turned up to work at least once a week. He exceeded my expectations when it came to doing nothing." | ||
} | ||
} | ||
} | ||
} | ||
} | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "Resume Schema", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"basics": { | ||
"type": "object", | ||
"additionalProperties": true, | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"label": { | ||
"type": "string", | ||
"description": "e.g. Web Developer" | ||
}, | ||
"image": { | ||
"type": "string", | ||
"description": "URL (as per RFC 3986) to a image in JPEG or PNG format" | ||
}, | ||
"email": { | ||
"type": "string", | ||
"description": "e.g. thomas@gmail.com", | ||
"format": "email" | ||
}, | ||
"phone": { | ||
"type": "string", | ||
"description": "Phone numbers are stored as strings so use any format you like, e.g. 712-117-2923" | ||
}, | ||
"url": { | ||
"type": "string", | ||
"description": "URL (as per RFC 3986) to your website, e.g. personal homepage", | ||
"format": "uri" | ||
}, | ||
"summary": { | ||
"type": "string", | ||
"description": "Write a short 2-3 sentence biography about yourself" | ||
}, | ||
"location": { | ||
"type": "object", | ||
"additionalProperties": true, | ||
"properties": { | ||
"address": { | ||
"type": "string", | ||
"description": "To add multiple address lines, use \n. For example, 1234 Glücklichkeit Straße\nHinterhaus 5. Etage li." | ||
}, | ||
"postalCode": { | ||
"type": "string" | ||
}, | ||
"city": { | ||
"type": "string" | ||
}, | ||
"countryCode": { | ||
"type": "string", | ||
"description": "code as per ISO-3166-1 ALPHA-2, e.g. US, AU, IN" | ||
}, | ||
"region": { | ||
"type": "string", | ||
"description": "The general region where you live. Can be a US state, or a province, for instance." | ||
} | ||
} | ||
}, | ||
"profiles": { | ||
"type": "array", | ||
"description": "Specify any number of social networks that you participate in", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "object", | ||
"additionalProperties": true, | ||
"properties": { | ||
"network": { | ||
"type": "string", | ||
"description": "e.g. Facebook or Twitter" | ||
}, | ||
"username": { | ||
"type": "string", | ||
"description": "e.g. neutralthoughts" | ||
}, | ||
"url": { | ||
"type": "string", | ||
"description": "e.g. http://twitter.example.com/neutralthoughts" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"work": { | ||
"type": "array", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "object", | ||
"additionalProperties": true, | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "e.g. Facebook" | ||
}, | ||
"location": { | ||
"type": "string", | ||
"description": "e.g. Menlo Park, CA" | ||
}, | ||
"description": { | ||
"type": "string", | ||
"description": "e.g. Social Media Company" | ||
}, | ||
"position": { | ||
"type": "string", | ||
"description": "e.g. Software Engineer" | ||
}, | ||
"url": { | ||
"type": "string", | ||
"description": "e.g. http://facebook.example.com", | ||
"format": "uri" | ||
}, | ||
"startDate": { | ||
"type": "string", | ||
"description": "resume.json uses the ISO 8601 date standard e.g. 2014-06-29", | ||
"format": "date" | ||
}, | ||
"endDate": { | ||
"type": "string", | ||
"description": "e.g. 2012-06-29", | ||
"format": "date" | ||
}, | ||
"summary": { | ||
"type": "string", | ||
"description": "Give an overview of your responsibilities at the company" | ||
}, | ||
"highlights": { | ||
"type": "array", | ||
"description": "Specify multiple accomplishments", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "string", | ||
"description": "e.g. Increased profits by 20% from 2011-2012 through viral advertising" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"volunteer": { | ||
"type": "array", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "object", | ||
"additionalProperties": true, | ||
"properties": { | ||
"organization": { | ||
"type": "string", | ||
"description": "e.g. Facebook" | ||
}, | ||
"position": { | ||
"type": "string", | ||
"description": "e.g. Software Engineer" | ||
}, | ||
"url": { | ||
"type": "string", | ||
"description": "e.g. http://facebook.example.com", | ||
"format": "uri" | ||
}, | ||
"startDate": { | ||
"type": "string", | ||
"description": "resume.json uses the ISO 8601 date standard e.g. 2014-06-29", | ||
"format": "date" | ||
}, | ||
"endDate": { | ||
"type": "string", | ||
"description": "e.g. 2012-06-29", | ||
"format": "date" | ||
}, | ||
"summary": { | ||
"type": "string", | ||
"description": "Give an overview of your responsibilities at the company" | ||
}, | ||
"highlights": { | ||
"type": "array", | ||
"description": "Specify accomplishments and achievements", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "string", | ||
"description": "e.g. Increased profits by 20% from 2011-2012 through viral advertising" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"education": { | ||
"type": "array", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "object", | ||
"additionalProperties": true, | ||
"properties": { | ||
"institution": { | ||
"type": "string", | ||
"description": "e.g. Massachusetts Institute of Technology" | ||
}, | ||
"area": { | ||
"type": "string", | ||
"description": "e.g. Arts" | ||
}, | ||
"studyType": { | ||
"type": "string", | ||
"description": "e.g. Bachelor" | ||
}, | ||
"startDate": { | ||
"type": "string", | ||
"description": "e.g. 2014-06-29", | ||
"format": "date" | ||
}, | ||
"endDate": { | ||
"type": "string", | ||
"description": "e.g. 2012-06-29", | ||
"format": "date" | ||
}, | ||
"gpa": { | ||
"type": "string", | ||
"description": "grade point average, e.g. 3.67/4.0" | ||
}, | ||
"courses": { | ||
"type": "array", | ||
"description": "List notable courses/subjects", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "string", | ||
"description": "e.g. H1302 - Introduction to American history" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"awards": { | ||
"type": "array", | ||
"description": "Specify any awards you have received throughout your professional career", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "object", | ||
"additionalProperties": true, | ||
"properties": { | ||
"title": { | ||
"type": "string", | ||
"description": "e.g. One of the 100 greatest minds of the century" | ||
}, | ||
"date": { | ||
"type": "string", | ||
"description": "e.g. 1989-06-12", | ||
"format": "date" | ||
}, | ||
"awarder": { | ||
"type": "string", | ||
"description": "e.g. Time Magazine" | ||
}, | ||
"summary": { | ||
"type": "string", | ||
"description": "e.g. Received for my work with Quantum Physics" | ||
} | ||
} | ||
} | ||
}, | ||
"publications": { | ||
"type": "array", | ||
"description": "Specify your publications through your career", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "object", | ||
"additionalProperties": true, | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "e.g. The World Wide Web" | ||
}, | ||
"publisher": { | ||
"type": "string", | ||
"description": "e.g. IEEE, Computer Magazine" | ||
}, | ||
"releaseDate": { | ||
"type": "string", | ||
"description": "e.g. 1990-08-01" | ||
}, | ||
"url": { | ||
"type": "string", | ||
"description": "e.g. http://www.computer.org.example.com/csdl/mags/co/1996/10/rx069-abs.html" | ||
}, | ||
"summary": { | ||
"type": "string", | ||
"description": "Short summary of publication. e.g. Discussion of the World Wide Web, HTTP, HTML." | ||
} | ||
} | ||
} | ||
}, | ||
"skills": { | ||
"type": "array", | ||
"description": "List out your professional skill-set", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "object", | ||
"additionalProperties": true, | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "e.g. Web Development" | ||
}, | ||
"level": { | ||
"type": "string", | ||
"description": "e.g. Master" | ||
}, | ||
"keywords": { | ||
"type": "array", | ||
"description": "List some keywords pertaining to this skill", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "string", | ||
"description": "e.g. HTML" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"languages": { | ||
"type": "array", | ||
"description": "List any other languages you speak", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "object", | ||
"additionalProperties": true, | ||
"properties": { | ||
"language": { | ||
"type": "string", | ||
"description": "e.g. English, Spanish" | ||
}, | ||
"fluency": { | ||
"type": "string", | ||
"description": "e.g. Fluent, Beginner" | ||
} | ||
} | ||
} | ||
}, | ||
"interests": { | ||
"type": "array", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "object", | ||
"additionalProperties": true, | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "e.g. Philosophy" | ||
}, | ||
"keywords": { | ||
"type": "array", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "string", | ||
"description": "e.g. Friedrich Nietzsche" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"references": { | ||
"type": "array", | ||
"description": "List references you have received", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "object", | ||
"additionalProperties": true, | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "e.g. Timothy Cook" | ||
}, | ||
"reference": { | ||
"type": "string", | ||
"description": "e.g. Joe blogs was a great employee, who turned up to work at least once a week. He exceeded my expectations when it came to doing nothing." | ||
} | ||
} | ||
} | ||
}, | ||
"projects": { | ||
"type": "array", | ||
"description": "Specify career projects", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "object", | ||
"additionalProperties": true, | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "e.g. The World Wide Web" | ||
}, | ||
"description": { | ||
"type": "string", | ||
"description": "Short summary of project. e.g. Collated works of 2017." | ||
}, | ||
"highlights": { | ||
"type": "array", | ||
"description": "Specify multiple features", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "string", | ||
"description": "e.g. Directs you close but not quite there" | ||
} | ||
}, | ||
"keywords": { | ||
"type": "array", | ||
"description": "Specify special elements involved", | ||
"additionalItems": false, | ||
"items": { | ||
"type": "string", | ||
"description": "e.g. AngularJS" | ||
} | ||
}, | ||
"startDate": { | ||
"type": "string", | ||
"description": "resume.json uses the ISO 8601 date standard e.g. 2014-06-29", | ||
"format": "date" | ||
}, | ||
"endDate": { | ||
"type": "string", | ||
"description": "e.g. 2012-06-29", | ||
"format": "date" | ||
}, | ||
"url": { | ||
"type": "string", | ||
"format":"uri", | ||
"description": "e.g. http://www.computer.org/csdl/mags/co/1996/10/rx069-abs.html" | ||
}, | ||
"roles":{ | ||
"type":"array", | ||
"description": "Specify your role on this project or in company", | ||
"additionalItems": false, | ||
"items": { | ||
"type":"string", | ||
"description": "e.g. Team Lead, Speaker, Writer" | ||
} | ||
}, | ||
"entity":{ | ||
"type": "string", | ||
"description": "Specify the relevant company/entity affiliations e.g. 'greenpeace', 'corporationXYZ'" | ||
}, | ||
"type":{ | ||
"type":"string", | ||
"description": " e.g. 'volunteering', 'presentation', 'talk', 'application', 'conference'" | ||
} | ||
} | ||
} | ||
}, | ||
"meta": { | ||
"type": "object", | ||
"description": "The schema version and any other tooling configuration lives here", | ||
"additionalProperties": true, | ||
"properties": { | ||
"canonical": { | ||
"type": "string", | ||
"description": "URL (as per RFC 3986) to latest version of this document" | ||
}, | ||
"version": { | ||
"type": "string", | ||
"description": "A version field which follows semver - e.g. v1.0.0" | ||
}, | ||
"lastModified": { | ||
"type": "string", | ||
"description": "Using ISO 8601 with YYYY-MM-DDThh:mm:ss" | ||
} | ||
} | ||
} | ||
} | ||
} |
@@ -1,5 +0,7 @@ | ||
var ZSchema = require("z-schema"); | ||
'use strict'; | ||
var ZSchema = require('z-schema'); | ||
var fs = require('fs'); | ||
var path = require('path'); | ||
var resumeJson = require('./resume'); | ||
var schema = require('./schema'); | ||
@@ -10,14 +12,17 @@ // TODO - Remove this sync call | ||
function validate(resumeJson, callback) { | ||
ZSchema.validate(resumeJson, schema) | ||
.then(function(report) { | ||
callback(report, null); | ||
}) | ||
. | ||
catch (function(err) { | ||
callback(null, err); | ||
}) | ||
// Callers expect z-schema 2.4.x report object | ||
var callbackWrapper = function(err, valid) { | ||
if(err) { | ||
callback(err) | ||
} else { | ||
callback(null, {valid: valid}); | ||
} | ||
} | ||
new ZSchema().validate(resumeJson, schema, callbackWrapper); | ||
} | ||
module.exports = { | ||
validate: validate, | ||
resumeJson: resumeJson | ||
} | ||
validate: validate, | ||
schema: schema | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 3 instances in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
109
1
23617
3
5
492
+ Addedcommander@2.20.3(transitive)
+ Addedlodash.get@4.4.2(transitive)
+ Addedlodash.isequal@4.5.0(transitive)
+ Addedvalidator@9.4.1(transitive)
+ Addedz-schema@3.19.1(transitive)
- Removedajv@6.12.6(transitive)
- Removedasn1@0.2.6(transitive)
- Removedassert-plus@1.0.0(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedaws-sign2@0.7.0(transitive)
- Removedaws4@1.13.2(transitive)
- Removedbcrypt-pbkdf@1.0.2(transitive)
- Removedbluebird@3.7.2(transitive)
- Removedcaseless@0.12.0(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removedcore-util-is@1.0.2(transitive)
- Removeddashdash@1.14.1(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removedecc-jsbn@0.1.2(transitive)
- Removedextend@3.0.2(transitive)
- Removedextsprintf@1.3.0(transitive)
- Removedfast-deep-equal@3.1.3(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedforever-agent@0.6.1(transitive)
- Removedform-data@2.3.3(transitive)
- Removedgetpass@0.1.7(transitive)
- Removedhar-schema@2.0.0(transitive)
- Removedhar-validator@5.1.5(transitive)
- Removedhttp-signature@1.2.0(transitive)
- Removedis-typedarray@1.0.0(transitive)
- Removedisstream@0.1.2(transitive)
- Removedjsbn@0.1.1(transitive)
- Removedjson-schema@0.4.0(transitive)
- Removedjson-schema-traverse@0.4.1(transitive)
- Removedjson-stringify-safe@5.0.1(transitive)
- Removedjsprim@1.4.2(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedoauth-sign@0.9.0(transitive)
- Removedperformance-now@2.1.0(transitive)
- Removedpsl@1.9.0(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedqs@6.5.3(transitive)
- Removedrequest@2.88.2(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsshpk@1.18.0(transitive)
- Removedtough-cookie@2.5.0(transitive)
- Removedtunnel-agent@0.6.0(transitive)
- Removedtweetnacl@0.14.5(transitive)
- Removeduri-js@4.4.1(transitive)
- Removeduuid@3.4.0(transitive)
- Removedverror@1.10.0(transitive)
- Removedz-schema@2.4.10(transitive)
Updatedz-schema@~3.19.0