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
Let's say we want to create a mapping table to replace values from an integer to a string, this is currently not possible with the current config type casting.
Example:
potato:
1: "abc"2: "oko"50: "noo"
When loaded from ucfg, the map get converted into an slice.
potato:
- "abc"
- "oko"
- "noo"
Even if you escape the key as a string, ucfg will try to convert the value to an integer and succeed.
After discussing with @urso on zoom we would like to support the following use case to reduce the size of the configuration and the verbosity of usings keys in the yaml.
Let's say we want to create a mapping table to replace values from an integer to a string, this is currently not possible with the current config type casting.
Example:
When loaded from ucfg, the map get converted into an slice.
Even if you escape the key as a string, ucfg will try to convert the value to an integer and succeed.
After discussing with @urso on zoom we would like to support the following use case to reduce the size of the configuration and the verbosity of usings keys in the yaml.
The text was updated successfully, but these errors were encountered: