cyclosproject / ng-openapi-gen

An OpenAPI 3.0 codegen for Angular
MIT License
403 stars 134 forks source link

"DO NOT EDIT" comments at the top of generated files. #314

Closed josephbuchma closed 2 months ago

josephbuchma commented 10 months ago

Just another reminder that you should edit openapi spec and re-generate code instead of editing these files directly.

luisfpg commented 2 months ago

I did some changes (duplicated comments were generated in objects) and merged. Anyway, generated files SHOULD be in .gitignore, and never committed to SCM.

josephbuchma commented 2 months ago

Thank you @luisfpg ! We do commit generated code, and it works well so far. Can you please suggest some resources on setting up a project where OpenAPI spec lives in a separate repository and generated code is not committed?

luisfpg commented 2 months ago

I've added a paragraph in https://github.com/cyclosproject/ng-openapi-gen?tab=readme-ov-file#setting-up-a-node-script