Damus
Michael AF6FB profile picture
Michael AF6FB
@Michael AF6FB
I'm working on a JSON project and finding limits in how the schema works. I'm wondering if there is a better way to do this.



Let's say I have a file that defines a list of departments and a list of employees. I want the schema to verify the department associated with the employee is in the list of departments. For example: employee.dept must be one of department.name.


This seems complex in JSON Schema.


How have you dealt with this? Are there non-JSON files that would be easier?


#json #jsonschema #coder #softwaredeveloper