Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SCV-141] Adding description to field that is conditionally required #2389

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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-02-16 18:02:50.850356",
"spec_repo_commit": "dc02d0d0"
"regenerated": "2024-02-20 12:21:52.216044",
"spec_repo_commit": "7e467650"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-02-16 18:02:50.865580",
"spec_repo_commit": "dc02d0d0"
"regenerated": "2024-02-20 12:21:52.235691",
"spec_repo_commit": "7e467650"
}
}
}
3 changes: 2 additions & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2039,7 +2039,8 @@ components:
type: number
type: object
CIAppAggregateSort:
description: A sort rule.
description: A sort rule. The `aggregation` field is required when `type` is
`measure`.
example:
aggregation: count
order: asc
Expand Down
2 changes: 1 addition & 1 deletion api/datadogV2/model_ci_app_aggregate_sort.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
)

// CIAppAggregateSort A sort rule.
// CIAppAggregateSort A sort rule. The `aggregation` field is required when `type` is `measure`.
type CIAppAggregateSort struct {
// An aggregation function.
Aggregation *CIAppAggregationFunction `json:"aggregation,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion api/datadogV2/model_ci_app_pipelines_group_by.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type CIAppPipelinesGroupBy struct {
Limit *int64 `json:"limit,omitempty"`
// The value to use for logs that don't have the facet used to group-by.
Missing *CIAppGroupByMissing `json:"missing,omitempty"`
// A sort rule.
// A sort rule. The `aggregation` field is required when `type` is `measure`.
Sort *CIAppAggregateSort `json:"sort,omitempty"`
// A resulting object to put the given computes in over all the matching records.
Total *CIAppGroupByTotal `json:"total,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion api/datadogV2/model_ci_app_tests_group_by.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type CIAppTestsGroupBy struct {
Limit *int64 `json:"limit,omitempty"`
// The value to use for logs that don't have the facet used to group-by.
Missing *CIAppGroupByMissing `json:"missing,omitempty"`
// A sort rule.
// A sort rule. The `aggregation` field is required when `type` is `measure`.
Sort *CIAppAggregateSort `json:"sort,omitempty"`
// A resulting object to put the given computes in over all the matching records.
Total *CIAppGroupByTotal `json:"total,omitempty"`
Expand Down
Loading