需求
比较直接,从 ts 文件生成 json schema 或者提取出一个 Class 的 key 也行
现有的轮子
ts-json-schema-generator
有的时候会有奇怪的错误,比如 这种。
typescript-json-schema
RangeError: Maximum call stack size exceeded
然后就自杀了。
那么问题来了,有没有合适的轮子来做这个事情呢?