Skip to content

Commit 755bb5c

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Remove js codeblock prefix from Notebooks API Spec (DataDog#2701)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 651b5c0 commit 755bb5c

File tree

10 files changed

+35
-30
lines changed

10 files changed

+35
-30
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9572,7 +9572,7 @@ components:
95729572
text: '## Some test markdown
95739573

95749574

9575-
```js
9575+
```
95769576

95779577
var x, y;
95789578

@@ -9814,7 +9814,7 @@ components:
98149814
text: '## Some test markdown
98159815

98169816

9817-
```js
9817+
```
98189818

98199819
var x, y;
98209820

@@ -9974,7 +9974,7 @@ components:
99749974
text: '## Some test markdown
99759975

99769976

9977-
```js
9977+
```
99789978

99799979
var x, y;
99809980

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-05-12T09:50:05.590Z
1+
2025-10-03T14:49:56.873Z

cassettes/features/v1/notebooks/Create-a-notebook-returns-OK-response.yml

Lines changed: 12 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cassettes/features/v1/notebooks/Update-a-notebook-returns-OK-response.yml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/v1/logs-pipelines/CreateLogsPipeline.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
processors: [
1212
DatadogAPIClient::V1::LogsGrokParser.new({
1313
grok: DatadogAPIClient::V1::LogsGrokParserRules.new({
14-
match_rules: 'rule_name_1 foo\nrule_name_2 bar\n',
15-
support_rules: 'rule_name_1 foo\nrule_name_2 bar\n',
14+
match_rules: 'rule_name_1 foo\nrule_name_2 bar',
15+
support_rules: 'rule_name_1 foo\nrule_name_2 bar',
1616
}),
1717
is_enabled: false,
1818
samples: [],

examples/v1/logs-pipelines/UpdateLogsPipeline.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
processors: [
1212
DatadogAPIClient::V1::LogsGrokParser.new({
1313
grok: DatadogAPIClient::V1::LogsGrokParserRules.new({
14-
match_rules: 'rule_name_1 foo\nrule_name_2 bar\n',
15-
support_rules: 'rule_name_1 foo\nrule_name_2 bar\n',
14+
match_rules: 'rule_name_1 foo\nrule_name_2 bar',
15+
support_rules: 'rule_name_1 foo\nrule_name_2 bar',
1616
}),
1717
is_enabled: false,
1818
samples: [],

examples/v1/notebooks/CreateNotebook.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
DatadogAPIClient::V1::NotebookCellCreateRequest.new({
1111
attributes: DatadogAPIClient::V1::NotebookMarkdownCellAttributes.new({
1212
definition: DatadogAPIClient::V1::NotebookMarkdownCellDefinition.new({
13-
text: '## Some test markdown\n\n```js\nvar x, y;\nx = 5;\ny = 6;\n```',
13+
text: '## Some test markdown\n\n```\nvar x, y;\nx = 5;\ny = 6;\n```',
1414
type: DatadogAPIClient::V1::NotebookMarkdownCellDefinitionType::MARKDOWN,
1515
}),
1616
}),

examples/v1/notebooks/UpdateNotebook.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
DatadogAPIClient::V1::NotebookCellCreateRequest.new({
1414
attributes: DatadogAPIClient::V1::NotebookMarkdownCellAttributes.new({
1515
definition: DatadogAPIClient::V1::NotebookMarkdownCellDefinition.new({
16-
text: '## Some test markdown\n\n```js\nvar x, y;\nx = 5;\ny = 6;\n```',
16+
text: '## Some test markdown\n\n```\nvar x, y;\nx = 5;\ny = 6;\n```',
1717
type: DatadogAPIClient::V1::NotebookMarkdownCellDefinitionType::MARKDOWN,
1818
}),
1919
}),

features/v1/logs_pipelines.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ Feature: Logs Pipelines
2424
@generated @skip @team:DataDog/event-platform-experience
2525
Scenario: Create a pipeline returns "Bad Request" response
2626
Given new "CreateLogsPipeline" request
27-
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
27+
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar", "support_rules": "rule_name_1 foo\nrule_name_2 bar"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
2828
When the request is sent
2929
Then the response status is 400 Bad Request
3030

3131
@generated @skip @team:DataDog/event-platform-experience
3232
Scenario: Create a pipeline returns "OK" response
3333
Given new "CreateLogsPipeline" request
34-
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
34+
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar", "support_rules": "rule_name_1 foo\nrule_name_2 bar"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
3535
When the request is sent
3636
Then the response status is 200 OK
3737

@@ -128,15 +128,15 @@ Feature: Logs Pipelines
128128
Scenario: Update a pipeline returns "Bad Request" response
129129
Given new "UpdateLogsPipeline" request
130130
And request contains "pipeline_id" parameter from "REPLACE.ME"
131-
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
131+
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar", "support_rules": "rule_name_1 foo\nrule_name_2 bar"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
132132
When the request is sent
133133
Then the response status is 400 Bad Request
134134

135135
@generated @skip @team:DataDog/event-platform-experience
136136
Scenario: Update a pipeline returns "OK" response
137137
Given new "UpdateLogsPipeline" request
138138
And request contains "pipeline_id" parameter from "REPLACE.ME"
139-
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
139+
And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar", "support_rules": "rule_name_1 foo\nrule_name_2 bar"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
140140
When the request is sent
141141
Then the response status is 200 OK
142142

0 commit comments

Comments
 (0)