@autorest/powershell 4.0.627 → 4.0.628
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"powershell/models/model-extensions.ts": "f0c617b9bfb04b4424a853e1b1eecba9059ba788",
|
|
76
76
|
"powershell/module/module-class.ts": "327af665b5d81e4cc1b8fa9da7382e9c73300de5",
|
|
77
77
|
"powershell/module/module-namespace.ts": "f6afc90087e8d733f0323b0de8ba41d923955732",
|
|
78
|
-
"powershell/package.json": "
|
|
78
|
+
"powershell/package.json": "5670d6191de5b926e565256606b2e59db8eaa8ba",
|
|
79
79
|
"powershell/plugins/add-azure-completers-v2.ts": "3b1ddf7a067dbac2f07561fb3f6cbf1b66e555aa",
|
|
80
80
|
"powershell/plugins/create-commands-v2.ts": "915b737aad5f455a9cd0aa4e08034349a2de8ea0",
|
|
81
81
|
"powershell/plugins/cs-namer-v2.ts": "1b64031416f18b604950012b5683758adefce535",
|
|
@@ -345,7 +345,7 @@
|
|
|
345
345
|
"powershell/resources/templates/method.ejs": "4682841c209ce4b132b6f35e0dd1099fe1bc8b1f",
|
|
346
346
|
"powershell/resources/templates/methodBodyRestCall.ejs": "36667e1a264e7ed387e31a5208ed84c210ae3ef7",
|
|
347
347
|
"powershell/resources/templates/methodGroupInterface.ejs": "c31b8b1e49af0c8562ea1e2a0a97be6ff8c782d4",
|
|
348
|
-
"powershell/resources/templates/model.ejs": "
|
|
348
|
+
"powershell/resources/templates/model.ejs": "04c1a879f9bc5d04f02b9b680bbccab1b96e610a",
|
|
349
349
|
"powershell/resources/templates/page.ejs": "657e785359b8255e84e8d81d0cf33340578ff654",
|
|
350
350
|
"powershell/resources/templates/serviceClientBody.ejs": "dc74fc9e1c5566861ffd35638e8e59ed3792fcdd",
|
|
351
351
|
"powershell/resources/templates/serviceClientInterface.ejs": "f8ab5a49f6f33a13f9aea7a7e8b20a0bf4baaeb7",
|
package/package.json
CHANGED
|
@@ -39,7 +39,7 @@ namespace <%- project.namespace %>.Models
|
|
|
39
39
|
CustomInit();
|
|
40
40
|
}
|
|
41
41
|
<%#ToDo support for constructorParameters in the model, the constructorParameter is mapped to properties for the time being%>
|
|
42
|
-
<% if ((model.properties || []).filter(p => !p.isDiscriminator).length > 0 || model.parents) {-%>
|
|
42
|
+
<% if (((model.properties || []).filter(p => !p.isDiscriminator).length > 0 || model.parents) && model.language.default.constructorParametersDeclaration != '') {-%>
|
|
43
43
|
/// <summary>
|
|
44
44
|
/// Initializes a new instance of the <%=model.language.default.name%> class.
|
|
45
45
|
/// </summary>
|