3
0
corteza/def/def.json
2021-07-08 11:42:18 +02:00

27 lines
959 B
JSON

{
"$id": "https://schemas.cortezaproject.org/def.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"imports": {
"type": "array",
"title": "List of go packages to be imported when generating files",
"description": "Attributes are used for generating list of contextual roles"
},
"component": {
"type": "string",
"title": "Component of the definition",
"description": "By default, component is taken from the filename of the definition: from start of the filename to the first dot"
},
"resource": {
"type": "string",
"title": "Resource of the definition",
"description": "By default, resource is taken from the filename of the definition: from the first dot to the end of the filename without extension"
},
"rbac": { "$ref": "def-rbac.json" },
"envoy": { "$ref": "def-envoy.json" }
},
"additionalProperties": false
}