Hello,
I have an issue with tabulation, Koumoul overwrite my global object when I change data in the last tab.
tab1 and tab2 share the same properties object (customFields).
![image](https://user-images.githubusercontent.com/5724417/69798656-fdac8380-11d1-11ea-9c9a-b1e87eaec84c.png)
customFields object is ok
![image](https://user-images.githubusercontent.com/5724417/69798708-1c127f00-11d2-11ea-95eb-f3cc0da86a20.png)
customFields object is overwritten by next data from the last tab
![image](https://user-images.githubusercontent.com/5724417/69798740-27fe4100-11d2-11ea-969d-d54e5980f64c.png)
Have you an idea ?
Thanks
{
"$id": "https://example.com/person.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"x-options": {
"allOfTabs": true
},
"allOf": [
{
"$ref": "#/definitions/tab0"
},
{
"$ref": "#/definitions/tab1"
},
{
"$ref": "#/definitions/tab2"
}
],
"definitions": {
"tab0": {
"title": "Général",
"properties": {
"customId": {
"type": "string",
"title": "Code Client",
"x-class": "xs4",
"readOnly": true
},
"name": {
"type": "string",
"title": "Nom",
"x-class": "xs4"
},
"email": {
"type": "string",
"title": "E-mail",
"x-class": "xs4",
"format": "email"
},
"phone": {
"type": "string",
"title": "Téléphone",
"x-class": "xs4",
"format": "tel"
},
"fax": {
"type": "string",
"title": "Fax",
"x-class": "xs4",
"format": "tel"
}
}
},
"tab1": {
"title": "Adresse",
"properties": {
"customFields": {
"type": "object",
"properties": {
"Adresse1": {
"type": "string",
"title": "Adresse 1",
"x-class": "xs4",
"format": "text"
},
"Adresse2": {
"type": "string",
"title": "Adresse 2",
"x-class": "xs4",
"format": "text"
},
"CodePostal": {
"type": "string",
"title": "Code Postal",
"x-class": "xs4",
"format": "text"
},
"Ville": {
"type": "string",
"title": "Ville",
"x-class": "xs4",
"format": "text"
},
"Dpt": {
"type": "string",
"title": "Département",
"x-class": "xs4",
"format": "text"
}
}
}
}
},
"tab2": {
"title": "Détails",
"properties": {
"customFields": {
"type": "object",
"properties": {
"Cible": {
"type": "array",
"title": "Cible",
"x-class": "xs4",
"items": {
"type": "string",
"oneOf": [
{
"const": "ABA",
"title": "ABA"
},
{
"const": "ADE",
"title": "ADE"
},
{
"const": "BVI",
"title": "BVI"
},
{
"const": "CJE",
"title": "CJE"
},
{
"const": "EMA",
"title": "EMA"
}
]
}
},
"TelSiege": {
"type": "string",
"title": "Téléphone Siège",
"x-class": "xs4",
"format": "tel"
},
"Effectif": {
"type": "integer",
"title": "Effectif",
"x-class": "xs4",
"format": "text"
},
"Ca": {
"type": "integer",
"title": "Chiffre d'Affaire",
"x-class": "xs4",
"format": "text"
}
}
}
}
}
}
}