Can i create json schema for validitaion this object without redesigning json in other form?
{
"itemColors": {
"40": "#12ffd6",
"69": "#f90861",
"185": "#063ac3"
},
"itemVisible": {
"32": true,
"33": true,
"34": true,
"36": true,
"37": true,
"38": true,
"39": true,
"40": true,
"41": true,
"55": true,
"56": true,
"69": true,
"185": true,
"187": true,
"196": true,
"197": true,
"198": true
}
}
Objects can have different numbers of properties.
Values for ItemColors:
- must be of type string
- do not have to be unique
- can be any number of them
Same thing for itemVisible but values must be of type boolean