datamodel-code-generator 0.31.1__py3-none-any.whl → 0.31.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of datamodel-code-generator might be problematic. Click here for more details.

@@ -547,7 +547,8 @@ def generate( # noqa: PLR0912, PLR0913, PLR0914, PLR0915
547
547
  path.parent.mkdir(parents=True)
548
548
  file = path.open("wt", encoding=encoding)
549
549
 
550
- print(custom_file_header or header.format(filename), file=file)
550
+ safe_filename = filename.replace("\n", " ").replace("\r", " ") if filename else ""
551
+ print(custom_file_header or header.format(safe_filename), file=file)
551
552
  if body:
552
553
  print(file=file)
553
554
  print(body.rstrip(), file=file)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: datamodel-code-generator
3
- Version: 0.31.1
3
+ Version: 0.31.2
4
4
  Summary: Datamodel Code Generator
5
5
  Project-URL: Homepage, https://github.com/koxudaxi/datamodel-code-generator
6
6
  Project-URL: Source, https://github.com/koxudaxi/datamodel-code-generator
@@ -1,4 +1,4 @@
1
- datamodel_code_generator/__init__.py,sha256=H6ZnGum3Xw1u1o2e7a6gLjA09Vm2DlXo_Vm8GRrTUlY,20602
1
+ datamodel_code_generator/__init__.py,sha256=TO6OUS0RCHi22nEZ7IeGKbqZHEC1XjciEG3PkLIkMvY,20698
2
2
  datamodel_code_generator/__main__.py,sha256=Z9g_NGrnxV63MRuqtUUpPW48felXmVxwGBtWWkgNlj4,22803
3
3
  datamodel_code_generator/arguments.py,sha256=3GrwOmcqOpBIuZgkg0_3AFO1iKH9Mj0MryQ4PqJmThY,17147
4
4
  datamodel_code_generator/format.py,sha256=ZlnTCAl1H4og685smvCBSzexgpYbZtyYLIrt7lwUNcY,8934
@@ -52,8 +52,8 @@ datamodel_code_generator/parser/base.py,sha256=4B4UeEjCfl_IdRak_qi5Wx8sUx5bX8Xt-
52
52
  datamodel_code_generator/parser/graphql.py,sha256=TNLxy-0wWJSpCm6HK5fKooZdaJodcwQqVr0J29ao3J8,23330
53
53
  datamodel_code_generator/parser/jsonschema.py,sha256=oFSZOyLL3K0tneH09t2lNKdWcbmR_r5OjCyWKPq2Jxc,71114
54
54
  datamodel_code_generator/parser/openapi.py,sha256=kI4kqVBG96rdAVb8z0l4gF6QpcylgVoGjlK_-KToZRg,27607
55
- datamodel_code_generator-0.31.1.dist-info/METADATA,sha256=ZFqob9ufiN1g9KBorISN9qxipHDlsoTChiKZZWpNZ2o,25577
56
- datamodel_code_generator-0.31.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
57
- datamodel_code_generator-0.31.1.dist-info/entry_points.txt,sha256=cJVcHiEViQMANaoM5C1xR5hzmyCqH6hHHMpV8W00in8,77
58
- datamodel_code_generator-0.31.1.dist-info/licenses/LICENSE,sha256=K54Lwc6_jduycsy8oFFjQEeSSuEiqvVIjCGIXOMnuTQ,1068
59
- datamodel_code_generator-0.31.1.dist-info/RECORD,,
55
+ datamodel_code_generator-0.31.2.dist-info/METADATA,sha256=v3R32Y4sivpjW4M-a1qvq2ug4sz2Vpb9BSdHA5pLMAM,25577
56
+ datamodel_code_generator-0.31.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
57
+ datamodel_code_generator-0.31.2.dist-info/entry_points.txt,sha256=cJVcHiEViQMANaoM5C1xR5hzmyCqH6hHHMpV8W00in8,77
58
+ datamodel_code_generator-0.31.2.dist-info/licenses/LICENSE,sha256=K54Lwc6_jduycsy8oFFjQEeSSuEiqvVIjCGIXOMnuTQ,1068
59
+ datamodel_code_generator-0.31.2.dist-info/RECORD,,