Closed gino-m closed 8 months ago
This is working as expected. We could filter for JSON and Yaml files explicitly, but this may break consumers that use other file extensions.
PRs are welcome if you'd like to update the last example in the CLI docs to make this more apparent: https://github.com/bcherny/json-schema-to-typescript?tab=readme-ov-file#cli
This is working as expected. We could filter for JSON and Yaml files explicitly, but this may break consumers that use other file extensions.
Thanks for the reply. On Linux and Linux-like OSes, .*
indicates a hidden file. Is it expected that json2ts
CLI would pick up hidden files as well?
This occurs when running using paths to process multiple files:
The offending file is the OS-specific:
This file should be ignored. Since I wasn't able to get
$ref
s to work correctly with nested folders, I flattened the schema dirs . As such this workaround works: