Skip to content

Commit 3926eed

Browse files
committed
Return instance of ApiBuilderBody (breaking)
1 parent 232a326 commit 3926eed

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/type/definition.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,11 @@ export class ApiBuilderOperation {
744744
}
745745

746746
get body() {
747-
return this.config.body;
747+
if (this.config.body != null) {
748+
return new ApiBuilderBody(this.config.body, this.service);
749+
}
750+
751+
return undefined;
748752
}
749753

750754
get method() {

0 commit comments

Comments
 (0)