tsp, use TCGC's name for model property schema and parameter name#2787
tsp, use TCGC's name for model property schema and parameter name#2787haolingdong-msft merged 11 commits intoAzure:mainfrom
Conversation
8c03b74 to
7f7ca73
Compare
| * Defines values for ModelOptionalLiteralOptionalLiteral. | ||
| */ | ||
| public enum ModelOptionalLiteral { | ||
| public enum ModelOptionalLiteralOptionalLiteral { |
There was a problem hiding this comment.
Hi @srnagar, we now leverage TCGC to generate the name for optional literal enum. And their logic is to concat the literal value to the enum's name. e.g. the definitiion is optionalLiteral?: "optionalLiteral", so another OptionalLiteral is append to the name. Please let me know if this is acceptable or not.
|
Can we now remove the Model/Scalar related types from We probably still need ModelProperty and Operation as they relates to op.
Also, if above is true, we should be able to remove the "template" related code and "empty name" related code as well. autorest.java/typespec-extension/src/code-model-builder.ts Lines 2274 to 2291 in 8945013 |
Thanks for the suggestion. I tried locally, we can remove |
|
Yes, I can do |
If you can finish the work next week, I am good with "no very strong intention". If you cannot finish next month, it is good incentive for me to clean that up. |
Fix #2731
Code Changes: