Giter Club home page Giter Club logo

Comments (8)

Philzen avatar Philzen commented on July 19, 2024

I have also tried --no-type-check as recommended in #1013 to no avail. Same as there typescript-json-schema works fine on the same file, however i do prefer the results from ts-json-schema-generator.

from ts-json-schema-generator.

domoritz avatar domoritz commented on July 19, 2024

This could be some issue with recursiveness. Unfortunately we'll need a more specific repo with a minimal example for anyone to be a me to fix this.

I'll close the issue but feel free to continue commenting on it here.

from ts-json-schema-generator.

Philzen avatar Philzen commented on July 19, 2024

@domoritz There you go:

https://github.com/Philzen/ts-json-schema-generator-bug-1790

I included both examples, just run npm install or yarn (tried both) and c&p any of the two example commands.

Kindly reopen this issue once you've confirmed this is an unresolved bug.

from ts-json-schema-generator.

domoritz avatar domoritz commented on July 19, 2024

Thank you for the repo. Can you make it minimal by removing all types that are not contributing to the bug. This will greatly help anyone who is going to try to debug this issue. I would recommend deleting types until the bug disappears. I'll reopen for now but note that the repro is not minimal yet.

from ts-json-schema-generator.

Philzen avatar Philzen commented on July 19, 2024

@domoritz Done: Philzen/ts-json-schema-generator-bug-1790@78beea6

from ts-json-schema-generator.

domoritz avatar domoritz commented on July 19, 2024

Validation still has a lot of types.

Have you been able to narrow down the issue?

from ts-json-schema-generator.

Philzen avatar Philzen commented on July 19, 2024

@domoritz As far as i can tell, not a single type can be removed from ’Validation’ – the type is composed from them and it was a considerable amount of work to pull them together in a single file from the referenced react lib. At the end of the day, the use case would be to reference the type from the original lib directly, that file was merely a way of narrowing it down and trying to reproduce it with a local extract of it.

from ts-json-schema-generator.

domoritz avatar domoritz commented on July 19, 2024

Absolutely. Hopefully this repro helps someone narrow down the issue to find a fix.

from ts-json-schema-generator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.