You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The model in the HttpPart template could not be found when generate naming.
In addition, in order to prevent any models without generated name, we should add a test in afterEach to check all the models in context.models and context.enums have names.
)
fix#1483
The PR contains:
- Bug fix for empty name of anonymous model wrapped by `HttpPart`
- add `afterEach` in test to make sure the `sdkPackage.models/enums`
must have non-empty name.
---------
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wei Hu <[email protected]>
Describe the bug
See test here:
typespec-azure/packages/typespec-client-generator-core/test/types/multipart-types.test.ts
Line 578 in 85d0f98
The model in the
HttpPart
template could not be found when generate naming.In addition, in order to prevent any models without generated name, we should add a test in
afterEach
to check all the models incontext.models
andcontext.enums
have names.Reproduction
As description.
Checklist
The text was updated successfully, but these errors were encountered: