diff --git a/src/Appwrite/Specification/Format/Swagger2.php b/src/Appwrite/Specification/Format/Swagger2.php index ef1329952..44af6f772 100644 --- a/src/Appwrite/Specification/Format/Swagger2.php +++ b/src/Appwrite/Specification/Format/Swagger2.php @@ -345,7 +345,7 @@ class Swagger2 extends Format break; case 'boolean': - $type = 'string'; + $type = 'boolean'; break; default: @@ -379,7 +379,7 @@ class Swagger2 extends Format $output['definitions'][$model->getType()]['properties'][$name] = [ 'type' => $type, 'description' => $rule['description'] ?? '', - 'default' => $rule['default'] ?? null, + //'default' => $rule['default'] ?? null, 'x-example' => $rule['example'] ?? null, ];