-
Notifications
You must be signed in to change notification settings - Fork 63
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
Guid like values gets guidified #138
Comments
type Config = YamlConfig<"...", InferTypesFromStrings = false> |
This is kind-of what I want but not exactly. I do want it to infer types, but on compile time only ( It seem like options currently are:
|
@vasily-kirichenko I have similar problem and |
I think it's incorrect to assume that something that doesn't contain dashes is a Guid just because of the amount of other characters and potentially the character set. It's simply not the same format. Other type inferences might be useful to have still, so it also doesn't make a lot of sense to disable all inferences just to avoid incorrect Guid parsing. |
YamlConfig
(or underlyingSharpYaml.dll
) lets itself to parse string values behind my back.Example:
Note:
Expected result:
No hyphen should be added
Actual result:
77a66425d680d2925eb032ef6bcd1111
becomes77a66425-d680-d292-5eb0-32ef6bcd1111
The text was updated successfully, but these errors were encountered: