Skip to content

Commit

Permalink
fix: the deprecated key in components.json is a string apparently
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyashsaitwal committed Oct 3, 2023
1 parent db1e1e7 commit 1ecffe4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 1ecffe4

Please sign in to comment.