Replies: 2 comments
-
Hi @sebilasse! Thanks for your idea, but... Hmm, I don't think this kind of functionality should be built in the mongo seeding library. If you found some library for JSON schema validation, then you can use it in your data definition files using simple import, and after that validate the models before But of course I'm open for a discussion 🙂 |
Beta Was this translation helpful? Give feedback.
-
@sebilasse What do you think? Is this solution good enough for you? Or maybe there are some reasons to put the JSON schema validation package into BTW I would love to accept a PR with examples of using JSON schema validation support in data import files. |
Beta Was this translation helpful? Give feedback.
-
Just stumbled about this nice project. How about adding JSON Schema support ?
Schemas could be simply having the same name than a module, like if you have a module called foo.ts and we would find a foo.json in the same folder.
I could do a PR.
Beta Was this translation helpful? Give feedback.
All reactions