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).
customFields object is ok
customFields object is overwritten by next data from the last tab
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"
}
}
}
}
}
}
}