vega / ts-json-schema-generator

Generate JSON schema from your Typescript sources
MIT License
1.38k stars 190 forks source link

Support `ts-toolbelt` types #1028

Open eranelbaz opened 2 years ago

eranelbaz commented 2 years ago

Hey! We are using ts-json-schema-generator for our api validation - but looks like when running ts-json-schema-generator with https://github.com/millsp/ts-toolbelt types it generates nothing

Hope you can add support for that!

types such as -

 O.Either<
  {
    title: string;
    titleId: string;
  },
  'title' | 'titleId'
>;

Thanks

arthurfiorette commented 1 month ago

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

eranelbaz commented 1 month ago

Is the given example not enough?

arthurfiorette commented 1 month ago

No, I do not know what is O.Either neither have time to learn how to use ts-toolbelt just to solve this issue.

If you provide something I can clone, install and reproduce via a npm script would be help.

eranelbaz commented 1 month ago

I'll try to work on one soon This is an old issue (almost 4 years) I also need to remember what is happening here