-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Allow ENV and Java Props substitution while reading file #28
Comments
Ok, first of all, I think this issue [https://github.com/FasterXML/jackson-core/issues/355] is related, and covers some ideas I had for something like this. I have been thinking about this a bit myself, and am bit torn. There are some challenges here, including:
For just requested things (1) and (2) may not be relevant but I thought I'll mention them since these tend to become issues soon, when expanding functionality. So. My thinking is that exposing hook(s) would make most sense because it'd allow
From this I am not sure how much (if any) default functionality should be provided: perhaps ability to include system properties and env variables could be bundled with There are other possibilities too: instead of handling this at low-level within |
Bit torn here wrt whether to close, as it probably should bind at |
Seems still relevant for me. Got any updates? |
Nothing new to report. The standard OP is that when there are updates, they are added to the issue. Easier to see that way than having to ask for updates. |
I'm looking for a feature similar to Spring, HandleBar, etc that would allow me to create a yaml (or any format) file that includes a reference to system variables during read. Having to "pre-process" a file using templating tools before launching an application is cumbersome and error-prone vs having a standard by which variables can be defined by the user (vs the developer) when crafting the files and then merged into the content delivered to the application. I realize the request is "extending" the yaml, json, etc standard but the point of libraries such as Jackson is to help establish new standards.
example:
if you wanted to allow the control of the source (System ENV vs Java Property) you could use a syntax as follows.
The text was updated successfully, but these errors were encountered: