Skip to content

Commit

Permalink
Regenerate client from commit 0af3486 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Sep 29, 2021
1 parent 2936184 commit a99e458
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 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.5.1.dev2",
"regenerated": "2021-09-29 07:02:43.801884",
"spec_repo_commit": "181ee2d"
"regenerated": "2021-09-29 08:18:16.392157",
"spec_repo_commit": "0af3486"
},
"v2": {
"apigentools_version": "1.5.1.dev2",
"regenerated": "2021-09-29 07:03:32.840206",
"spec_repo_commit": "181ee2d"
"regenerated": "2021-09-29 08:19:04.949468",
"spec_repo_commit": "0af3486"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ export class IncidentFieldAttributesSingleValue {
}): IncidentFieldAttributesSingleValue {
const res = new IncidentFieldAttributesSingleValue();

if (
["dropdown", "textbox", "autocomplete", undefined].includes(data.type)
) {
if (["dropdown", "textbox", undefined].includes(data.type)) {
res.type = data.type;
} else {
const raw = new IncidentFieldAttributesSingleValue();
Expand All @@ -79,9 +77,7 @@ export class IncidentFieldAttributesSingleValue {
if (data?.unparsedObject !== undefined) {
return data.unparsedObject;
}
if (
["dropdown", "textbox", "autocomplete", undefined].includes(data.type)
) {
if (["dropdown", "textbox", undefined].includes(data.type)) {
res.type = data.type;
} else {
throw TypeError(`invalid enum value ${data.type} for type`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

export type IncidentFieldAttributesSingleValueType =
| typeof DROPDOWN
| typeof TEXTBOX
| typeof AUTOCOMPLETE;
| typeof TEXTBOX;
export const DROPDOWN = "dropdown";
export const TEXTBOX = "textbox";
export const AUTOCOMPLETE = "autocomplete";

0 comments on commit a99e458

Please sign in to comment.