koshevy / codegena

Tools for codegeneration from OAS3 to TypeScript. Actual Roadmap published — https://github.com/koshevy/codegena/blob/codegena-3.x/ROADMAP.md
https://codegena-playground.stackblitz.io/
MIT License
38 stars 1 forks source link

[oapi3ts] Extract common algoritms to small utilites #33

Open koshevy opened 4 years ago

koshevy commented 4 years ago

There are some places with common utilities such as code formatting or making comments incapsulated in certain classes. But such common logic has to be used not only in certain class object.

Impossibility to use such place in other context drives to appearing of "copypaste". It had better to extract common logic to pure functions and reuse in different contexts.