| | | 1 | | using YamlDotNet.Core; |
| | | 2 | | using YamlDotNet.Serialization; |
| | | 3 | | using YamlDotNet.Serialization.ObjectGraphVisitors; |
| | | 4 | | |
| | | 5 | | namespace Kestrun.Utilities.Yaml; |
| | | 6 | | |
| | | 7 | | /// <summary> |
| | | 8 | | /// YAML object graph visitor that omits null values |
| | | 9 | | /// </summary> |
| | 5 | 10 | | public sealed class NullValueGraphVisitor(IObjectGraphVisitor<IEmitter> nextVisitor) : ChainedObjectGraphVisitor(nextVis |
| | | 11 | | { |
| | | 12 | | /// <summary> |
| | | 13 | | /// YAML object graph visitor that omits null values in mappings |
| | | 14 | | /// </summary> |
| | | 15 | | /// <param name="key">The key descriptor</param> |
| | | 16 | | /// <param name="value">The value descriptor</param> |
| | | 17 | | /// <param name="context">The emitter context</param> |
| | | 18 | | /// <param name="serializer">The object serializer</param> |
| | | 19 | | /// <returns></returns> |
| | 2 | 20 | | public override bool EnterMapping(IPropertyDescriptor key, IObjectDescriptor value, IEmitter context, ObjectSerializ |
| | | 21 | | |
| | | 22 | | /// <summary> |
| | | 23 | | /// YAML object graph visitor that omits null values in mappings |
| | | 24 | | /// </summary> |
| | | 25 | | /// <param name="key">The key descriptor</param> |
| | | 26 | | /// <param name="value">The value descriptor</param> |
| | | 27 | | /// <param name="context">The emitter context</param> |
| | | 28 | | /// <param name="serializer">The object serializer</param> |
| | | 29 | | /// <returns></returns> |
| | 0 | 30 | | public override bool EnterMapping(IObjectDescriptor key, IObjectDescriptor value, IEmitter context, ObjectSerializer |
| | | 31 | | } |