aeternity / aepp-sdk-go

Golang SDK to interact with the Æternity blockchain
ISC License
18 stars 10 forks source link

streamline go-swagger code customization #56

Closed randomshinichi closed 4 years ago

randomshinichi commented 5 years ago

There are 3 accepted ways to get your customizations into go-swagger generated code:

  1. Generate models. Customize them. Skip model generation upon next time, reusing customized models.
  2. add x-go-type to point something to custom go types/
  3. go-swagger code template customization

Instead of patching generated files, we should move to one of these methods.

EDIT: keep track of what needs to be patched and why somehow. Patches go in a directory. Make the act of replacing/patching these files trivial with some Python scripts