From b870f6fc164845309794e40df8024e5fa73c1025 Mon Sep 17 00:00:00 2001 From: Olivier Levitt Date: Tue, 2 Jul 2024 17:54:32 +0200 Subject: [PATCH] Preserve order of categories from values.schema.json (#451) --- .../java/fr/insee/onyxia/model/catalog/Config/Category.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/onyxia-model/src/main/java/fr/insee/onyxia/model/catalog/Config/Category.java b/onyxia-model/src/main/java/fr/insee/onyxia/model/catalog/Config/Category.java index d2d683ae..505745c7 100644 --- a/onyxia-model/src/main/java/fr/insee/onyxia/model/catalog/Config/Category.java +++ b/onyxia-model/src/main/java/fr/insee/onyxia/model/catalog/Config/Category.java @@ -3,7 +3,7 @@ import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import io.swagger.v3.oas.annotations.media.Schema; -import java.util.HashMap; +import java.util.LinkedHashMap; import java.util.Map; /** Properties */ @@ -11,7 +11,7 @@ public class Category { @Schema(description = "") - Map properties = new HashMap<>(); + Map properties = new LinkedHashMap<>(); @Schema(description = "") String description;