Skip to content

Commit

Permalink
Add supportedMediaTypes needed for kubernetes client (#16386)
Browse files Browse the repository at this point in the history
* Add supportedMediaTypes needed for kubernetes client

kubernetes-client/javascript#893

* Add generated files
  • Loading branch information
dleehr authored Aug 24, 2023
1 parent 91fc151 commit 35f6eec
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ let primitives = [

const supportedMediaTypes: { [mediaType: string]: number } = {
"application/json": Infinity,
"application/json-patch+json": 1,
"application/merge-patch+json": 1,
"application/strategic-merge-patch+json": 1,
"application/octet-stream": 0,
"application/x-www-form-urlencoded": 0
}
Expand Down Expand Up @@ -225,7 +228,7 @@ export class ObjectSerializer {
return String(data);
}
if (mediaType === "application/json") {
if (mediaType === "application/json" || mediaType === "application/json-patch+json" || mediaType === "application/merge-patch+json" || mediaType === "application/strategic-merge-patch+json") {
return JSON.stringify(data);
}
Expand All @@ -244,7 +247,7 @@ export class ObjectSerializer {
return rawData;
}
if (mediaType === "application/json") {
if (mediaType === "application/json" || mediaType === "application/json-patch+json" || mediaType === "application/merge-patch+json" || mediaType === "application/strategic-merge-patch+json") {
return JSON.parse(rawData);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ let primitives = [

const supportedMediaTypes: { [mediaType: string]: number } = {
"application/json": Infinity,
"application/json-patch+json": 1,
"application/merge-patch+json": 1,
"application/strategic-merge-patch+json": 1,
"application/octet-stream": 0,
"application/x-www-form-urlencoded": 0
}
Expand Down Expand Up @@ -197,7 +200,7 @@ export class ObjectSerializer {
return String(data);
}

if (mediaType === "application/json") {
if (mediaType === "application/json" || mediaType === "application/json-patch+json" || mediaType === "application/merge-patch+json" || mediaType === "application/strategic-merge-patch+json") {
return JSON.stringify(data);
}

Expand All @@ -216,7 +219,7 @@ export class ObjectSerializer {
return rawData;
}

if (mediaType === "application/json") {
if (mediaType === "application/json" || mediaType === "application/json-patch+json" || mediaType === "application/merge-patch+json" || mediaType === "application/strategic-merge-patch+json") {
return JSON.parse(rawData);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ let primitives = [

const supportedMediaTypes: { [mediaType: string]: number } = {
"application/json": Infinity,
"application/json-patch+json": 1,
"application/merge-patch+json": 1,
"application/strategic-merge-patch+json": 1,
"application/octet-stream": 0,
"application/x-www-form-urlencoded": 0
}
Expand Down Expand Up @@ -214,7 +217,7 @@ export class ObjectSerializer {
return String(data);
}

if (mediaType === "application/json") {
if (mediaType === "application/json" || mediaType === "application/json-patch+json" || mediaType === "application/merge-patch+json" || mediaType === "application/strategic-merge-patch+json") {
return JSON.stringify(data);
}

Expand All @@ -233,7 +236,7 @@ export class ObjectSerializer {
return rawData;
}

if (mediaType === "application/json") {
if (mediaType === "application/json" || mediaType === "application/json-patch+json" || mediaType === "application/merge-patch+json" || mediaType === "application/strategic-merge-patch+json") {
return JSON.parse(rawData);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ let primitives = [

const supportedMediaTypes: { [mediaType: string]: number } = {
"application/json": Infinity,
"application/json-patch+json": 1,
"application/merge-patch+json": 1,
"application/strategic-merge-patch+json": 1,
"application/octet-stream": 0,
"application/x-www-form-urlencoded": 0
}
Expand Down Expand Up @@ -219,7 +222,7 @@ export class ObjectSerializer {
return String(data);
}

if (mediaType === "application/json") {
if (mediaType === "application/json" || mediaType === "application/json-patch+json" || mediaType === "application/merge-patch+json" || mediaType === "application/strategic-merge-patch+json") {
return JSON.stringify(data);
}

Expand All @@ -238,7 +241,7 @@ export class ObjectSerializer {
return rawData;
}

if (mediaType === "application/json") {
if (mediaType === "application/json" || mediaType === "application/json-patch+json" || mediaType === "application/merge-patch+json" || mediaType === "application/strategic-merge-patch+json") {
return JSON.parse(rawData);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ let primitives = [

const supportedMediaTypes: { [mediaType: string]: number } = {
"application/json": Infinity,
"application/json-patch+json": 1,
"application/merge-patch+json": 1,
"application/strategic-merge-patch+json": 1,
"application/octet-stream": 0,
"application/x-www-form-urlencoded": 0
}
Expand Down Expand Up @@ -214,7 +217,7 @@ export class ObjectSerializer {
return String(data);
}

if (mediaType === "application/json") {
if (mediaType === "application/json" || mediaType === "application/json-patch+json" || mediaType === "application/merge-patch+json" || mediaType === "application/strategic-merge-patch+json") {
return JSON.stringify(data);
}

Expand All @@ -233,7 +236,7 @@ export class ObjectSerializer {
return rawData;
}

if (mediaType === "application/json") {
if (mediaType === "application/json" || mediaType === "application/json-patch+json" || mediaType === "application/merge-patch+json" || mediaType === "application/strategic-merge-patch+json") {
return JSON.parse(rawData);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ let primitives = [

const supportedMediaTypes: { [mediaType: string]: number } = {
"application/json": Infinity,
"application/json-patch+json": 1,
"application/merge-patch+json": 1,
"application/strategic-merge-patch+json": 1,
"application/octet-stream": 0,
"application/x-www-form-urlencoded": 0
}
Expand Down Expand Up @@ -214,7 +217,7 @@ export class ObjectSerializer {
return String(data);
}

if (mediaType === "application/json") {
if (mediaType === "application/json" || mediaType === "application/json-patch+json" || mediaType === "application/merge-patch+json" || mediaType === "application/strategic-merge-patch+json") {
return JSON.stringify(data);
}

Expand All @@ -233,7 +236,7 @@ export class ObjectSerializer {
return rawData;
}

if (mediaType === "application/json") {
if (mediaType === "application/json" || mediaType === "application/json-patch+json" || mediaType === "application/merge-patch+json" || mediaType === "application/strategic-merge-patch+json") {
return JSON.parse(rawData);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ let primitives = [

const supportedMediaTypes: { [mediaType: string]: number } = {
"application/json": Infinity,
"application/json-patch+json": 1,
"application/merge-patch+json": 1,
"application/strategic-merge-patch+json": 1,
"application/octet-stream": 0,
"application/x-www-form-urlencoded": 0
}
Expand Down Expand Up @@ -214,7 +217,7 @@ export class ObjectSerializer {
return String(data);
}

if (mediaType === "application/json") {
if (mediaType === "application/json" || mediaType === "application/json-patch+json" || mediaType === "application/merge-patch+json" || mediaType === "application/strategic-merge-patch+json") {
return JSON.stringify(data);
}

Expand All @@ -233,7 +236,7 @@ export class ObjectSerializer {
return rawData;
}

if (mediaType === "application/json") {
if (mediaType === "application/json" || mediaType === "application/json-patch+json" || mediaType === "application/merge-patch+json" || mediaType === "application/strategic-merge-patch+json") {
return JSON.parse(rawData);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ let primitives = [

const supportedMediaTypes: { [mediaType: string]: number } = {
"application/json": Infinity,
"application/json-patch+json": 1,
"application/merge-patch+json": 1,
"application/strategic-merge-patch+json": 1,
"application/octet-stream": 0,
"application/x-www-form-urlencoded": 0
}
Expand Down Expand Up @@ -214,7 +217,7 @@ export class ObjectSerializer {
return String(data);
}

if (mediaType === "application/json") {
if (mediaType === "application/json" || mediaType === "application/json-patch+json" || mediaType === "application/merge-patch+json" || mediaType === "application/strategic-merge-patch+json") {
return JSON.stringify(data);
}

Expand All @@ -233,7 +236,7 @@ export class ObjectSerializer {
return rawData;
}

if (mediaType === "application/json") {
if (mediaType === "application/json" || mediaType === "application/json-patch+json" || mediaType === "application/merge-patch+json" || mediaType === "application/strategic-merge-patch+json") {
return JSON.parse(rawData);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ let primitives = [

const supportedMediaTypes: { [mediaType: string]: number } = {
"application/json": Infinity,
"application/json-patch+json": 1,
"application/merge-patch+json": 1,
"application/strategic-merge-patch+json": 1,
"application/octet-stream": 0,
"application/x-www-form-urlencoded": 0
}
Expand Down Expand Up @@ -214,7 +217,7 @@ export class ObjectSerializer {
return String(data);
}

if (mediaType === "application/json") {
if (mediaType === "application/json" || mediaType === "application/json-patch+json" || mediaType === "application/merge-patch+json" || mediaType === "application/strategic-merge-patch+json") {
return JSON.stringify(data);
}

Expand All @@ -233,7 +236,7 @@ export class ObjectSerializer {
return rawData;
}

if (mediaType === "application/json") {
if (mediaType === "application/json" || mediaType === "application/json-patch+json" || mediaType === "application/merge-patch+json" || mediaType === "application/strategic-merge-patch+json") {
return JSON.parse(rawData);
}

Expand Down

0 comments on commit 35f6eec

Please sign in to comment.