Skip to content

Commit dba92b7

Browse files
authored
Merge pull request #436 from handrews/draft-04
Bugfixes for draft-04 meta-schemas
2 parents d4c5b3a + 4be0cbf commit dba92b7

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

hyper-schema.json

+5
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@
116116
"$ref": "#"
117117
}
118118
}
119+
},
120+
"readOnly": {
121+
"description": "If true, indicates that the value of this property is controlled by the server.",
122+
"type": "boolean",
123+
"default": false
119124
}
120125
},
121126
"links": [

links.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@
3838
"dependencies" : {
3939
"enctype" : "method"
4040
}
41-
}
41+
}

schema.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,10 @@
2828
"type": "object",
2929
"properties": {
3030
"id": {
31-
"type": "string",
32-
"format": "uri"
31+
"type": "string"
3332
},
3433
"$schema": {
35-
"type": "string",
36-
"format": "uri"
34+
"type": "string"
3735
},
3836
"title": {
3937
"type": "string"
@@ -137,6 +135,7 @@
137135
}
138136
]
139137
},
138+
"format": { "type": "string" },
140139
"allOf": { "$ref": "#/definitions/schemaArray" },
141140
"anyOf": { "$ref": "#/definitions/schemaArray" },
142141
"oneOf": { "$ref": "#/definitions/schemaArray" },

0 commit comments

Comments
 (0)