-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update term schema for media types (#653)
* update term schema for media types * change photo to image Co-authored-by: Pierre-Anthony Lemieux <[email protected]> * change "photo" to "image" * update terms test --------- Co-authored-by: Pierre-Anthony Lemieux <[email protected]>
- Loading branch information
1 parent
8333b23
commit a690a31
Showing
3 changed files
with
46 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"$schema": "http://json-schema.org/schema#", | ||
"$id": "http://isdcf.com/ns/json-schemas/registries/terms/1.0.0-beta.1", | ||
"$id": "http://isdcf.com/ns/json-schemas/registries/terms/1.0.0-beta.2", | ||
"$comment": "Copyright, ISDCF <[email protected]>", | ||
"title": "Schema for the Terms Registry of the ISDCF", | ||
"type": "array", | ||
|
@@ -16,13 +16,36 @@ | |
"definition": { | ||
"type": "string" | ||
}, | ||
"media": { | ||
"type": "array", | ||
"items": { | ||
"type": "string", | ||
"format": "uri" | ||
} | ||
}, | ||
"media": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"image": { | ||
"type": "array", | ||
"additionalItems": true, | ||
"items": { | ||
"anyOf": [ | ||
{ | ||
"type": "string", | ||
"format": "uri" | ||
} | ||
] | ||
} | ||
}, | ||
"video": { | ||
"type": "array", | ||
"additionalItems": true, | ||
"items": { | ||
"anyOf": [ | ||
{ | ||
"type": "string", | ||
"format": "uri" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"relatedTerms": { | ||
"type": "array", | ||
"items": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters