Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support HOCON format #2164

Open
victoryxs opened this issue Apr 25, 2019 · 5 comments
Open

support HOCON format #2164

victoryxs opened this issue Apr 25, 2019 · 5 comments
Labels
feature request Categorizes issue as related to a new feature. help wanted

Comments

@victoryxs
Copy link

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?

@nobodyiam
Copy link
Member

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?

@victoryxs
Copy link
Author

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

@amosJinCloudwise
Copy link

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

@nobodyiam
Copy link
Member

Thanks for the suggestion!

@nobodyiam nobodyiam added feature request Categorizes issue as related to a new feature. and removed enhancement labels Nov 30, 2019
@TopSpoofer
Copy link

不支持HOCON还是比较麻烦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Categorizes issue as related to a new feature. help wanted
Projects
None yet
Development

No branches or pull requests

4 participants