From 1ecffe49cdabc89e60383c3967c172ac970b0d21 Mon Sep 17 00:00:00 2001 From: Shreyash Saitwal <40118018+shreyashsaitwal@users.noreply.github.com> Date: Tue, 3 Oct 2023 19:22:25 +0530 Subject: [PATCH] fix: the `deprecated` key in components.json is a string apparently --- .../kotlin/io/github/shreyashsaitwal/rush/block/Helper.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/processor/processor/src/main/kotlin/io/github/shreyashsaitwal/rush/block/Helper.kt b/processor/processor/src/main/kotlin/io/github/shreyashsaitwal/rush/block/Helper.kt index 9d0d217..5ec23ed 100644 --- a/processor/processor/src/main/kotlin/io/github/shreyashsaitwal/rush/block/Helper.kt +++ b/processor/processor/src/main/kotlin/io/github/shreyashsaitwal/rush/block/Helper.kt @@ -179,9 +179,9 @@ private class OptionListData(element: Element, private val elementUtils: Element fun asJsonObject(): JSONObject { return JSONObject() .put("name", name) - .put("deprecated", deprecated) + .put("deprecated", deprecated.toString()) .put("value", value) - .put("description", "") // Getting enum consts' description doesn't work (also not in AI2) + .put("description", "Option for $name") // Getting enum consts' description doesn't work (also not in AI2) } }