jborean93 / PowerShell-Yayaml

A YAML parser and writer that uses an Assembly Load Context on PowerShell 7+
MIT License
30 stars 2 forks source link

Add New-YamlSchema -EmitTransformer #10

Closed jborean93 closed 9 months ago

jborean93 commented 10 months ago

This new parameter allows the caller to transform any value that is about to be serialized into a specific format. It runs before any of the other -Emit* parameters and provides the full object that will be processed rather than an already formatted Yaml value.

codecov[bot] commented 10 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (cee8530) 93.06% compared to head (da066fc) 93.18%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #10 +/- ## ========================================== + Coverage 93.06% 93.18% +0.11% ========================================== Files 15 15 Lines 1053 1437 +384 Branches 181 185 +4 ========================================== + Hits 980 1339 +359 - Misses 47 70 +23 - Partials 26 28 +2 ``` | [Flag](https://app.codecov.io/gh/jborean93/PowerShell-Yayaml/pull/10/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jordan+Borean) | Coverage Δ | | |---|---|---| | [PS_5.1_x64_Windows](https://app.codecov.io/gh/jborean93/PowerShell-Yayaml/pull/10/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jordan+Borean) | `?` | | | [PS_7.2_x64_Linux](https://app.codecov.io/gh/jborean93/PowerShell-Yayaml/pull/10/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jordan+Borean) | `93.18% <100.00%> (+0.11%)` | :arrow_up: | | [PS_7.2_x64_Windows](https://app.codecov.io/gh/jborean93/PowerShell-Yayaml/pull/10/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jordan+Borean) | `?` | | | [PS_7.3_x64_Windows](https://app.codecov.io/gh/jborean93/PowerShell-Yayaml/pull/10/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jordan+Borean) | `?` | | | [PS_7.4_x64_Linux](https://app.codecov.io/gh/jborean93/PowerShell-Yayaml/pull/10/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jordan+Borean) | `93.18% <100.00%> (+0.11%)` | :arrow_up: | | [PS_7.4_x64_Windows](https://app.codecov.io/gh/jborean93/PowerShell-Yayaml/pull/10/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jordan+Borean) | `?` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jordan+Borean#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.