From 1fbc9e5874b346441174bf07ffae8d1c6831f77d Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Thu, 16 May 2024 18:53:34 +0200 Subject: [PATCH] [API] remove api to generate zod models index to prevent coding errors --- .../archidata/dataAccess/DataFactoryZod.java | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/org/kar/archidata/dataAccess/DataFactoryZod.java b/src/org/kar/archidata/dataAccess/DataFactoryZod.java index db8778e..eed8bac 100644 --- a/src/org/kar/archidata/dataAccess/DataFactoryZod.java +++ b/src/org/kar/archidata/dataAccess/DataFactoryZod.java @@ -1,7 +1,5 @@ package org.kar.archidata.dataAccess; -import java.io.File; -import java.io.FileWriter; import java.io.IOException; import java.io.InputStream; import java.lang.reflect.Field; @@ -470,21 +468,4 @@ public class DataFactoryZod { return generatedData.toString(); } - public static void generatePackage(final List> classs, final String pathPackage) throws Exception { - final String packageApi = createTables(classs); - FileWriter myWriter = new FileWriter(pathPackage + File.separator + "model.ts"); - myWriter.write(packageApi.toString()); - myWriter.close(); - final String index = """ - /** - * Global import of the package - */ - export * from "./model"; - - """; - myWriter = new FileWriter(pathPackage + File.separator + "index.ts"); - myWriter.write(index); - myWriter.close(); - } - } \ No newline at end of file