appwrite-utils-cli 0.0.31 → 0.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -183,6 +183,7 @@ export class SchemaGenerator {
183
183
  const hasDescription = attributes.some((attr) => attr.description);
184
184
  if (hasDescription) {
185
185
  imports += `import { extendZodWithOpenApi } from "@asteasolutions/zod-to-openapi";\n`;
186
+ imports += `extendZodWithOpenApi(z);\n`;
186
187
  }
187
188
  // Use the relationshipMap to find related collections
188
189
  const relationshipDetails = this.relationshipMap.get(name) || [];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "appwrite-utils-cli",
3
3
  "description": "Appwrite Utility Functions to help with database management, data conversion, data import, migrations, and much more. Meant to be used as a CLI tool, I do not recommend installing this in frontend environments.",
4
- "version": "0.0.31",
4
+ "version": "0.0.32",
5
5
  "main": "src/main.ts",
6
6
  "type": "module",
7
7
  "repository": {
@@ -244,6 +244,7 @@ export class SchemaGenerator {
244
244
  const hasDescription = attributes.some((attr) => attr.description);
245
245
  if (hasDescription) {
246
246
  imports += `import { extendZodWithOpenApi } from "@asteasolutions/zod-to-openapi";\n`;
247
+ imports += `extendZodWithOpenApi(z);\n`;
247
248
  }
248
249
 
249
250
  // Use the relationshipMap to find related collections