Skip to content

Commit

Permalink
#334 #349 add schema ref & clean up the samples (#363)
Browse files Browse the repository at this point in the history
* clean up the samples
* add $schema property to the schema
  • Loading branch information
antialias authored Apr 23, 2020
1 parent ceb8599 commit f856767
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 15 deletions.
4 changes: 0 additions & 4 deletions examples/invalid/basics-wrong-type.json

This file was deleted.

5 changes: 0 additions & 5 deletions examples/invalid/invalid-email.json

This file was deleted.

3 changes: 0 additions & 3 deletions examples/valid/empty-meta.json

This file was deleted.

2 changes: 0 additions & 2 deletions examples/valid/empty.json

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"url": "https://github.com/jsonresume/resume-schema/issues"
},
"files": [
"resume.json",
"sample.resume.json",
"schema.json",
"validator.js"
],
Expand Down
1 change: 1 addition & 0 deletions examples/valid/complete.json → sample.resume.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Richard Hendriks",
"label": "Programmer",
Expand Down
5 changes: 5 additions & 0 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
}
},
"properties": {
"$schema": {
"type": "string",
"description": "link to the version of the schema that can validate the resume",
"format": "uri"
},
"basics": {
"type": "object",
"additionalProperties": true,
Expand Down
9 changes: 9 additions & 0 deletions test/__test__/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

{
"valid": {
"$schema": "foo-bar-baz"
},
"invalid": {
"$schema": {}
}
}

0 comments on commit f856767

Please sign in to comment.