Skip to content

Commit 7571cc1

Browse files
committed
Fix id fields
1 parent 9e8901a commit 7571cc1

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ The directory `./tests/manual` contains some easy examples which show the usage.
9999
Let's have a look into an easy example. We create a simple model for a person with a name and an optional age. Our resulting JSON-Schema:
100100
```json
101101
{
102-
"id": "Person",
102+
"$id": "Person",
103103
"type": "object",
104104
"properties": {
105105
"name": {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"id": "Demo"
2+
"$id": "Demo"
33
}

tests/manual/schema/person.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"id": "Person",
2+
"$id": "Person",
33
"type": "object",
44
"properties": {
55
"name": {

tests/manual/schema/subDirectory/album.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-04/schema#",
3-
"id": "albumModel",
3+
"$id": "albumModel",
44
"type": "object",
55
"properties": {
66
"album-title": {

0 commit comments

Comments
 (0)