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

Add option to suppress certain properties in output #282

Open
jlapointe opened this issue May 22, 2019 · 1 comment
Open

Add option to suppress certain properties in output #282

jlapointe opened this issue May 22, 2019 · 1 comment

Comments

@jlapointe
Copy link

jlapointe commented May 22, 2019

I'd like to use TJS to generate json schema for mongoDB. However, mongo's support of json schema is limited, and there are certain fields it doesn't support.

For example, the output of TJS includes a $schema field, which mongo rejects. A more complete list can be found here in the mongoDB manual.

Full support for mongo is probably out of scope for this project, but the option to specify an array of properties to be excluded would make it possible to achieve some limited compatibilty.

Please consider adding this!

EDIT: as a workaround, I simply delete myGeneratedSchema['$schema'] in my script.

@xealot
Copy link

xealot commented Oct 29, 2019

I also do this, delete schema.$schema;. For the exact reason you do.

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

No branches or pull requests

2 participants