Skip to content

Commit

Permalink
properly unfreeze query op
Browse files Browse the repository at this point in the history
  • Loading branch information
rjawesome committed Mar 12, 2024
1 parent 5977eaa commit 7de7a33
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/parser/query_operation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,24 @@ export default class QueryOperationObject implements QueryOperationInterface {
private _pathParams: string[];
private _templateInputs: any;

static unfreeze(obj: any) {
const newObj = new QueryOperationObject();
newObj._params = obj._params;
newObj._requestBody = obj._requestBody;
newObj._requestBodyType = obj._requestBodyType;
newObj._supportBatch = obj._supportBatch;
newObj._batchSize = obj._batchSize;
newObj._useTemplating = obj._useTemplating;
newObj._inputSeparator = obj._inputSeparator;
newObj._path = obj._path;
newObj._method = obj._method;
newObj._server = obj._server;
newObj._tags = obj._tags;
newObj._pathParams = obj._pathParams;
newObj._templateInputs = obj._templateInputs;
return newObj;

Check warning on line 33 in src/parser/query_operation.ts

View check run for this annotation

Codecov / codecov/patch

src/parser/query_operation.ts#L18-L33

Added lines #L18 - L33 were not covered by tests
}

set xBTEKGSOperation(newOp: XBTEKGSOperationObject) {
this._params = newOp.parameters;
this._requestBody = newOp.requestBody;
Expand Down

0 comments on commit 7de7a33

Please sign in to comment.