There are 3 accepted ways to get your customizations into go-swagger generated code:
Generate models. Customize them. Skip model generation upon next time, reusing customized models.
add x-go-type to point something to custom go types/
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
There are 3 accepted ways to get your customizations into go-swagger generated code:
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