addedInput schema / properties / requestBody / properties / source
Added value: +{
+ "description": "A git app's new source: changing its repoUrl, branch or subdir redeploys from it, from the repository's default branch when branch is left out. Other source types can't be changed.",
+ "oneOf": [
+ {
+ "properties": {
+ "autoUpdate": {
+ "description": "Deploy every push to the branch: on unless set, except for development apps",
+ "type": "boolean"
+ },
+ "branch": {
+ "maxLength": 255,
+ "type": "string"
+ },
+ "branchTracking": {
+ "properties": {
+ "mode": {
+ "enum": [
+ "off",
+ "all",
+ "match"
+ ],
+ "type": "string"
+ },
+ "pattern": {
+ "maxLength": 255,
+ "type": "string"
+ }
+ },
+ "required": [
+ "mode"
+ ],
+ "type": "object"
+ },
+ "profiles": {
+ "items": {
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]+$",
+ "type": "string"
+ },
+ "maxItems": 20,
+ "type": "array"
+ },
+ "repoUrl": {
+ "maxLength": 500,
+ "minLength": 1,
+ "type": "string"
+ },
+ "subdir": {
+ "maxLength": 255,
+ "type": "string"
+ },
+ "type": {
+ "const": "git",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "repoUrl"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "profiles": {
+ "items": {
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]+$",
+ "type": "string"
+ },
+ "maxItems": 20,
+ "type": "array"
+ },
+ "subdir": {
+ "maxLength": 255,
+ "type": "string"
+ },
+ "type": {
+ "const": "upload",
+ "type": "string"
+ },
+ "uploadId": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "autoUpdate": {
+ "description": "Install new versions of the template automatically: checked hourly, and an update that would change the app's price or type waits",
+ "type": "boolean"
+ },
+ "name": {
+ "maxLength": 80,
+ "minLength": 1,
+ "type": "string"
+ },
+ "profiles": {
+ "items": {
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]+$",
+ "type": "string"
+ },
+ "maxItems": 20,
+ "type": "array"
+ },
+ "type": {
+ "const": "catalog",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "name"
+ ],
+ "type": "object"
+ }
+ ],
+ "type": "object"
+}