hadashiA/VYaml

Uri型が読み込めない

Closed this issue · 2 comments

組み込みのUriFormatterの以下の部分でReadOnlySpan<byte>ToString()で文字列化しているため、読み込んだUri文字列ではなく型名が文字列になり、不正なUriとして読み込まれます。

https://github.com/hadashiA/VYaml/blob/master/VYaml.Core/Serialization/Formatters/UriFormatter.cs#L20

手元ではデシリアライズするプロパティをUri型ではなくstring型にして回避してます。

@Freeesia #24 で修正しました。ご報告ありがとうございます!

@hadashiA
対応ありがとうございます。リリースされたら試してみます。