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

Commit

Permalink
fix-simple-object-flatten-error (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiaozha committed Dec 23, 2020
1 parent 0dd3c03 commit f7a7b53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@autorest/clicommon",
"version": "0.5.9",
"version": "0.6.0",
"description": "Autorest Azure Cli Common Module",
"main": "dist/index.js",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/flattenSetter/flattenSetter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export class FlattenSetter {
// situation though it's not expected
const config = cloneFlattenConfig(flattenConfig);
config.maxLevel = Math.max(32, config.maxLevel);
this.flattenSchemaFromPayload((<ArraySchema>prop.schema).elementType, curLevel, true, config);
this.flattenSchemaFromPayload((<ArraySchema>prop.schema).elementType, curLevel, flattenSimpleObject, config);
}
}
this.flattenSchemaFromPayload(prop.schema, curLevel + 1, flattenSimpleObject, flattenConfig);
Expand Down

0 comments on commit f7a7b53

Please sign in to comment.