File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed
modules/openapi-generator/src/main/resources/powershell
samples/client/petstore/powershell/src/PSPetstore/Client Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ Access token for authentication/authorization
86
86
.PARAMETER SkipCertificateCheck
87
87
Skip certificate verification
88
88
89
- .PARAMETER DefaultHeaders
89
+ .PARAMETER DefaultHeaders
90
90
Default HTTP headers to be included in the HTTP request
91
91
92
92
.PARAMETER PassThru
@@ -124,7 +124,6 @@ function Set-{{{apiNamePrefix}}}Configuration {
124
124
if (! ($null -ne $URL .AbsoluteURI -and $URL .Scheme -match ' [http|https]' )) {
125
125
throw " Invalid URL '$($BaseUrl)' cannot be used in the base URL."
126
126
}
127
-
128
127
$Script:Configuration["BaseUrl"] = $BaseUrl
129
128
}
130
129
@@ -156,7 +155,7 @@ function Set-{{{apiNamePrefix}}}Configuration {
156
155
$Script :Configuration[' SkipCertificateCheck' ] = $true
157
156
} else {
158
157
$Script :Configuration[' SkipCertificateCheck' ] = $false
159
- }
158
+ }
160
159
161
160
If ($DefaultHeaders) {
162
161
$Script :Configuration[' DefaultHeaders' ] = $DefaultHeaders
@@ -325,7 +324,7 @@ Get the URL from the host settings.
325
324
.PARAMETER Index
326
325
Index of the host settings (array)
327
326
328
- .PARAMETER Variables
327
+ .PARAMETER Variables
329
328
Names and values of the variables (hashtable)
330
329
331
330
.DESCRIPTION
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ function ConvertFrom-{{{apiNamePrefix}}}JsonTo{{{classname}}} {
20
20
Param (
21
21
[AllowEmptyString()]
22
22
[string]$Json
23
- )
23
+ )
24
24
25
25
Process {
26
26
$match = 0
@@ -53,6 +53,7 @@ function ConvertFrom-{{{apiNamePrefix}}}JsonTo{{{classname}}} {
53
53
}
54
54
} catch {
55
55
# fail to match the schema defined in anyOf, proceed to the next one
56
+ Write-Debug " Failed to match '{{{.}}}' defined in anyOf ({{{apiNamePrefix}}}{{{classname}}}). Proceeding to the next one if any."
56
57
}
57
58
}
58
59
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ function ConvertFrom-{{{apiNamePrefix}}}JsonTo{{{classname}}} {
20
20
Param (
21
21
[AllowEmptyString()]
22
22
[string]$Json
23
- )
23
+ )
24
24
25
25
Process {
26
26
$match = 0
@@ -52,6 +52,7 @@ function ConvertFrom-{{{apiNamePrefix}}}JsonTo{{{classname}}} {
52
52
}
53
53
} catch {
54
54
# fail to match the schema defined in oneOf, proceed to the next one
55
+ Write-Debug " Failed to match '{{{.}}}' defined in oneOf ({{{apiNamePrefix}}}{{{classname}}}). Proceeding to the next one if any."
55
56
}
56
57
57
58
{ {/oneOf} }
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ Access token for authentication/authorization
92
92
. PARAMETER SkipCertificateCheck
93
93
Skip certificate verification
94
94
95
- . PARAMETER DefaultHeaders
95
+ . PARAMETER DefaultHeaders
96
96
Default HTTP headers to be included in the HTTP request
97
97
98
98
. PARAMETER PassThru
@@ -130,7 +130,6 @@ function Set-PSConfiguration {
130
130
if (! ($null -ne $URL.AbsoluteURI -and $URL.Scheme -match ' [http|https]' )) {
131
131
throw " Invalid URL '$ ( $BaseUrl ) ' cannot be used in the base URL."
132
132
}
133
-
134
133
$Script :Configuration [" BaseUrl" ] = $BaseUrl
135
134
}
136
135
@@ -162,7 +161,7 @@ function Set-PSConfiguration {
162
161
$Script :Configuration [' SkipCertificateCheck' ] = $true
163
162
} else {
164
163
$Script :Configuration [' SkipCertificateCheck' ] = $false
165
- }
164
+ }
166
165
167
166
If ($DefaultHeaders ) {
168
167
$Script :Configuration [' DefaultHeaders' ] = $DefaultHeaders
@@ -341,7 +340,7 @@ Get the URL from the host settings.
341
340
. PARAMETER Index
342
341
Index of the host settings (array)
343
342
344
- . PARAMETER Variables
343
+ . PARAMETER Variables
345
344
Names and values of the variables (hashtable)
346
345
347
346
. DESCRIPTION
You can’t perform that action at this time.
0 commit comments