@@ -49,10 +49,6 @@ function savePattern($userProfile) {
49
49
50
50
$ author = empty ($ savedAuthor )?$ userProfile ->username :$ savedAuthor ;
51
51
52
- if (!is_null ($ tool )) {
53
- $ tool = json_encode ($ tool );
54
- }
55
-
56
52
// Check to see if the user wants to edit this pattern.
57
53
if (!empty ($ id )) { // Update
58
54
// Make sure the user has access to edit this pattern.
@@ -129,7 +125,7 @@ public function getSchema() {
129
125
"text " => array ("type " =>self ::STRING , "required " =>false ),
130
126
"description " => array ("type " =>self ::STRING , "required " =>false , "length " =>250 ),
131
127
"token " => array ("type " =>self ::STRING , "required " =>false ),
132
- "tool " => array ("type " =>self ::JSON , "required " =>false , "length " =>1024 ),
128
+ "tool " => array ("type " =>self ::STRING , "required " =>false , "length " =>1024 ),
133
129
"flavor " => array ("type " =>self ::ENUM , "values " =>$ this ->getTypeValues (), "required " =>false ),
134
130
"parentId " => array ("type " =>self ::STRING , "required " =>false ),
135
131
"access " => array ("type " =>self ::ENUM , "values " =>$ this ->getVisibilityValues (), "required " =>false )
0 commit comments