Comments (8)
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.
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.
@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.
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.
@domoritz Done: Philzen/ts-json-schema-generator-bug-1790@78beea6
from ts-json-schema-generator.
Validation still has a lot of types.
Have you been able to narrow down the issue?
from ts-json-schema-generator.
@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.
Absolutely. Hopefully this repro helps someone narrow down the issue to find a fix.
from ts-json-schema-generator.
Related Issues (20)
- Expose parsing of a symbol HOT 1
- Publish NPM release HOT 1
- Imported types are converted into strings in literal expression
- The @discriminator tag does not handle `ref` type discriminators
- TypeError: Invalid value used as weak map key HOT 2
- Missing $id prefix in $ref HOT 4
- Bun.sh support HOT 2
- Type override when compile same type name from different ts file to one json schema HOT 2
- Prevent simplification of UnionType HOT 1
- Add patterns to object property names HOT 1
- Duplicate (nested) discriminator union values not allowed
- Invalid schema generated with circular dependencies - minimal case
- Errors out with mentions of @types/mocha HOT 1
- Function with generic keyof param crashes HOT 2
- Issue Generating JSON Schema for Types with Indexed Access References HOT 1
- Support @required and $data annotations. HOT 5
- Generate a schema with an enum only includes the enums numeric values HOT 4
- Documentation of annotations ? HOT 1
- Enhancement: support polymorphic arrays
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ts-json-schema-generator.