Antoine Aubry

Results 126 comments of Antoine Aubry

@samsmithnz the `>2-` indicator is technically correct, although unnecessary in this case. The logic that is deciding on which indicators are needed comes from the libyaml port and I haven't...

Sorry I didn't mean to close this issue, but the GitHub UI on mobile makes it really easy to click by mistake.

Sorry for the late answer. You can use the `BuildValueSerializer` method of the builder to get an `IValueSerializer` instance, which only emits the "content" of the focument, not the DocumentStart...

That's not possible because `IYamlTypeConverter` does not use `IEventEmitter` due to legacy reasons. One option is to register your own implementation of `DateTimeConverter` that forces quotes.

I don't know how you got that result. Can you share the code ?

Oh I see. Basically `ForceQuotedStringValuesEventEmitter` is a hack. It has to maintain state to know whether it is emitting a key or a value, and writing to the `IEmitter` directly...

I agree that the IYamlTypeConverter interface needs to be reworked. It is annoying that doing so would introduce a breaking change, but it would probably not be too disturbing.

The exception should indicate the line number and line offset of the error, as well as a message explaining the error. What additional information would be helpful to you ?

I see what you mean. I agree that this information would be useful. It shouldn't be too hard to add that information. I'll see what can be done.

A fix for this issue has been released in [version 11.2.1](https://github.com/aaubry/YamlDotNet/releases/tag/v11.2.1).