Commit a8a5eb92 authored by Diegodlh's avatar Diegodlh
Browse files

Revert "Address #T308325: Add a helper fixed selection for item type field with config validation"

This reverts commit e642dcde.
parent e642dcde
......@@ -394,7 +394,7 @@
"type": "array",
"items": {
"title": "Selection step",
"anyOf": [
"oneOf": [
{
"title": "Citoid selection",
"description": "Selects a field from the Citoid response for the target webpage",
......@@ -545,53 +545,20 @@
]
},
{
"$ref": "#/definitions/fixedSelection"
},
{
"$ref": "#/definitions/fixedSelection",
"title": "Fixed selection (Item type field)",
"description": "Always returns the same predefined Citoid/Zotero item type",
"title": "Fixed selection",
"description": "Always returns the same predefined value",
"type": "object",
"properties": {
"type": {
"title": "Type",
"type": "string",
"enum": ["fixed"],
"options": { "hidden": true }
},
"config": {
"description": "The predefined Citoid/Zotero item type to be returned.",
"enum": [
"artwork",
"attachment",
"audioRecording",
"bill",
"blogPost",
"book",
"bookSection",
"case",
"computerProgram",
"conferencePaper",
"dictionaryEntry",
"document",
"email",
"encyclopediaArticle",
"film",
"forumPost",
"hearing",
"instantMessage",
"interview",
"journalArticle",
"letter",
"magazineArticle",
"manuscript",
"map",
"newspaperArticle",
"note",
"patent",
"podcast",
"presentation",
"radioBroadcast",
"report",
"statute",
"thesis",
"tvBroadcast",
"videoRecording",
"webpage"
]
"title": "Configuration",
"description": "The predefined value to be returned.",
"type": "string"
}
},
"required": [
......@@ -802,28 +769,6 @@
"transformations"
]
},
"fixedSelection": {
"title": "Fixed selection",
"description": "Always returns the same predefined value",
"type": "object",
"properties": {
"type": {
"title": "Type",
"type": "string",
"enum": ["fixed"],
"options": { "hidden": true }
},
"config": {
"title": "Configuration",
"description": "The predefined value to be returned.",
"type": "string"
}
},
"required": [
"type",
"config"
]
},
"itemwise": {
"title": "Item-wise",
"description": "Whether transformation should be applied to each item of the input independently (true) or to the entire input as a whole (false).",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment