From e289772eba6486e954bc1ba348798912a91d2dad Mon Sep 17 00:00:00 2001 From: Vessel9817 <151808241+Vessel9817@users.noreply.github.com> Date: Thu, 23 Jul 2026 02:17:21 -0400 Subject: [PATCH 1/2] Migrated to draft-07 Signed-off-by: Vessel9817 <151808241+Vessel9817@users.noreply.github.com> --- src/schemas/json/travis.json | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/schemas/json/travis.json b/src/schemas/json/travis.json index d47f864366b..7256db5d755 100644 --- a/src/schemas/json/travis.json +++ b/src/schemas/json/travis.json @@ -1,5 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/travis.json", "allOf": [ { "$ref": "#/definitions/job" @@ -802,7 +803,7 @@ "mono": { "oneOf": [ { - "enum": ["none"] + "const": "none" }, { "type": "array", @@ -1117,7 +1118,7 @@ "artifacts": { "oneOf": [ { - "enum": [true] + "const": true }, { "type": "object", @@ -1377,7 +1378,7 @@ "cache": { "oneOf": [ { - "enum": [false] + "const": false }, { "$ref": "#/definitions/cache" @@ -1474,7 +1475,7 @@ "default": 50 }, { - "enum": [false] + "const": false } ] }, @@ -1505,7 +1506,7 @@ }, { "type": "string", - "enum": ["input"] + "const": "input" } ], "description": "Specify handling of line endings when cloning repository" @@ -1645,7 +1646,7 @@ "type": "object", "properties": { "provider": { - "enum": ["script"] + "const": "script" }, "script": { "type": "string" @@ -1657,7 +1658,7 @@ "type": "object", "properties": { "provider": { - "enum": ["npm"] + "const": "npm" }, "email": { "$ref": "#/definitions/possiblySecretString" @@ -1685,7 +1686,7 @@ "type": "object", "properties": { "provider": { - "enum": ["surge"] + "const": "surge" }, "project": { "type": "string" @@ -1700,7 +1701,7 @@ "type": "object", "properties": { "provider": { - "enum": ["releases"] + "const": "releases" }, "api_key": { "$ref": "#/definitions/possiblySecretString" @@ -1739,7 +1740,7 @@ "description": "deploy to heroku, to see https://docs.travis-ci.com/user/deployment/heroku/", "properties": { "provider": { - "enum": ["heroku"] + "const": "heroku" }, "api_key": { "description": "heroku auth token", @@ -1799,7 +1800,7 @@ "type": "object", "properties": { "provider": { - "enum": ["s3"] + "const": "s3" }, "access_key_id": { "$ref": "#/definitions/possiblySecretString" @@ -2267,6 +2268,5 @@ ] } }, - "id": "https://json.schemastore.org/travis.json", "title": "JSON schema for Travis CI configuration files" } From 136ab9c675ce6a4611e68ba1aa6a38f49fc01ed1 Mon Sep 17 00:00:00 2001 From: Vessel9817 <151808241+Vessel9817@users.noreply.github.com> Date: Thu, 23 Jul 2026 02:18:48 -0400 Subject: [PATCH 2/2] Enabled strict validation Signed-off-by: Vessel9817 <151808241+Vessel9817@users.noreply.github.com> --- src/schema-validation.jsonc | 1 - src/schemas/json/travis.json | 21 +++++++++++++-------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/schema-validation.jsonc b/src/schema-validation.jsonc index de4bb92d48f..809f1d4f7ec 100644 --- a/src/schema-validation.jsonc +++ b/src/schema-validation.jsonc @@ -237,7 +237,6 @@ "templatesources.json", "testenvironments.json", "tmlanguage.json", - "travis.json", "tsconfig.json", "tslint.json", "tsoa.json", diff --git a/src/schemas/json/travis.json b/src/schemas/json/travis.json index 7256db5d755..315ac6d1fcd 100644 --- a/src/schemas/json/travis.json +++ b/src/schemas/json/travis.json @@ -1663,22 +1663,27 @@ "email": { "$ref": "#/definitions/possiblySecretString" }, - "api_key": { - "$ref": "#/definitions/possiblySecretString" - }, - "api_token": { - "$ref": "#/definitions/possiblySecretString" - }, "tag": { "type": "string" } }, + "required": ["provider", "email"], "oneOf": [ { - "required": ["provider", "email", "api_key"] + "properties": { + "api_key": { + "$ref": "#/definitions/possiblySecretString" + } + }, + "required": ["api_key"] }, { - "required": ["provider", "email", "api_token"] + "properties": { + "api_token": { + "$ref": "#/definitions/possiblySecretString" + } + }, + "required": ["api_token"] } ] },