Skip to content

Commit 96dd8f1

Browse files
author
subk
committed
set resolvedResponseType on resolve(), fixes #497
1 parent 66ac3f1 commit 96dd8f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/method.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function Method(name, type, requestType, responseType, requestStream, responseSt
3737
throw _TypeError("requestType");
3838
if (!util.isString(responseType))
3939
throw _TypeError("responseType");
40-
40+
4141
ReflectionObject.call(this, name, options);
4242

4343
/**
@@ -130,5 +130,6 @@ MethodPrototype.resolve = function resolve() {
130130
resolved = this.parent.lookup(this.responseType);
131131
if (!(resolved && resolved instanceof Type))
132132
throw Error("unresolvable response type: " + this.requestType);
133+
this.resolvedResponseType = resolved;
133134
return ReflectionObject.prototype.resolve.call(this);
134135
};

0 commit comments

Comments
 (0)