Skip to content

Commit 76a1dcd

Browse files
committed
Move "media" from Hyper-Schema into Validation as "contentEncoding"+"contentMediaType"
1 parent a560f8b commit 76a1dcd

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

hyper-schema.json

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -103,19 +103,6 @@
103103
"type": "array",
104104
"items": { "$ref": "#/definitions/linkDescription" }
105105
},
106-
"media": {
107-
"type": "object",
108-
"properties": {
109-
"type": {
110-
"description": "A media type, as described in RFC 2046",
111-
"type": "string"
112-
},
113-
"binaryEncoding": {
114-
"description": "A content encoding scheme, as described in RFC 2045",
115-
"type": "string"
116-
}
117-
}
118-
},
119106
"readOnly": {
120107
"description": "If true, indicates that the value of this property is controlled by the server.",
121108
"type": "boolean",

schema.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,14 @@
141141
]
142142
},
143143
"format": { "type": "string" },
144+
"contentMediaType": {
145+
"type": "string",
146+
"description": "A media type, as described in RFC 2046"
147+
},
148+
"contentEncoding": {
149+
"type": "string",
150+
"description": "A content encoding scheme, as described in RFC 2045"
151+
},
144152
"allOf": { "$ref": "#/definitions/schemaArray" },
145153
"anyOf": { "$ref": "#/definitions/schemaArray" },
146154
"oneOf": { "$ref": "#/definitions/schemaArray" },

0 commit comments

Comments
 (0)