Skip to content

Commit d0f247f

Browse files
authored
Support differing operation tag and undo tag (#1646)
* change returned api name if undo tags are set * change undo tags to single string
1 parent c4163cb commit d0f247f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/java/com/datadog/api/Undo.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public static class Parameter {
2323
public String template;
2424
}
2525

26+
public String tag;
2627
public String type;
2728
public String operationId;
2829
public List<Parameter> parameters;
@@ -79,6 +80,7 @@ public static String toOperationName(String string) {
7980
}
8081

8182
public String getAPIName() {
83+
if (undo.tag != null) return Pattern.compile(" ").matcher(undo.tag).replaceAll("");
8284
return Pattern.compile(" ").matcher(tag).replaceAll("");
8385
}
8486

0 commit comments

Comments
 (0)