phillipdupuis / pydantic-to-typescript

CLI Tool for converting pydantic models into typescript definitions
MIT License
285 stars 48 forks source link

The --json2ts-cmd option should not be validated via 'shutil.which' #26

Closed phillipdupuis closed 2 years ago

phillipdupuis commented 2 years ago

This validation should not be applied if the provided command contains spaces (ex: 'yarn json2ts').

In those cases we will just attempt to run it, and if the command fails we will raise a RuntimeError noting that.