You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is your use-case and why do you need this feature?
We have a config file, which is json. On the one side, I want to disable unknown keys so that one can receive an error when they mistyped the config key. On the other side, this would disallow something like #comment key in the config, which can be quite useful.
Describe the solution you'd like
I suggest adding something like JsonConfiguration.isAllowedUnknowKey: (String, SerialDescriptor) -> Unit, where end-user can decide if this unknown key is fine or not.
The text was updated successfully, but these errors were encountered:
What is your use-case and why do you need this feature?
We have a config file, which is json. On the one side, I want to disable unknown keys so that one can receive an error when they mistyped the config key. On the other side, this would disallow something like
#comment
key in the config, which can be quite useful.Describe the solution you'd like
I suggest adding something like
JsonConfiguration.isAllowedUnknowKey: (String, SerialDescriptor) -> Unit
, where end-user can decide if this unknown key is fine or not.The text was updated successfully, but these errors were encountered: