ts-json-schema-generator
ts-json-schema-generator copied to clipboard
Type '*' is not working with expose 'none'
Without expose, all types including type names from a single file are generated. When I add expose: 'none', the type names are gone and are replaced with a single '*' type. When I configure type: '', random class names with long numbers are generated.
Expected behavior:
By just adding expose: 'none' and leaving everything else untouched, the schema should just inline the $ref in that respective class, not remove the whole class name.
All class in my .ts file are exported.
Can you send a patch?
I have unfortunately no idea, how this library is implemented. My temporary fix is to add an external library that is able to dereference JSON schemas. There seem to be an essential problem with many of the possible configurations. By just trying a few combinations, there were a lot of side effects that should not appear with a single configuration change. It would be good if someone who implemented the configuration resolution logic could look into this.
Did you have any time to look into this @domoritz ?