Skip to content

Commit

Permalink
feat: updated schema npm version. added new instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasdavis committed Jul 10, 2024
1 parent 6547608 commit 0b438ea
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 10 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

```
Expand Down
12 changes: 7 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "resume-schema",
"version": "1.0.0",
"version": "1.0.1",
"description": "JSON Resume Schema",
"main": "validator.js",
"scripts": {
Expand Down
10 changes: 6 additions & 4 deletions schema.json
Original file line number Diff line number Diff line change
@@ -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})$"
}
},
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -495,4 +497,4 @@
},
"title": "Resume Schema",
"type": "object"
}
}

0 comments on commit 0b438ea

Please sign in to comment.