From 5416c9823df8ec344ce2890cb44469e9a89d9fff Mon Sep 17 00:00:00 2001 From: Xiaogang Ding Date: Fri, 3 Jan 2025 15:42:58 +0800 Subject: [PATCH] sdk - fixed an additional property related issue --- powershell/plugins/sdk-create-inline-properties.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/powershell/plugins/sdk-create-inline-properties.ts b/powershell/plugins/sdk-create-inline-properties.ts index cb7847a1a3..6e3b0469d9 100644 --- a/powershell/plugins/sdk-create-inline-properties.ts +++ b/powershell/plugins/sdk-create-inline-properties.ts @@ -589,11 +589,13 @@ async function createVirtuals(state: State): Promise { Individual models can change the $THRESHOLD for generate */ const conflicts = new Array(); - + // Move additionalProperties from parent to properties. We need to complete it for all objects before createVirtualProperties for (const schema of values(state.model.schemas.objects)) { - moveAdditionalPropertiesFromParentToProperties(schema, state.model.schemas); - // did we already inline this objecct + } + + for (const schema of values(state.model.schemas.objects)) { + // did we already inline this object if (schema.language.default.inlined) { continue; }