-
Notifications
You must be signed in to change notification settings - Fork 698
Open
Labels
Description
Hi Guys, first of all this is great plugin.
I was working on json schema with using "remove_empty_properties" : true property.
After using this property = true when I click the navigation button UP/DOWN then it will copy the previous item to next one instead just moving.
Not sure the exact cause but when I removed this property (remove_empty_properties) then it will work like what should be (just move the values up or down)
- json-editor version: 2.5.4
Expected behavior
Data should be moved instead of copying when using remove_empty_properties = true
Actual behavior
Data copying the previous or the next entry when using navigation button
Steps to reproduce the behavior
The schema I using
{
"title": "Pets Example",
"type": "object",
"properties": {
"pets": {
"type": "array",
"format": "table",
"title": "Pets",
"items": {
"type": "object",
"title": "Pet",
"options": {
"remove_empty_properties": true
},
"properties": {
"type": {
"type": "string",
"enum": [
"cat",
"dog",
"bird",
"reptile",
"other"
],
"default": "dog"
},
"name": {
"type": "string"
}
}
},
"default": [
{
"type": "dog",
"name": "Walter"
}
]
}
}
}