diff --git a/oas_apivideo.yaml b/oas_apivideo.yaml index a046079c..87668f2e 100644 --- a/oas_apivideo.yaml +++ b/oas_apivideo.yaml @@ -11787,7 +11787,6 @@ paths: x-client-action: getAggregatedMetrics x-group-parameters: true x-client-paginated: true - x-optional-object: true x-doctave: code-samples: '/data/buckets/{metric}/{breakdown}': @@ -12035,7 +12034,6 @@ paths: x-client-action: getMetricsBreakdown x-group-parameters: true x-client-paginated: true - x-optional-object: true x-doctave: code-samples: '/data/timeseries/{metric}': diff --git a/templates/nodejs/src/ObjectSerializer.ts.mustache b/templates/nodejs/src/ObjectSerializer.ts.mustache index 670ee3e2..46a4c9f4 100644 --- a/templates/nodejs/src/ObjectSerializer.ts.mustache +++ b/templates/nodejs/src/ObjectSerializer.ts.mustache @@ -94,7 +94,7 @@ export default class ObjectSerializer { return data.getFullYear() + "-" + month + "-" + day; } else { - return data.toISOString(); + return data.toISOString().split('.')[0] + 'Z'; } } else { if (enumsMap.has(type)) {