Skip to content

Commit cf4baf0

Browse files
authored
Remove unused facilities (#1109)
* Remove unused facilities We don't support discriminator or allOf/anyOf for now, let's remove support code for it. * Fix doc build
1 parent 9ddb422 commit cf4baf0

37 files changed

+46
-843
lines changed

.generator/src/generator/templates/model_oneof.j2

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ class {{ name }}(ModelComposed):
4444
{%- endfor %}
4545
{%- endif %}
4646
return {
47-
"anyOf": [],
48-
"allOf": [],
4947
"oneOf": [
5048
{%- for ref in get_oneof_types(model) %}
5149
{{ ref }},

.generator/src/generator/templates/model_utils.j2

Lines changed: 23 additions & 388 deletions
Large diffs are not rendered by default.

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
Sphinx
22
sphinx_material
33
m2r2
4+
docutils<0.19

src/datadog_api_client/model_utils.py

Lines changed: 22 additions & 387 deletions
Large diffs are not rendered by default.

src/datadog_api_client/v1/model/distribution_widget_histogram_request_query.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ def _composed_schemas(_):
9393
)
9494

9595
return {
96-
"anyOf": [],
97-
"allOf": [],
9896
"oneOf": [
9997
FormulaAndFunctionMetricQueryDefinition,
10098
FormulaAndFunctionEventQueryDefinition,

src/datadog_api_client/v1/model/formula_and_function_query_definition.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,6 @@ def _composed_schemas(_):
120120
)
121121

122122
return {
123-
"anyOf": [],
124-
"allOf": [],
125123
"oneOf": [
126124
FormulaAndFunctionMetricQueryDefinition,
127125
FormulaAndFunctionEventQueryDefinition,

src/datadog_api_client/v1/model/logs_processor.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,6 @@ def _composed_schemas(_):
128128
from datadog_api_client.v1.model.logs_trace_remapper import LogsTraceRemapper
129129

130130
return {
131-
"anyOf": [],
132-
"allOf": [],
133131
"oneOf": [
134132
LogsGrokParser,
135133
LogsDateRemapper,

src/datadog_api_client/v1/model/monitor_formula_and_function_query_definition.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ def _composed_schemas(_):
6060
)
6161

6262
return {
63-
"anyOf": [],
64-
"allOf": [],
6563
"oneOf": [
6664
MonitorFormulaAndFunctionEventQueryDefinition,
6765
],

src/datadog_api_client/v1/model/notebook_cell_create_request_attributes.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ def _composed_schemas(_):
5858
from datadog_api_client.v1.model.notebook_log_stream_cell_attributes import NotebookLogStreamCellAttributes
5959

6060
return {
61-
"anyOf": [],
62-
"allOf": [],
6361
"oneOf": [
6462
NotebookMarkdownCellAttributes,
6563
NotebookTimeseriesCellAttributes,

src/datadog_api_client/v1/model/notebook_cell_response_attributes.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ def _composed_schemas(_):
5858
from datadog_api_client.v1.model.notebook_log_stream_cell_attributes import NotebookLogStreamCellAttributes
5959

6060
return {
61-
"anyOf": [],
62-
"allOf": [],
6361
"oneOf": [
6462
NotebookMarkdownCellAttributes,
6563
NotebookTimeseriesCellAttributes,

0 commit comments

Comments
 (0)