Skip to content

Commit

Permalink
Remove remaining title/description metadata properties. Change "type"…
Browse files Browse the repository at this point in the history
… values from arrays to strings.
  • Loading branch information
jpmckinney committed Jun 24, 2020
1 parent 633bc1c commit be2da56
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 21 deletions.
13 changes: 3 additions & 10 deletions kingfisher_scrapy/item_schema/File.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,16 @@
"$ref": "item.json#/definitions/KingfisherFileItem"
}
],
"title": "File",
"type": "object",
"properties": {
"post_to_api": {
"type": [
"boolean"
]
"type": "boolean"
},
"path": {
"type": [
"string"
]
"type": "string"
},
"files_store": {
"type": [
"string"
]
"type": "string"
}
}
}
3 changes: 1 addition & 2 deletions kingfisher_scrapy/item_schema/FileError.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "File Error",
"type": "object",
"allOf": [
{
"$ref": "item.json#/definitions/KingfisherItem"
}
],
"type": "object",
"properties": {
"errors": {
"type": "string",
Expand Down
1 change: 0 additions & 1 deletion kingfisher_scrapy/item_schema/FileItem.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"$ref": "item.json#/definitions/KingfisherFileItem"
}
],
"title": "File Item",
"type": "object",
"properties": {
"number": {
Expand Down
10 changes: 2 additions & 8 deletions kingfisher_scrapy/item_schema/item.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
"KingfisherItem": {
"title": "Kingfisher Item",
"description": "A generic item with file_name and url to be extended by other items",
"type": "object",
"properties": {
"file_name": {
Expand All @@ -21,14 +19,12 @@
]
},
"KingfisherFileItem": {
"title": "Kingfisher Item",
"description": "A base object to be extended by other File type items",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/KingfisherItem"
}
],
"type": "object",
"properties": {
"data_type": {
"type": "string",
Expand All @@ -51,9 +47,7 @@
]
},
"encoding": {
"type": [
"string"
]
"type": "string"
},
"data": {
"type": "string",
Expand Down

0 comments on commit be2da56

Please sign in to comment.