From 8f9cee36fe5d6674542aaafa5ea13bbab1415c61 Mon Sep 17 00:00:00 2001 From: Anna Krystalli Date: Wed, 1 May 2024 11:20:16 +0300 Subject: [PATCH] Split repository_url property into org name and repository name. Resolves #67 --- NEWS.md | 3 ++- v3.0.0/admin-schema.json | 32 +++++++++++++++++++++----------- 2 files changed, 23 insertions(+), 12 deletions(-) diff --git a/NEWS.md b/NEWS.md index 5e42f82..9aeaf61 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,6 +1,7 @@ # v3.0.0 -* Breaking change: introduction of new `sample` output type id schema specification in `tasks.json`. The main breaking change is the removal of the `output_type_id` property in `sample`. Instead, the collection of samples is defined through a new `output_type_id_params` object. +* Breaking change: introduction of new `sample` output type id schema specification in `tasks.json`. The main breaking change is the removal of the `output_type_id` property in `sample`. Instead, the collection of samples is defined through a new `output_type_id_params` object (#70). +* Breaking change: The `repository_url` and `repository_host` properties in `admin.json` have been deprecated in favour of a sigle `repository` object with separate `host`, `owner` and `name` properties (#67). # v2.0.1 diff --git a/v3.0.0/admin-schema.json b/v3.0.0/admin-schema.json index 6d4168a..23ef56a 100644 --- a/v3.0.0/admin-schema.json +++ b/v3.0.0/admin-schema.json @@ -34,17 +34,27 @@ } } }, - "repository_host": { - "description": "The name of the web host for the hub repository", - "type": "string", - "enum": [ - "GitHub" - ] - }, - "repository_url": { - "description": "The url for the hub repository.", - "type": "string", - "examples": ["https://github.com/reichlab/covid19-forecast-hub"] + "repository": { + "description": "Details of the hub repository.", + "examples": [{ + "host": "github", + "owner": "Infectious-Disease-Modeling-Hubs", + "name": "example-simple-forecast-hub" + }], + "type": "object", + "properties": { + "host": { + "description": "The name of the web host for the hub repository", + "type": "string", + "enum": ["github"] + }, + "owner": { + "type": "string" + }, + "name": { + "type": "string" + } + } }, "zoltar_project_id": { "description": "The project id of the Hub in Zoltar",