Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

Commit

Permalink
check simplearray for custom
Browse files Browse the repository at this point in the history
  • Loading branch information
changlong-liu committed May 7, 2020
1 parent 86b45ce commit 1655a6d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/plugins/azgenerator/CodeModelAzImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1025,9 +1025,6 @@ export class CodeModelCliImpl implements CodeModelAz {
}
return true;
}
else {
return !this.isComplexSchema(schema['elementType'].type);
}
} else if (this.Schema_Type(schema) == SchemaType.Object) {
if (!isNullOrUndefined(schema['children']) && !isNullOrUndefined(schema['discriminator'])) {
return false;
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/azgenerator/TemplateAzureCliCustom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ function GetSingleCommandBody(model: CodeModelAz, required, originalOperation: O
do {
if (model.SelectFirstMethodParameter()) {
do {
if (model.MethodParameter_IsList && !model.MethodParameter_IsListOfSimple) {
if (model.MethodParameter_IsList && !model.MethodParameter_IsListOfSimple && !model.MethodParameter_IsSimpleArray) {
if (model.Parameter_IsPolyOfSimple(model.MethodParameter)) {
let baseParam = model.MethodParameter;
let baseName = model.MethodParameter_MapsTo;
Expand Down

0 comments on commit 1655a6d

Please sign in to comment.