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
Copy file name to clipboardExpand all lines: customization-base/README.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,12 @@ The `azure-autorest-customization` package provides APIs for customizing Autores
4
4
programmatically to support special cases not supported by Autorest code generation directly using Eclipse language
5
5
server to ensure valid Java code.
6
6
7
+
## Before You Customize
8
+
9
+
Before customizing generated code, consider whether your change should be made in TypeSpec (`client.tsp`) instead. TypeSpec customizations are cleaner and survive regeneration. See the [TypeSpec Client Customizations Reference](https://github.com/Azure/azure-sdk-for-java/blob/main/eng/common/knowledge/customizing-client-tsp.md) for available decorators like `@@clientName`, `@@access`, etc.
10
+
11
+
Use Java code customizations only when TypeSpec cannot express the behavior you need.
12
+
7
13
To set up customizations, create a Maven project with dependency:
0 commit comments