Skip to content

ObjectSerializer.serialize has bug when Array has odd function on it's prototype #643

@endlesstravel

Description

@endlesstravel

Describe the bug
when i call api whit normal
image

const k8sApi = kc.makeApiClient(k8s.AppsV1Api);
const res = await k8sApi.createNamespacedDeployment(MockNamepase, body);

it raise error with output:
image

it becuase project have odd function on Array.prototype

Array.prototype.someFunction = function() { .... } 
Array.prototype.someFunction2 = function() { .... } 

may be need a warning when has odd function on prototype link of Array ?

** Client Version **
e.g. 0.12.0

** Server Version **
e.g. 1.19.1

Environment (please complete the following information):

  • OS: centos 8
  • NodeJS 12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions