Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds option to disable union type de-duplication for performance reasons #424

Closed
wants to merge 3 commits into from

Conversation

jmikrut
Copy link

@jmikrut jmikrut commented Nov 17, 2021

In certain controlled scenarios, a developer can take it upon him/herself to avoid union type duplication in their JSON schema before compiling with json-schema-to-typescript.

In these cases, it would be ideal to skip the performance-intensive manner that this package de-duplicates union types.

This PR adds an opt-in option to skip union type de-duplication.

This option has the potential to dramatically increase performance in some large schemas and addresses a way to circumvent the issue identified in #422.

@jmikrut
Copy link
Author

jmikrut commented Nov 29, 2021

Hey all,

Just want to bump this PR. It's an unobtrusive opt-in feature that we need at Payload CMS to improve performance while using this package.

Can I assist with review / merge / publish in any way?

@bcherny
Copy link
Owner

bcherny commented May 15, 2022

Superseded by #447

@bcherny bcherny closed this May 15, 2022
@jmikrut
Copy link
Author

jmikrut commented May 16, 2022

Amazing, @bcherny.

Thank you, and keep up the great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants