github.com/instill-ai/component@v0.16.0-beta/pkg/base/testdata/wantOperatorDefinition.json (about) 1 { 2 "name": "operator-definitions/json", 3 "uid": "28f53d15-6150-46e6-99aa-f76b70a926c0", 4 "id": "json", 5 "title": "JSON", 6 "documentation_url": "https://www.instill.tech/docs/latest/vdp/operators/json", 7 "icon": "Instill AI/json.svg", 8 "spec": { 9 "component_specification": { 10 "$schema": "http://json-schema.org/draft-07/schema#", 11 "oneOf": [ 12 { 13 "properties": { 14 "condition": { 15 "instillAcceptFormats": [ 16 "string" 17 ], 18 "instillShortDescription": "config whether the component will be executed or skipped", 19 "instillUIOrder": 1, 20 "instillUpstreamTypes": [ 21 "value", 22 "template" 23 ], 24 "type": "string" 25 }, 26 "input": { 27 "description": "Input", 28 "instillEditOnNodeFields": [ 29 "object" 30 ], 31 "instillUIOrder": 0, 32 "properties": { 33 "object": { 34 "anyOf": [ 35 { 36 "instillUpstreamType": "reference", 37 "pattern": "^\\{.*\\}$", 38 "type": "string" 39 } 40 ], 41 "description": "Json object to be marshaled", 42 "instillAcceptFormats": [ 43 "object", 44 "semi-structured/*", 45 "structured/*" 46 ], 47 "instillShortDescription": "Json object to be marshaled", 48 "instillUIOrder": 0, 49 "instillUpstreamTypes": [ 50 "reference" 51 ], 52 "title": "Object" 53 } 54 }, 55 "required": [ 56 "object" 57 ], 58 "title": "Input", 59 "type": "object" 60 }, 61 "task": { 62 "const": "TASK_MARSHAL", 63 "title": "Marshal" 64 } 65 }, 66 "type": "object" 67 } 68 ], 69 "title": "JSON Component", 70 "type": "object" 71 }, 72 "data_specifications": { 73 "TASK_MARSHAL": { 74 "input": { 75 "description": "Input", 76 "instillEditOnNodeFields": [ 77 "object" 78 ], 79 "instillUIOrder": 0, 80 "properties": { 81 "object": { 82 "description": "Json object to be marshaled", 83 "instillAcceptFormats": [ 84 "object", 85 "semi-structured/*", 86 "structured/*" 87 ], 88 "instillEditOnNodeFields": [], 89 "instillUIOrder": 0, 90 "instillUpstreamTypes": [ 91 "reference" 92 ], 93 "required": [], 94 "title": "Object", 95 "type": "object" 96 } 97 }, 98 "required": [ 99 "object" 100 ], 101 "title": "Input", 102 "type": "object" 103 }, 104 "output": { 105 "description": "Output", 106 "instillEditOnNodeFields": [ 107 "string" 108 ], 109 "instillUIOrder": 0, 110 "properties": { 111 "string": { 112 "description": "Data", 113 "instillFormat": "string", 114 "instillShortDescription": "Data", 115 "instillUIOrder": 0, 116 "title": "Data", 117 "type": "string" 118 } 119 }, 120 "required": [ 121 "string" 122 ], 123 "title": "Output", 124 "type": "object" 125 } 126 } 127 } 128 }, 129 "public": true, 130 "version": "1.0.0", 131 "source_url": "https://github.com/instill-ai/component/blob/main/pkg/base", 132 "tasks": [ 133 { 134 "name": "TASK_MARSHAL", 135 "title": "Marshal" 136 } 137 ] 138 }