GeneratorAlias

class xsdata.models.config.GeneratorAlias(source=None, target=None)[source]

Define an alias for a module, package, class and field Alias definition model.

Each alias has a source attribute that refers to the original name in the schema definition and the target attribute for output name. For package and module aliases the source refers to the schema filename or target namespace depending the selected output structure.

Parameters
  • source (Optional[str]) – The source name from schema definition

  • target (Optional[str]) – The target name of the object.