Skip to content

Instantly share code, notes, and snippets.

@cdugeai
Last active February 6, 2023 14:08
Show Gist options
  • Save cdugeai/8fd800ee3d47db107c85c068d07581e1 to your computer and use it in GitHub Desktop.
Save cdugeai/8fd800ee3d47db107c85c068d07581e1 to your computer and use it in GitHub Desktop.
{
"type": "object",
"properties": {
"preset": {
"type": "array",
"items": {
"type": "object",
"properties": {
"nom": {
"type": "string"
},
"params": {
"type": "array",
"items": {
"type": "string"
}
},
"zone": {
"type": "object",
"properties": {
"show": {
"type": "array",
"items": {
"type": "string"
}
},
"hide": {
"type": "array",
"items": {
"type": "string"
}
},
"recursiveOn": {
"type": "array",
"items": {
"type": "string",
"enum": [
"DEPT",
"REG",
"ACAD"
]
}
}
},
"required": [
"show",
"hide",
"recursiveOn"
]
},
"chantier": {
"type": "object",
"properties": {
"show": {
"type": "array",
"items": {
"type": "string"
}
},
"hide": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"show",
"hide"
]
},
"blocks": {
"type": "object",
"properties": {
"edit": {
"type": "array",
"items": {
"type": "string"
}
},
"hide": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"edit",
"hide"
]
}
},
"required": [
"nom",
"params",
"zone",
"chantier",
"blocks"
]
}
},
"role": {
"type": "array",
"items": {
"type": "object",
"properties": {
"nom": {
"type": "string"
},
"preset": {
"type": "array",
"items": {
"type": "object",
"properties": {
"nom": {
"type": "string"
},
"params": {
"type": "array",
"items": {
"type": "object",
"properties": {
"param-name": {
"type": "string"
}
}
}
}
},
"required": [
"nom",
"params"
]
}
}
},
"required": [
"nom",
"preset"
]
}
}
},
"required": [
"preset",
"role"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment