Skip to content

Commit 404be3b

Browse files
Ignore parameterValue from Yaml serialization (#721)
1 parent 33fc386 commit 404be3b

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

src/Model/Parameter.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public class Parameter : IEquatable<Parameter>
2020

2121
public string Description { get; set;}
2222

23+
[YamlIgnore]
2324
public List<string> ParameterValue { get; set;}
2425

2526
public string DefaultValue { get; set;}

test/Pester/assets/get-date.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,6 @@ parameters:
418418
419419
420420
This parameter was introduced in PowerShell 7.1.
421-
parameterValue: []
422421
defaultValue: None
423422
supportsWildcards: false
424423
isDynamic: false
@@ -447,7 +446,6 @@ parameters:
447446
448447
449448
`Get-Date -Date "6/25/2019 12:30:22"` returns Tuesday, June 25, 2019 12:30:22
450-
parameterValue: []
451449
defaultValue: None
452450
supportsWildcards: false
453451
isDynamic: false
@@ -477,7 +475,6 @@ parameters:
477475
If the specified value is greater than the number of days in a month, PowerShell adds the number of
478476
479477
days to the month. For example, `Get-Date -Month 2 -Day 31` displays **March 3**, not **February 31**.
480-
parameterValue: []
481478
defaultValue: None
482479
supportsWildcards: false
483480
isDynamic: false
@@ -501,7 +498,6 @@ parameters:
501498
- **Time**: displays only the time
502499
503500
- **DateTime**: displays the date and time
504-
parameterValue: []
505501
defaultValue: None
506502
supportsWildcards: false
507503
isDynamic: false
@@ -557,7 +553,6 @@ parameters:
557553
using a 4-digit year, 2-digit month, 2-digit day, the letter `T` as a time separator, 2-digit
558554
hour, 2-digit minute, 2-digit second, 4-digit millisecond, and the letter `Z` as the UTC
559555
indicator). For example: 20190627T1540500718Z.
560-
parameterValue: []
561556
defaultValue: None
562557
supportsWildcards: false
563558
isDynamic: false
@@ -581,7 +576,6 @@ parameters:
581576
- name: Hour
582577
type: System.Int32
583578
description: Specifies the hour that is displayed. Enter a value from 0 to 23.
584-
parameterValue: []
585579
defaultValue: None
586580
supportsWildcards: false
587581
isDynamic: false
@@ -598,7 +592,6 @@ parameters:
598592
599593
600594
This parameter was introduced in PowerShell 3.0.
601-
parameterValue: []
602595
defaultValue: None
603596
supportsWildcards: false
604597
isDynamic: false
@@ -611,7 +604,6 @@ parameters:
611604
- name: Minute
612605
type: System.Int32
613606
description: Specifies the minute that is displayed. Enter a value from 0 to 59.
614-
parameterValue: []
615607
defaultValue: None
616608
supportsWildcards: false
617609
isDynamic: false
@@ -624,7 +616,6 @@ parameters:
624616
- name: Month
625617
type: System.Int32
626618
description: Specifies the month that is displayed. Enter a value from 1 to 12.
627-
parameterValue: []
628619
defaultValue: None
629620
supportsWildcards: false
630621
isDynamic: false
@@ -637,7 +628,6 @@ parameters:
637628
- name: Second
638629
type: System.Int32
639630
description: Specifies the second that is displayed. Enter a value from 0 to 59.
640-
parameterValue: []
641631
defaultValue: None
642632
supportsWildcards: false
643633
isDynamic: false
@@ -663,7 +653,6 @@ parameters:
663653
necessary to display the date. As a result, some of the properties and methods of **DateTime**
664654
665655
objects might not be available.
666-
parameterValue: []
667656
defaultValue: None
668657
supportsWildcards: false
669658
isDynamic: false
@@ -691,7 +680,6 @@ parameters:
691680
692681
693682
This parameter was introduced in PowerShell 7.1.
694-
parameterValue: []
695683
defaultValue: None
696684
supportsWildcards: false
697685
isDynamic: false
@@ -715,7 +703,6 @@ parameters:
715703
- name: Year
716704
type: System.Int32
717705
description: Specifies the year that is displayed. Enter a value from 1 to 9999.
718-
parameterValue: []
719706
defaultValue: None
720707
supportsWildcards: false
721708
isDynamic: false

0 commit comments

Comments
 (0)