Skip to content

Commit

Permalink
Add rule for removing type from oneOf models (#2623)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec committed Aug 12, 2024
1 parent 6eb3981 commit 5adff0b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-08-12 13:34:54.556770",
"spec_repo_commit": "0360f6c8"
"regenerated": "2024-08-12 20:00:03.491615",
"spec_repo_commit": "20d1cfc9"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-08-12 13:34:54.576362",
"spec_repo_commit": "0360f6c8"
"regenerated": "2024-08-12 20:00:03.510477",
"spec_repo_commit": "20d1cfc9"
}
}
}
1 change: 0 additions & 1 deletion .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13459,7 +13459,6 @@ components:
oneOf:
- $ref: '#/components/schemas/SyntheticsAPITestStep'
- $ref: '#/components/schemas/SyntheticsAPIWaitStep'
type: object
SyntheticsAPITest:
description: Object containing details about a Synthetic API test.
properties:
Expand Down
6 changes: 1 addition & 5 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5879,7 +5879,6 @@ components:
- $ref: '#/components/schemas/CustomDestinationForwardDestinationHttp'
- $ref: '#/components/schemas/CustomDestinationForwardDestinationSplunk'
- $ref: '#/components/schemas/CustomDestinationForwardDestinationElasticsearch'
type: object
CustomDestinationForwardDestinationElasticsearch:
description: The Elasticsearch destination.
properties:
Expand Down Expand Up @@ -6000,7 +5999,6 @@ components:
oneOf:
- $ref: '#/components/schemas/CustomDestinationHttpDestinationAuthBasic'
- $ref: '#/components/schemas/CustomDestinationHttpDestinationAuthCustomHeader'
type: object
CustomDestinationHttpDestinationAuthBasic:
description: Basic access authentication.
properties:
Expand Down Expand Up @@ -6140,7 +6138,6 @@ components:
- $ref: '#/components/schemas/CustomDestinationResponseForwardDestinationHttp'
- $ref: '#/components/schemas/CustomDestinationResponseForwardDestinationSplunk'
- $ref: '#/components/schemas/CustomDestinationResponseForwardDestinationElasticsearch'
type: object
CustomDestinationResponseForwardDestinationElasticsearch:
description: The Elasticsearch destination.
properties:
Expand Down Expand Up @@ -6254,7 +6251,6 @@ components:
oneOf:
- $ref: '#/components/schemas/CustomDestinationResponseHttpDestinationAuthBasic'
- $ref: '#/components/schemas/CustomDestinationResponseHttpDestinationAuthCustomHeader'
type: object
CustomDestinationResponseHttpDestinationAuthBasic:
description: Basic access authentication.
properties:
Expand Down Expand Up @@ -11775,6 +11771,7 @@ components:
required:
- type
- integration
type: object
LogsArchiveDestinationAzure:
description: The Azure archive destination.
properties:
Expand Down Expand Up @@ -20592,7 +20589,6 @@ components:
- $ref: '#/components/schemas/ServiceDefinitionV2'
- $ref: '#/components/schemas/ServiceDefinitionV2Dot1'
- $ref: '#/components/schemas/ServiceDefinitionV2Dot2'
type: object
ServiceDefinitionSchemaVersions:
description: Schema versions
enum:
Expand Down

0 comments on commit 5adff0b

Please sign in to comment.