Skip to content

Commit

Permalink
Resolve David's PR comments on kotlin syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sichan Yoo committed Aug 14, 2023
1 parent 8f6db1c commit 9998fdd
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,20 @@ class ServiceGenerator(
writer.writeShapeDocs(op)
writer.writeAvailableAttribute(model, op)

writer.writeSingleLineDocs { write("") }
fun writeEmptyLine() {
writer.writeSingleLineDocs { write("") }
}

writeEmptyLine()
writer.writeDocs("\\- Parameter ${op.inputShape.name} : ${retrieveMemberShapeDoc(op.inputShape, model)}")

writer.writeSingleLineDocs { write("") }
writeEmptyLine()
writer.writeDocs("\\- Returns: \\`${op.outputShape.name}\\` : ${retrieveMemberShapeDoc(op.outputShape, model)}")

if (op.getErrors(service).size > 0) {
writer.writeSingleLineDocs { write("") }
if (op.getErrors(service).isNotEmpty()) {
writeEmptyLine()
writer.writeSingleLineDocs { write("- Throws: `${op.toUpperCamelCase() + "Error"}` : Place-holder wrapper object for possible exceptions listed below.") }
writer.writeSingleLineDocs { write("") }
writeEmptyLine()
writer.writeSingleLineDocs { write("__Possible Exceptions:__") }
}

Expand Down

0 comments on commit 9998fdd

Please sign in to comment.