From a86e5b9b7f3100ecff790d1fb0dcdba003ab9ef4 Mon Sep 17 00:00:00 2001 From: Gabriel Adrian Samfira Date: Wed, 23 Oct 2024 14:41:22 +0300 Subject: [PATCH 1/2] Add a new UseFlowStyle option This option allows the output of sequences and mapping using the Flow style instead of the Block style. Signed-off-by: Gabriel Adrian Samfira --- lib/net47/PowerShellYamlSerializer.dll | Bin 9216 -> 9728 bytes .../PowerShellYamlSerializer.dll | Bin 9216 -> 9728 bytes powershell-yaml.psm1 | 7 ++++-- src/PowerShellYamlSerializer.cs | 23 ++++++++++++++++-- 4 files changed, 26 insertions(+), 4 deletions(-) diff --git a/lib/net47/PowerShellYamlSerializer.dll b/lib/net47/PowerShellYamlSerializer.dll index b6c72b5686df6dcd9f2bfe7ba9534a685d01a63c..4670db0747004c317c80762b3f9c2d913b8a0c67 100644 GIT binary patch delta 3506 zcmb7H3vg7`8UFrz@7}%HK-_FX-VK{~2oRG^LWqePc_@KWzyO*N1~;3Hrp5&FP${ju zkqX*MC0?mxEuEpLQ_7S=Q##s;%8U;s(?J#I7j@3HDqu)8ZtdBaK=}qo; z{_p!A=bU@aeQbO|{Ht5i7~_Nk}BUlg_MFki`?(XbSZX!B~?=H9+T4i2rH;#0Z#)SWS0Zg zIe@tJh0X3#BOujo#5gW>?p(7ZH$+DbBMa-icu{8{(;BIp*kD$OT;}euRxDaLR1d73 znl{`3_~I5|)sz}$HM4v*bIiQKMjD1`RW~VNC52f^*w9Qgt-;w!W#Ozk6A!rOth~ws zz#eX)ToJcfY|sFv52sTc&p_rvw z%;{X{?)H>i{w{kiyA!ycb^U3yJ4c5425uVWoN#j{mrtmz=)~Fp{nW~?SVSM%hgp>)m&9GPy}5m=0CmS{N#9xt0p!|@#%~RUn>9YFF)gMY*J*NIRPxQ{StfKk3iFM#rVkOj((&P&sJDE$ z)^k{V_=BzNr!}7O)U)W_jQ1f^+s}!z-?vnx!I%uZZJo3^6r4Z+d#!Bd-tW2K&A|sw z>{+i5V@&g*&r*eQb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|Vy*8Y=_Q@yIo%BhD&D{ zZ#TM&OI~+VB^yWl;eK;v9qQ14C{MRd#29Mu5V|SFDJ9T|TGZ2{n`4ZxRGhN%tLG<5 cyTV#po3tk_Bfl(dG7N9iNKV+0K?G$eE w.OnTop() - public static SerializerBuilder Add(SerializerBuilder builder, bool omitNullValues = false) { +} + +public class FlowStyleEmitter: ChainedEventEmitter { + public FlowStyleEmitter(IEventEmitter next): base(next) {} + + public override void Emit(MappingStartEventInfo eventInfo, IEmitter emitter) { + eventInfo.Style = MappingStyle.Flow; + base.Emit(eventInfo, emitter); + } + + public override void Emit(SequenceStartEventInfo eventInfo, IEmitter emitter){ + eventInfo.Style = SequenceStyle.Flow; + nextEmitter.Emit(eventInfo, emitter); + } +} + +class BuilderUtils { + public static SerializerBuilder BuildSerializer(SerializerBuilder builder, bool omitNullValues = false, bool useFlowStyle = false) { builder = builder .WithEventEmitter(next => new StringQuotingEmitter(next)) .WithTypeConverter(new BigIntegerTypeConverter()) @@ -127,6 +143,9 @@ public static SerializerBuilder Add(SerializerBuilder builder, bool omitNullValu builder = builder .WithEmissionPhaseObjectGraphVisitor(args => new NullValueGraphVisitor(args.InnerVisitor)); } + if (useFlowStyle == true) { + builder = builder.WithEventEmitter(next => new FlowStyleEmitter(next)); + } return builder; } } From 763a353b19afa9c79eb2bfffa252cb2e4d01abc8 Mon Sep 17 00:00:00 2001 From: Gabriel Adrian Samfira Date: Wed, 23 Oct 2024 15:09:34 +0300 Subject: [PATCH 2/2] Add UseSequenceFlowStyle option This option uses the Flow style only for sequences. Signed-off-by: Gabriel Adrian Samfira --- lib/net47/PowerShellYamlSerializer.dll | Bin 9728 -> 10240 bytes .../PowerShellYamlSerializer.dll | Bin 9728 -> 10240 bytes powershell-yaml.psm1 | 4 ++- src/PowerShellYamlSerializer.cs | 25 +++++++++++++++--- 4 files changed, 24 insertions(+), 5 deletions(-) diff --git a/lib/net47/PowerShellYamlSerializer.dll b/lib/net47/PowerShellYamlSerializer.dll index 4670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4oa) z)6eig=z*8507+XgpUCro=tGnkK$FHcjVm>FYFwkSTVpTL=68~`7ocCuyNE&T$L;1K z?9wHvFo7vtD=Ue1#_B}3WMwth$n9nikBPUW7ro*y7(hR9I}YOs>eoopz76B7huzeu zG$#;|z4#vWHg-vy_W(+fupi?=o^_tXK}K6d+$TM>e@2euAnpIanBRA%aag9EQ~0I4 zDj6G7I>dVn`Z|6qetDnseVh(cD3c2~AqSjU6iByN@-dE@ewmgrGa&EjD*l*WVX5S3 zoz`3?)s!!%{HW&&5jo^sEw!}SAW=Es*(6J0cBGtQhFTi^Oq_ zdx^{7$Bo7^9yObZL5vb>a1XHoewT@6(sC*% zr+8V7YE7s59M+PgFlGADN!L-m=UZnZ`L@XaVx)*Gq@KIbCp)f4*9zL z*xg@La>Ji>m9xHb&#z@xOX}{u_#BaMv3Tch(~G+2rJSVvHL%i>^uaxdHvx5}{5;(c-&DZ=-d}Y<- z{+sUna#iPdviDSG#a$h2k)`f8g0=3W!DxXGX7R{g{@k~N3*Exdg{W4iMKR2r+d?})-9=6qOUa;bI*mgHKQQW^8n=fE?z3EYG8o>j0V&n zh}@&zU)>G$Y-c%kHstQPBoY|>;B5cIzzrE&OI1 v*; new StringQuotingEmitter(next)) .WithTypeConverter(new BigIntegerTypeConverter()) @@ -144,8 +157,12 @@ public static SerializerBuilder BuildSerializer(SerializerBuilder builder, bool .WithEmissionPhaseObjectGraphVisitor(args => new NullValueGraphVisitor(args.InnerVisitor)); } if (useFlowStyle == true) { - builder = builder.WithEventEmitter(next => new FlowStyleEmitter(next)); + builder = builder.WithEventEmitter(next => new FlowStyleAllEmitter(next)); } + if (useSequenceFlowStyle == true) { + builder = builder.WithEventEmitter(next => new FlowStyleSequenceEmitter(next)); + } + return builder; } }