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; }