Skip to content

Commit d3340dd

Browse files
authored
fix tags with special characters (#2315)
1 parent 3ebab2a commit d3340dd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.generator/src/generator/templates/servers.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export const operationServers: { [endpoint: string]: BaseServerConfiguration[] }
7676
{%- for _, _, operation in operations|sort(attribute="2.operationId") %}
7777
{%- for server in operation.servers %}
7878
{%- if loop.first %}
79-
"{{ version }}.{{ operation.tags[0].replace(" ", "") }}Api.{{ operation.operationId|untitle_case }}": [
79+
"{{ version }}.{{ operation.tags[0].replace(" ", "").replace("-", "") }}Api.{{ operation.operationId|untitle_case }}": [
8080
{%- endif %}
8181
new ServerConfiguration<{
8282
{%- for name, value in server.get("variables", {}).items() %}

packages/datadog-api-client-common/servers.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export const operationServers: {
182182
subdomain: "http-intake.logs",
183183
}),
184184
],
185-
"v2.On-CallPagingApi.acknowledgeOnCallPage": [
185+
"v2.OnCallPagingApi.acknowledgeOnCallPage": [
186186
new ServerConfiguration<{
187187
site:
188188
| "saffron.oncall.datadoghq.com"
@@ -208,7 +208,7 @@ export const operationServers: {
208208
subdomain: "api",
209209
}),
210210
],
211-
"v2.On-CallPagingApi.createOnCallPage": [
211+
"v2.OnCallPagingApi.createOnCallPage": [
212212
new ServerConfiguration<{
213213
site:
214214
| "saffron.oncall.datadoghq.com"
@@ -234,7 +234,7 @@ export const operationServers: {
234234
subdomain: "api",
235235
}),
236236
],
237-
"v2.On-CallPagingApi.escalateOnCallPage": [
237+
"v2.OnCallPagingApi.escalateOnCallPage": [
238238
new ServerConfiguration<{
239239
site:
240240
| "saffron.oncall.datadoghq.com"
@@ -260,7 +260,7 @@ export const operationServers: {
260260
subdomain: "api",
261261
}),
262262
],
263-
"v2.On-CallPagingApi.resolveOnCallPage": [
263+
"v2.OnCallPagingApi.resolveOnCallPage": [
264264
new ServerConfiguration<{
265265
site:
266266
| "saffron.oncall.datadoghq.com"

0 commit comments

Comments
 (0)