Skip to content

Commit

Permalink
sdk - fixed an additional property related issue (#1424)
Browse files Browse the repository at this point in the history
  • Loading branch information
dolauli authored Jan 3, 2025
1 parent b5ba717 commit 42c7b50
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions powershell/plugins/sdk-create-inline-properties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -589,11 +589,13 @@ async function createVirtuals(state: State): Promise<PwshModel> {
Individual models can change the $THRESHOLD for generate
*/
const conflicts = new Array<string>();

// 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;
}
Expand Down

0 comments on commit 42c7b50

Please sign in to comment.