Add support for nested models

This commit is contained in:
Vincent (Wen Yu) Ge
2024-03-12 17:36:58 +01:00
parent 12a72b0a77
commit 9249957c41
3 changed files with 98 additions and 25 deletions

View File

@@ -169,8 +169,7 @@ export function getSchema(id: string, api: OpenAPIV3.Document): OpenAPIV3.Schema
if (schema) {
return schema;
}
throw new Error("Schema doesn't exist");
}
throw new Error(`Schema doesn't exist for id: ${id}`);}
const specs = import.meta.glob(
'$appwrite/app/config/specs/open-api3*-(client|server|console).json',