Make parameters alias to be lists instead of strings #722
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Summary
This pull request includes multiple changes to improve the handling of parameter aliases in the codebase. The most important changes involve modifying the
Parameterclass and related methods to use a list of strings for aliases instead of a single string.Changes to
Parameterclass:src/Model/Parameter.cs: Changed theAliasesproperty from a string to aList<string>and updated constructors and methods accordingly. [1] [2] [3] [4] [5] [6] [7]Updates to alias handling in methods:
src/Common/YamlUtils.cs: Updated theGetParametersFromDictionarymethod to handleAliasesas a list of strings. [1] [2]src/Transform/TransformBase.cs: Modified methods to convert aliases to a list of strings. [1] [2]src/Transform/TransformMaml.cs: Adjusted theReadParametermethod to set aliases as a list of strings.Test data updates:
test/Pester/assets/get-date.yml: Updated test data to reflect the change in alias handling, representing aliases as lists instead of strings. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]These changes ensure that the handling of parameter aliases is consistent and robust throughout the codebase.
PR Context
Fixes #712