Feature Request: Code generated modules include a comment stating "autogenerated"
fleimgruber opened this issue · 3 comments
fleimgruber commented
Code modules generated via xsdata generate ...
contain a docstring at the top saying e.g. """Code generated ... DO NOT EDIT."""
. The message is configurable and can be passed as an option to xsdata generate
. The feature could also be optional as a whole, i.e. no comment is inserted by default (current behaviour) and is only inserted if the option was provided by the user.
fleimgruber commented
@tefra If you accept this FR, I would look into a PR for it.
tefra commented
Something like this?
https://xsdata.readthedocs.io/en/latest/codegen/config/#includeheader
fleimgruber commented
Perfect! Sorry for the noise and not reading the fine manual...