Skip to content

Commit

Permalink
Fix go JSON struct (#992)
Browse files Browse the repository at this point in the history
* Remove extra bracket in json struct

* Regenerate client from commit 207a463 of spec repo

Co-authored-by: Thomas Hervé <thomas.herve@datadoghq.com>
Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
  • Loading branch information
3 people authored Jun 10, 2021
1 parent 2281edf commit 770c78d
Show file tree
Hide file tree
Showing 255 changed files with 1,019 additions and 1,019 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.4.1.dev8",
"regenerated": "2021-06-09 08:35:43.693475",
"spec_repo_commit": "f570d1e"
"regenerated": "2021-06-10 12:25:58.449421",
"spec_repo_commit": "207a463"
},
"v2": {
"apigentools_version": "1.4.1.dev8",
"regenerated": "2021-06-09 08:36:14.072350",
"spec_repo_commit": "f570d1e"
"regenerated": "2021-06-10 12:26:26.486599",
"spec_repo_commit": "207a463"
}
}
}
2 changes: 1 addition & 1 deletion .generator/templates/model_simple.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ func (o *{{{classname}}}) UnmarshalJSON(bytes []byte) (err error) {
}{}
all := struct {
{{#vars}}
{{name}} {{^required}}{{^isNullable}}*{{/isNullable}}{{/required}}{{{dataType}}} `json:"{{baseName}}{{^required}},omitempty{{/required}}"}`
{{name}} {{^required}}{{^isNullable}}*{{/isNullable}}{{/required}}{{{dataType}}} `json:"{{baseName}}{{^required}},omitempty{{/required}}"`
{{/vars}}
}{}
err = json.Unmarshal(bytes, &required)
Expand Down
14 changes: 7 additions & 7 deletions api/v1/datadog/model_alert_graph_widget_definition.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions api/v1/datadog/model_alert_value_widget_definition.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/v1/datadog/model_api_error_response.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions api/v1/datadog/model_apm_stats_query_column_type.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions api/v1/datadog/model_apm_stats_query_definition.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions api/v1/datadog/model_aws_account_and_lambda_request.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions api/v1/datadog/model_aws_logs_services_request.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/v1/datadog/model_cancel_downtimes_by_scope_request.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions api/v1/datadog/model_change_widget_definition.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions api/v1/datadog/model_check_can_delete_monitor_response.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions api/v1/datadog/model_check_status_widget_definition.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 14 additions & 14 deletions api/v1/datadog/model_dashboard.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions api/v1/datadog/model_dashboard_list.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions api/v1/datadog/model_dashboard_template_variable.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions api/v1/datadog/model_distribution_widget_definition.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 14 additions & 14 deletions api/v1/datadog/model_event_create_request.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions api/v1/datadog/model_event_query_definition.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions api/v1/datadog/model_event_stream_widget_definition.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 770c78d

Please sign in to comment.