datamodel-code-generator icon indicating copy to clipboard operation
datamodel-code-generator copied to clipboard

chore: use `@generated` as defined at https://generated.at

Open pjungermann opened this issue 1 year ago • 2 comments
trafficstars

Add the marker to "generated" at the file header to make it easier for tooling to identify generated files as such.

Closes: #1604

pjungermann avatar Dec 11 '23 16:12 pjungermann

@pjungermann Thank you for creating the PR. Do we need the breaking changes? I don't know if it is valuable (Probably a lot of project people will check the diffs)

What about providing this as a flag in the CLI? It seems silly to add more options to the CLI, but I'm not too happy with the burden it would place on existing projects.

koxudaxi avatar Dec 21 '23 18:12 koxudaxi

@koxudaxi Personally, I would go for it and accept these one-time changes. However, I get your point, and not everyone might be interested in it.

I can look into a flag for the CLI. Of course, it might make the change much bigger, too. I assume you would like to keep the default to the previous behavior, right?

pjungermann avatar Jan 05 '24 10:01 pjungermann