forked from loafle/openapi-generator-original
ps minor style change (#6424)
This commit is contained in:
parent
d49de5b577
commit
c73cafec6b
@ -124,7 +124,6 @@ function Set-{{{apiNamePrefix}}}Configuration {
|
|||||||
if (!($null -ne $URL.AbsoluteURI -and $URL.Scheme -match '[http|https]')) {
|
if (!($null -ne $URL.AbsoluteURI -and $URL.Scheme -match '[http|https]')) {
|
||||||
throw "Invalid URL '$($BaseUrl)' cannot be used in the base URL."
|
throw "Invalid URL '$($BaseUrl)' cannot be used in the base URL."
|
||||||
}
|
}
|
||||||
|
|
||||||
$Script:Configuration["BaseUrl"] = $BaseUrl
|
$Script:Configuration["BaseUrl"] = $BaseUrl
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,6 +53,7 @@ function ConvertFrom-{{{apiNamePrefix}}}JsonTo{{{classname}}} {
|
|||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
# fail to match the schema defined in anyOf, proceed to the next one
|
# 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."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,6 +52,7 @@ function ConvertFrom-{{{apiNamePrefix}}}JsonTo{{{classname}}} {
|
|||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
# fail to match the schema defined in oneOf, proceed to the next one
|
# 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}}
|
{{/oneOf}}
|
||||||
|
@ -130,7 +130,6 @@ function Set-PSConfiguration {
|
|||||||
if (!($null -ne $URL.AbsoluteURI -and $URL.Scheme -match '[http|https]')) {
|
if (!($null -ne $URL.AbsoluteURI -and $URL.Scheme -match '[http|https]')) {
|
||||||
throw "Invalid URL '$($BaseUrl)' cannot be used in the base URL."
|
throw "Invalid URL '$($BaseUrl)' cannot be used in the base URL."
|
||||||
}
|
}
|
||||||
|
|
||||||
$Script:Configuration["BaseUrl"] = $BaseUrl
|
$Script:Configuration["BaseUrl"] = $BaseUrl
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user