apollo icon indicating copy to clipboard operation
apollo copied to clipboard

support HOCON format

Open victoryxs opened this issue 7 years ago • 5 comments

My company use inner config object with typeSafe config, we often use HOCON format to edit config file. But apollo only support yml/yaml/properties/json. We must first convert HOCON to json, and then poll apollo. Can apollo support HOCON format?

victoryxs avatar Apr 25 '19 09:04 victoryxs

Currently there is no validation against json format, so you may input anything into a json namespace, e.g. HOCON format.

To support HOCON format, since there is no validation or parser support, it is kind of easy. Simply adding a new format enum and a client side api should be enough. Although I doubt whether it makes much sense.

Another concern is I guess this format is not widely used now?

nobodyiam avatar Apr 26 '19 15:04 nobodyiam

typesafe config support read from string and parse json/yaml/hocon, i think Apollo can use typesafe config as inner config object

victoryxs avatar Apr 27 '19 14:04 victoryxs

我也觉得应该支持hocon, 做为json的父集, 在语法上有很多改变与优势, 例如置换以及值连接. 而且typesafe对hocon做了支持.用起来很方便.

amosJinCloudwise avatar Apr 29 '19 10:04 amosJinCloudwise

Thanks for the suggestion!

nobodyiam avatar Apr 30 '19 00:04 nobodyiam

不支持HOCON还是比较麻烦

TopSpoofer avatar Sep 09 '20 02:09 TopSpoofer