Files
espocrm/schema/metadata/app/metadata.json
Yuri Kuznetsov 5023a58cc1 schema
2023-05-27 13:59:52 +03:00

49 lines
1.9 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://www.espocrm.com/schema/metadata/app/metadata.json",
"title": "app/metadata",
"description": "Definitions for metadata itself.",
"type": "object",
"properties": {
"frontendHiddenPathList": {
"type": "array",
"description": "Sections of metadata (defined as paths) to be hidden from the front-end.",
"items": {
"anyOf": [
{"const": "__APPEND__"},
{
"type": "array",
"items": {
"type": "string"
}
}
]
}
},
"aclDependencies": {
"type": "object",
"description": "Rules making a metadata sections available for a user when they don't have access to a scope.",
"additionalProperties": {
"description": "A metadata path, items are separated by dots.",
"properties": {
"scope": {
"type": "string",
"description": "If a user have access to the scope, they will have access to a metadata section defined by a key."
},
"field": {
"type": "string",
"description": "If a user have access to the field (of a scope), they will have access to a metadata section defined by a key."
},
"anyScopeList": {
"type": "array",
"description": "Not supported. TBD.",
"items": {
"type": "string"
}
}
}
}
}
}
}