From 36342a3b344ddd004692d29102e310b657d852d4 Mon Sep 17 00:00:00 2001 From: Pascal Grimaud Date: Sun, 17 Apr 2022 18:06:07 +0200 Subject: [PATCH] Add schema to Project DTO --- .../infrastructure/primary/dto/ProjectDTO.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main/java/tech/jhipster/lite/generator/project/infrastructure/primary/dto/ProjectDTO.java b/src/main/java/tech/jhipster/lite/generator/project/infrastructure/primary/dto/ProjectDTO.java index 0aaca135404..7b69eff29c9 100644 --- a/src/main/java/tech/jhipster/lite/generator/project/infrastructure/primary/dto/ProjectDTO.java +++ b/src/main/java/tech/jhipster/lite/generator/project/infrastructure/primary/dto/ProjectDTO.java @@ -14,7 +14,18 @@ public class ProjectDTO { private String folder; @JsonProperty("generator-jhipster") - @Schema(description = "generator-jhipster configuration", required = true) + @Schema( + description = "generator-jhipster configuration", + example = """ + { + "baseName": "jhipster", + "projectName": "jhipster project", + "packageName": "com.mycompany.myapp", + "serverPort": 8080 + } + """, + required = true + ) private Map generatorJhipster; public String getFolder() {