Expected behavior
Should not produce any modular reference errors.
Version:
OS: [e.g. iOS] macOS
Python version: 3.10
datamodel-code-generator version: [e.g. 22] 0.22
Additional context
Changing the tittle to simple naming eliminates the issue: such as "title": "GenomeStudio",
So basically removing . from the title does not produce this bug
Thank you for creating the PR.
I guess some users may use the . in the title. it's to define a model as a module :thinking:
Should we provide the option to strip . from the title?
Describe the bug When working with a jsonschema and invoking the model generator, one encounters following error:
Modular references require an output directory, not a file
It appears that the naming causes this error
"title": "GenomeStudio 2.0 - Methylation Module",
To Reproduce
Example schema:
Used commandline:
Expected behavior Should not produce
any modular reference errors
.Version:
Additional context Changing the tittle to simple naming eliminates the issue: such as
"title": "GenomeStudio",
So basically removing.
from the title does not produce this bug