ps minor style change (#6424)

This commit is contained in:
William Cheng 2020-05-26 10:17:02 +08:00 committed by GitHub
parent d49de5b577
commit c73cafec6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 10 deletions

View File

@ -124,7 +124,6 @@ function Set-{{{apiNamePrefix}}}Configuration {
if (!($null -ne $URL.AbsoluteURI -and $URL.Scheme -match '[http|https]')) {
throw "Invalid URL '$($BaseUrl)' cannot be used in the base URL."
}
$Script:Configuration["BaseUrl"] = $BaseUrl
}

View File

@ -53,6 +53,7 @@ function ConvertFrom-{{{apiNamePrefix}}}JsonTo{{{classname}}} {
}
} catch {
# fail to match the schema defined in anyOf, proceed to the next one
Write-Debug "Failed to match '{{{.}}}' defined in anyOf ({{{apiNamePrefix}}}{{{classname}}}). Proceeding to the next one if any."
}
}

View File

@ -52,6 +52,7 @@ function ConvertFrom-{{{apiNamePrefix}}}JsonTo{{{classname}}} {
}
} catch {
# fail to match the schema defined in oneOf, proceed to the next one
Write-Debug "Failed to match '{{{.}}}' defined in oneOf ({{{apiNamePrefix}}}{{{classname}}}). Proceeding to the next one if any."
}
{{/oneOf}}

View File

@ -130,7 +130,6 @@ function Set-PSConfiguration {
if (!($null -ne $URL.AbsoluteURI -and $URL.Scheme -match '[http|https]')) {
throw "Invalid URL '$($BaseUrl)' cannot be used in the base URL."
}
$Script:Configuration["BaseUrl"] = $BaseUrl
}