From 2abe6b66c96c5f9ad8ebb937e59ad141ec4fae57 Mon Sep 17 00:00:00 2001 From: ssube Date: Sat, 22 Aug 2020 17:49:05 -0500 Subject: [PATCH] lint(config): default project colors to empty list, split remote into a ref --- src/config/schema.yml | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/src/config/schema.yml b/src/config/schema.yml index a69e488..d2b99cb 100644 --- a/src/config/schema.yml +++ b/src/config/schema.yml @@ -65,7 +65,6 @@ definitions: items: $ref: "#/definitions/label-ref" - state-label: allOf: - $ref: "#/definitions/change-set" @@ -98,6 +97,24 @@ definitions: $ref: "#/definitions/state-change" default: [] + remote: + type: object + required: + - data + - type + properties: + type: + type: string + enum: + - github-remote + - gitlab-remote + data: + type: object + additionalProperties: false + patternProperties: + ".*": + type: string + project: type: object required: @@ -112,6 +129,7 @@ definitions: type: array items: $ref: "#/definitions/hex-string" + default: [] comment: type: boolean default: true @@ -123,22 +141,7 @@ definitions: name: type: string remote: - type: object - required: - - data - - type - properties: - type: - type: string - enum: - - github-remote - - gitlab-remote - data: - type: object - additionalProperties: false - patternProperties: - ".*": - type: string + $ref: "#/definitions/remote" states: type: array items: