You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: