Skip to content

Commit db43fd2

Browse files
authored
feat: annotate deprecated operations as such (#287)
1 parent f20b1f9 commit db43fd2

File tree

2 files changed

+4
-2
lines changed
  • customizations/generator/openapi/src/main/resources/templates/expediagroup-sdk
  • examples/src/main/java/com/expediagroup/sdk/rapid/examples/services

2 files changed

+4
-2
lines changed

customizations/generator/openapi/src/main/resources/templates/expediagroup-sdk/api.mustache

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ import com.expediagroup.sdk.core.model.Operation
2828
* @property params [{{classname}}Params]
2929
{{/hasNonBodyParams}}
3030
*/
31+
{{#isDeprecated}}
32+
@Deprecated("This operation is deprecated and will be removed in a future version.")
33+
{{/isDeprecated}}
3134
class {{classname}} {{#isLinkable}}private constructor{{/isLinkable}}(
3235
{{#hasNonBodyParams}}
3336
params: {{classname}}Params{{#isLinkable}}?{{/isLinkable}},
@@ -121,4 +124,4 @@ import com.expediagroup.sdk.core.model.Operation
121124
{{/isLinkable}}
122125
}
123126
{{/operation}}
124-
{{/operations}}
127+
{{/operations}}

examples/src/main/java/com/expediagroup/sdk/rapid/examples/services/RapidService.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ public abstract class RapidService {
1212
.endpoint(Constants.SANDBOX_URL) // remove to connect to the production environment
1313
.requestTimeout(10000)
1414
.build();
15-
1615
}

0 commit comments

Comments
 (0)