Compare commits

...

3 Commits

Author SHA1 Message Date
9cbeee66c9 [RELEASE] new version 0.14.2 2024-09-15 15:55:00 +02:00
d25be53b77 [FIX] dot generation 2024-09-15 15:52:10 +02:00
d36f9c005a [DEV] update dev tag version 2024-09-15 15:46:37 +02:00
3 changed files with 5 additions and 4 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>kangaroo-and-rabbit</groupId> <groupId>kangaroo-and-rabbit</groupId>
<artifactId>archidata</artifactId> <artifactId>archidata</artifactId>
<version>0.13.1-SNAPSHOT</version> <version>0.14.2</version>
<properties> <properties>
<java.version>21</java.version> <java.version>21</java.version>
<maven.compiler.version>3.1</maven.compiler.version> <maven.compiler.version>3.1</maven.compiler.version>

View File

@ -10,6 +10,7 @@ import java.util.Set;
import org.kar.archidata.externalRestApi.dot.DotClassElement.DefinedPosition; import org.kar.archidata.externalRestApi.dot.DotClassElement.DefinedPosition;
import org.kar.archidata.externalRestApi.model.ApiGroupModel; import org.kar.archidata.externalRestApi.model.ApiGroupModel;
import org.kar.archidata.externalRestApi.model.ApiModel; import org.kar.archidata.externalRestApi.model.ApiModel;
import org.kar.archidata.externalRestApi.model.ApiModel.OptionalClassModel;
import org.kar.archidata.externalRestApi.model.ClassEnumModel; import org.kar.archidata.externalRestApi.model.ClassEnumModel;
import org.kar.archidata.externalRestApi.model.ClassListModel; import org.kar.archidata.externalRestApi.model.ClassListModel;
import org.kar.archidata.externalRestApi.model.ClassMapModel; import org.kar.archidata.externalRestApi.model.ClassMapModel;
@ -216,7 +217,7 @@ public class DotApiGeneration {
hasParam = true; hasParam = true;
boolean hasParam2 = false; boolean hasParam2 = false;
data.append("data: {"); data.append("data: {");
for (final Entry<String, List<ClassModel>> pathEntry : interfaceElement.multiPartParameters for (final Entry<String, OptionalClassModel> pathEntry : interfaceElement.multiPartParameters
.entrySet()) { .entrySet()) {
if (hasParam2) { if (hasParam2) {
data.append(", "); data.append(", ");
@ -224,7 +225,7 @@ public class DotApiGeneration {
hasParam2 = true; hasParam2 = true;
data.append(pathEntry.getKey()); data.append(pathEntry.getKey());
data.append(": "); data.append(": ");
data.append(generateClassModelsTypescript(pathEntry.getValue(), dotGroup)); data.append(generateClassModelsTypescript(pathEntry.getValue().model(), dotGroup));
} }
data.append("}"); data.append("}");
} }

View File

@ -1 +1 @@
0.14.0 0.14.2