Unknown Key
A key in the YAML map does not correspond to any constructor parameter of the target data class.
Generated during unknown-key detection in Deserializer. When a close match is found via Levenshtein distance, it is included as a suggestion.
Example - a typo in the YAML file:
databse: # should be "database"
host: localhostContent copied to clipboard
produces: UnknownKey(path = "databse", suggestion = "database")
Since
1.0
Parameters
path
Dot-separated field path of the unrecognised key.
suggestion
Closest valid key name, or null if no match is within the distance threshold.