From 9720a32c3c7bed87b20938b2ae2916c720775e1f Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Wed, 21 Feb 2018 17:22:53 +1300 Subject: [PATCH] FIX Regression in child-stability-inherit: accepts boolean or array of strings --- cow-schema.md | 2 +- cow.schema.json | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/cow-schema.md b/cow-schema.md index aa75f09..8e32da0 100644 --- a/cow-schema.md +++ b/cow-schema.md @@ -13,7 +13,7 @@ Basic options are: * `changelog-github` (bool) Push up changelog to github up via github release API (v3) * `changelog-format` Either 'flat' (single list of items) or 'grouped' (grouped by standard groups).\ Defaults to 'grouped' if left out. -* `child-stability-inherit` (bool) If set to true, child modules will be released with the same stability +* `child-stability-inherit` (bool|array) If set to true, child modules will be released with the same stability (e.g. -alpha1) as the parent. This can also be set to an array of modules to limit child stability inheritance to. * `vendors` Declare list of child requirement library vendors that will be released. A vendor must be declared, otherwise no child dependencies will be released. diff --git a/cow.schema.json b/cow.schema.json index 2e47034..8883a9c 100644 --- a/cow.schema.json +++ b/cow.schema.json @@ -27,7 +27,17 @@ "type": "boolean" }, "child-stability-inherit": { - "type": "boolean" + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "array", + "items": { + "type": "string" + } + } + ] }, "dependency-constraint": { "type": "string", @@ -79,4 +89,4 @@ } } } -} \ No newline at end of file +}