-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Namespace refactoring Implementation #2968
Labels
Comments
This was referenced Oct 23, 2024
epic design depends
|
Java design (base on TCGC Azure
This is following best practice on Azure Java Guideline e.g. model types, without service had to define a separate TypeSpec namespace for TypeSpec models. Unbranded
|
Migration plan for Azure
|
This was referenced Nov 11, 2024
github-merge-queue bot
pushed a commit
to microsoft/typespec
that referenced
this issue
Nov 13, 2024
Also remove the `Cadl.` in local test. Replaced it with `TspTest` (we don't want to call it `TypeSpec.` as it could conflict with TypeSpec libs). It would not affect Azure SDK which always has `namespace` in emitter option. It only affect SDK that does not have this option (basically, test case, and unbranded). It prepares for the Namespace refactor, as we should not modify the TypeSpec Namespace. Azure/autorest.java#2968
github-merge-queue bot
pushed a commit
to microsoft/typespec
that referenced
this issue
Nov 22, 2024
link Azure/autorest.java#2968 current limitation: - operation group be in same package of client - subclient be in same package of client mostly this due to the fact that ctor of the client is package private, so it won't work if client and its builder or client of accessor method are in different packages --- At this PR, unbranded would still have `.models` in package for models. We can tweak this later (by setting `modelsSubPackage` in JavaSetting to empty, when unbranded). --- tested and it be backward compatible, if `namespace` is provided in emitter option https://github.com/Azure/azure-sdk-for-java/pull/43055/files
Current limitation
|
typespec-java 0.26.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: