Replies: 1 comment
-
Are you in control of the configuration schema? If so, try separating them into different properties. For example: fixed port: Int = 5050
properties: Mapping<String, String|Int> If, say, you aren't in control of the schema and need this to turn into a flat mapping, you can merge this before providing it to your target system. For example, here, hidden const port: Int = 5050
hidden extraProperties: Mapping<String, String|Int>
fixed properties: Mapping<String, String|Int> = (extraProperties) {
["port"] = port
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to have fixed values in a Mapping? We have a consumer properties field which is a free-form map, however some values are not supposed to be amendable e.g. monitoring port
Beta Was this translation helpful? Give feedback.
All reactions