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 notice that we can introduce a feature where can split the JSON Schema into small reusable chunks and then create a final JSON Schema Validation object... using lodash _.assign
we can introduce assign key
So let's say we have firstName and lastName section common between lots of different Schemes. I should be able to write this template outside and using nodeJS require i should be able to assign this template to my final JSON Schema validation.
So i use file system to maintain json templates.
I notice that we can introduce a feature where can split the JSON Schema into small reusable chunks and then create a final JSON Schema Validation object... using lodash _.assign
we can introduce assign key
So let's say we have firstName and lastName section common between lots of different Schemes. I should be able to write this template outside and using nodeJS require i should be able to assign this template to my final JSON Schema validation.
so final JSON Schema will become somthing like this-
This will make the JSON Schema's to share the templates and we don't have to redefine the templates again and again.
Let me know if it makes sense and i can create a PR.
Thanks,
Sameer
The text was updated successfully, but these errors were encountered: