Open
Description
I am thinking of implementing this myself, but wanted to check if anyone had any experience with this, or if a current maintainer has any ideas about the feasibility:
I'd like to make object properties addable/removable. For example, if a data structure looks like:
{
"countries": {
"Finland": {
"population": 100
},
"Chile": {
"population": 200
}
}
}
I'd like for users to be able to remove and add properties from 'countries', much like the feature currently available on arrays (I am using an existing API and cannot change the shape of this data structure). I can enforce the structure in the JSON Schema in the following way:
"additionalProperties": {
"$ref": "#/definitions/country"
}
Has anyone tried this or have any insight into how to tackle it? If it's do-able, I will be happy to make a PR when I'm done.