-
Notifications
You must be signed in to change notification settings - Fork 80
Expand file tree
/
Copy pathpowershell-yaml.psd1
More file actions
147 lines (117 loc) · 5.41 KB
/
powershell-yaml.psd1
File metadata and controls
147 lines (117 loc) · 5.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# Copyright 2016-2026 Cloudbase Solutions Srl
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# Module manifest for module 'powershell-yaml'
#
# Generated by: Gabriel Adrian Samfira
#
# Generated on: 10/01/2016
#
@{
# Script module or binary module file associated with this manifest.
RootModule = 'powershell-yaml.psm1'
# Version number of this module.
ModuleVersion = '0.5.0'
PrivateData = @{
PSData = @{
Prerelease = 'beta1'
LicenseUri = 'https://github.com/cloudbase/powershell-yaml/blob/master/LICENSE'
ProjectUri = 'https://github.com/cloudbase/powershell-yaml'
ReleaseNotes = @'
# 0.5.0
New Features:
* Type-safe YAML deserialization using PowerShell classes inheriting from YamlBase
* Round-trip preservation of comments, tags, and scalar styles
* [YamlKey] attribute to map custom YAML keys to properties
* Duplicate key detection prevents silent data loss
* Enhanced PSCustomObject mode with metadata preservation
* Validation for non-YamlBase nested classes with clear error messages
* Automatic property name conversion (PascalCase -> hyphenated-case)
* Added -Depth flag to ConvertTo-Yaml
* Added -EmitTags to ConvertTo-Yaml
* Added option to emit yaml using explicit block style (override the round-trip style from the document)
Usage:
# PSCustomObject mode with metadata
$obj = $yaml | ConvertFrom-Yaml -As ([PSCustomObject])
# Typed mode with YamlBase classes
class MyConfig : YamlBase { [string]$Name }
$config = $yaml | ConvertFrom-Yaml -As ([MyConfig])
# Convert flow style doc to block style doc
$yaml = '{hello: world, goodbye: world}'
ConvertFrom-Yaml $yaml -As ([pscustomobject]) | ConvertTo-Yaml -Options UseBlockStyle
hello: world
goodbye: world
See examples/ for detailed usage patterns.
# 0.4.12
Bugfixes:
* Fix potential erroneous load of assembly by @gabriel-samfira in https://github.com/cloudbase/powershell-yaml/pull/180
# 0.4.11
Bugfixes:
* Fix nested PSCustomObjects in hashtables by @gabriel-samfira in https://github.com/cloudbase/powershell-yaml/pull/169
* Use decimal as first option when parsing floats by @gabriel-samfira in https://github.com/cloudbase/powershell-yaml/pull/170. Thanks @amis92 for the suggestion!
* Fix lint errors by @gabriel-samfira in https://github.com/cloudbase/powershell-yaml/pull/172
* Use decimals instead of double for tagged floats by @gabriel-samfira in https://github.com/cloudbase/powershell-yaml/pull/174
Misc:
* Add aditional tests by @gabriel-samfira in https://github.com/cloudbase/powershell-yaml/pull/171
* Update README.md by @gabriel-samfira in https://github.com/cloudbase/powershell-yaml/pull/173
# 0.4.10
Bugfixes:
* A broken if statement mistakingly considered 0 as false and converted a 0 valued int to BigInteger (https://github.com/cloudbase/powershell-yaml/pull/165).
* Fixes JSONCompatible flag after we implemented an IDictionary and PSCustomObject type converters (https://github.com/cloudbase/powershell-yaml/pull/166).
# 0.4.9
Changes in this version:
* Revert commit 7980c7c "Fix losing case sensitive keys" (https://github.com/cloudbase/powershell-yaml/pull/159) . This change added a breaking change which was not properly documented before release, breaking some applications. This change will be re-added in a later version.
* Unwrap PScustomObjects before serializing (https://github.com/cloudbase/powershell-yaml/pull/158)
'@
}
}
# ID used to uniquely identify this module
GUID = '6a75a662-7f53-425a-9777-ee61284407da'
# Author of this module
Author = 'Gabriel Adrian Samfira','Alessandro Pilotti'
# Company or vendor of this module
CompanyName = 'Cloudbase Solutions SRL'
# Copyright statement for this module
Copyright = '(c) 2016-2026 Cloudbase Solutions SRL. All rights reserved.'
# Description of the functionality provided by this module
Description = 'Powershell module for serializing and deserializing YAML'
# Minimum version of the Windows PowerShell engine required by this module
PowerShellVersion = '5.0'
# Load PowerShellYaml.dll before parsing the module
# This makes YamlBase available for class inheritance in user scripts
RequiredAssemblies = @('lib/netstandard2.0/PowerShellYaml.dll')
# Functions to export from this module
FunctionsToExport = @(
"ConvertTo-Yaml",
"ConvertFrom-Yaml",
"Set-YamlPropertyComment",
"Get-YamlPropertyComment",
"Set-YamlPropertyScalarStyle",
"Test-YamlMetadata"
)
# Cmdlets to export from this module
# We don't list any here - the .psm1's Export-ModuleMember controls what gets exported.
# ConvertFrom-YamlTyped and ConvertTo-YamlTyped are loaded internally but not exported.
# CmdletsToExport = @()
AliasesToExport = "cfy","cty"
# List of all files packaged with this module
FileList = @(
'powershell-yaml.psd1',
'powershell-yaml.psm1',
'lib/netstandard2.0/YamlDotNet.dll',
'lib/netstandard2.0/PowerShellYamlSerializer.dll',
'lib/netstandard2.0/PowerShellYaml.dll',
'lib/netstandard2.0/PowerShellYaml.Module.dll'
)
}