Skip to content

Commit

Permalink
changelog and format
Browse files Browse the repository at this point in the history
  • Loading branch information
tadelesh committed Sep 18, 2024
1 parent a38c9a3 commit 736b939
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: fix
packages:
- "@azure-tools/typespec-client-generator-core"
---

handle orphan types in nested namespaces
4 changes: 2 additions & 2 deletions packages/typespec-client-generator-core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1303,8 +1303,8 @@ function updateMultiPartInfo(
: undefined,
contentType: httpOperationPart.body.contentTypeProperty
? diagnostics.pipe(
getSdkModelPropertyType(context, httpOperationPart.body.contentTypeProperty, operation)
)
getSdkModelPropertyType(context, httpOperationPart.body.contentTypeProperty, operation)
)
: undefined,
defaultContentTypes: httpOperationPart.body.contentTypes,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -459,5 +459,4 @@ describe("typespec-client-generator-core: @usage", () => {
strictEqual(models[0].usage, UsageFlags.Output);
strictEqual(models[0].access, "public");
});

});

0 comments on commit 736b939

Please sign in to comment.