From 0b438eab18c3de96e009fde7a5b525faf92b8165 Mon Sep 17 00:00:00 2001 From: Ajax Davis Date: Wed, 10 Jul 2024 20:08:34 +1000 Subject: [PATCH] feat: updated schema npm version. added new instructions --- README.md | 6 ++++++ package-lock.json | 12 +++++++----- package.json | 2 +- schema.json | 10 ++++++---- 4 files changed, 20 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 87092f7..03d5f85 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,12 @@ Standard, Specification, Schema +## Important Note + +The current working version of the schema is `v1.0.0` that is represented by the `master` branch and the files `schema.json` and `sample.resume.json`. + +All PR's for the next version should be made against the `develop` branch. + ### Getting started ``` diff --git a/package-lock.json b/package-lock.json index a056d6f..9d5eaa9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "resume-schema", - "version": "0.1.4", + "version": "1.0.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "resume-schema", - "version": "0.1.4", + "version": "1.0.1", "license": "MIT", "dependencies": { "z-schema": "^4.2.4" @@ -18,7 +18,7 @@ "tape": "^4.16.2" }, "engines": { - "node": ">=10" + "node": ">=20" } }, "node_modules/abbrev": { @@ -187,7 +187,8 @@ "node_modules/commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "devOptional": true }, "node_modules/concat-map": { "version": "0.0.1", @@ -1885,7 +1886,8 @@ "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "devOptional": true }, "concat-map": { "version": "0.0.1", diff --git a/package.json b/package.json index 9a022c9..9f6a3bd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "resume-schema", - "version": "1.0.0", + "version": "1.0.1", "description": "JSON Resume Schema", "main": "validator.js", "scripts": { diff --git a/schema.json b/schema.json index 0c416bb..e56ff29 100644 --- a/schema.json +++ b/schema.json @@ -1,10 +1,10 @@ { "$schema": "http://json-schema.org/draft-04/schema#", - "additionalProperties": true, + "additionalProperties": false, "definitions": { "iso8601": { "type": "string", - "description": "Similar to the standard date type, but each section after the year is optional. e.g. 2014-06-29 or 2023-04", + "description": "e.g. 2014-06-29", "pattern": "^([1-2][0-9]{3}-[0-1][0-9]-[0-3][0-9]|[1-2][0-9]{3}-[0-1][0-9]|[1-2][0-9]{3})$" } }, @@ -274,7 +274,9 @@ "description": "e.g. Certified Kubernetes Administrator" }, "date": { - "$ref": "#/definitions/iso8601" + "type": "string", + "description": "e.g. 1989-06-12", + "format": "date" }, "url": { "type": "string", @@ -495,4 +497,4 @@ }, "title": "Resume Schema", "type": "object" -} +} \ No newline at end of file