contractpendev / contractpen-work-client

NodeJS Client for ContractPen
https://contractpen.com/
Apache License 2.0
2 stars 1 forks source link

If no extends class is supplied, permit the class to NOT extend any class #2

Closed contractpendev closed 6 years ago

contractpendev commented 6 years ago

If no extend class is supplied as data to the template then it will incorrectly say that the class extends nothing, it should not have the word extends. This is the incorrect output which it generates.

transaction Request extends  {
    o String input
}

Refer to the model template. https://github.com/contractpendev/contractpen_node_client/blob/master/src/handlebars/model.cto.hbs

It should be fixed so that it appear as follows when there is no extend class supplied.

transaction Request {
    o String input
}
contractpendev commented 6 years ago

Fixed in https://github.com/contractpendev/contractpen_node_client/commit/78a10d27ad4e2abb3b59482aa7560c28703df4c6