CreateTemplate
Тип: object additionalProperties: false
| Поле | Обязательное | Тип | Описание и ограничения |
|---|---|---|---|
template_name | Да | string | Alias собственного проекта, при необходимости с префиксом team slug. Приводится к нижнему регистру. minLength: 1maxLength: 255pattern: "^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)?$" |
tag | Нет | string / null | Приводится к нижнему регистру. UUID сборки не принимается. При отсутствии или null проверяется default, но имя сохраняется без тега. minLength: 1maxLength: 128pattern: "^[A-Za-z0-9_.-]+$" |
description | Нет | string / null | maxLength: 4096 |
active | Нет | boolean | default: true |
JSON Schema
json
{
"type": "object",
"additionalProperties": false,
"required": [
"template_name"
],
"properties": {
"template_name": {
"type": "string",
"minLength": 1,
"maxLength": 255,
"pattern": "^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)?$",
"description": "Own-project alias, optionally prefixed by its team slug. Normalized to lowercase."
},
"tag": {
"type": [
"string",
"null"
],
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_.-]+$",
"description": "Normalized to lowercase; UUID build references are rejected. Omission or null checks default but stores an untagged reference."
},
"description": {
"type": [
"string",
"null"
],
"maxLength": 4096
},
"active": {
"type": "boolean",
"default": true
}
}
}