question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

extra_template_data not working

See original GitHub issue

Describe the bug

custom_template_dir seems to be ignored:


datamodel_code_generator.generate(custom_template_dir="some/path")

Version:

  • datamodel-code-generator Version: git master

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
koxudaxicommented, Jul 28, 2020

@FlorianLudwig We should explain the feature in documents. I have created an issue to add a document for a custom template.

1reaction
FlorianLudwigcommented, Jul 28, 2020

oh. okay. I misunderstood how it works then. So not a bug. Closing.

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

create custom Config fails with `--extra-template-data` against ...
Describe the bug --extra-template-data to create custom class Config fails when using the default accompanying pydantic template as at ...
Read more >
JQuery UI Autocomplete select returning undefined
I tried changing .data("autocomplete") to .data("ui-autocomplete") This will get rid of the "TypeError: ui.item is undefined" however now all ...
Read more >
datamodel-code-generator - GitHub Pages
This code generator creates pydantic model from an openapi file and others.
Read more >
Reuse 'answer' code from other question - CodeRunner
I tried to use the 'Extra template data' field available for each test. From the documentation I wasn't quite sure if this is...
Read more >
LiveCycle Designer ES: Custom template path/reducing HDD ...
... like Terminal Server and Citrix, the extra template data can be an ... the LiveCycle Designer program directory which are not required....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found