ts-json-schema-generator icon indicating copy to clipboard operation
ts-json-schema-generator copied to clipboard

Unknown type def-alias-

Open qwelias opened this issue 3 years ago • 2 comments

Error: Error: Unknown type "def-alias-1815346304-90-222-1815346304-0-1480423532975"

Repo to reproduce: https://github.com/qwelias/typed-fastify-test

Steps:

  • clone repo
  • npm ci
  • node node_modules/ts-json-schema-generator/dist/ts-json-schema-generator.js --path src/schema.ts --type APISchema

qwelias avatar Aug 05 '22 09:08 qwelias

Thanks for the report. Can you provide a minimal reproducible example that demonstrates the issue?

domoritz avatar Aug 05 '22 15:08 domoritz

I was trying to figure out what exactly is causing it, all i could dig to is the usage of HTTPMethods from here https://github.com/fastify/fastify/blob/main/types/utils.d.ts, but in isolation they don't break, so idk

qwelias avatar Aug 05 '22 16:08 qwelias