Closed GrapeBaBa closed 6 years ago
You are using the yml endpoint correct? What are you trying to do? Just serve the raw file?
@spencergibb I think yaml endpoint correct. Yeah, not only raw file but also read key directly. But I am using a nodejs client. Both will get wrong key which I don't expect
Try the plain text endpoint e.g. http://localhost:8888/{app}/{profile}/{label}/filename.yml
. The environment endpoint is for Spring Boot clients.
this is happen to me also , any news about it ? com.leadspace: DEBUG turn to loggers: com: leadspace: DEBUG
See the suggestion in the issue
but i dont want the raw file....why this is not support ?
Why do you care? What does your client do with the YAML? If it is a Spring Boot config file then if works already I think.
no we are pulling it in our deployment , we dont use spring boot
If you don't use Spring Boot then really the plain text endpoint is the only one that makes sense isn't it? What stops you from using that?
we are using the inherit functionality , it help us to write simple config ( got alot of env with common config )
OK, well then you can't use periods in field names I guess, unless you escape them maybe (did you try quoting the keys?).
yes.. tried this: "[bar.com]":
by doc its suppose to work: https://stackoverflow.com/questions/34070987/escaping-a-dot-in-a-map-key-in-yaml-in-spring-boot but it is not..
i think its a bug..
Not really a bug. It was never designed to work that way.
any chance it will be done ?
I don't think it's possible. Have a look if you want and send a PR if you find a way.
I have a yml file which contain dot in yml key below, it will understand dot as a separator. Any approach could I use to escape dot?
When request http://localhost:8888/master/xx-xx.yml it will show like that