From 08f450abb06d6adadf4084ad5d1e2286a40d0b1b Mon Sep 17 00:00:00 2001 From: "Stuart P. Bentley" Date: Wed, 15 Nov 2017 00:56:16 -0800 Subject: [PATCH] Add announcement.url to moves in legacies (#21) This removes the last bastion of notes in profile documents, as tracked in #1. --- draft/legacies.copld.yaml | 11 +++++++++++ draft/legacies.json | 13 +++++++++++++ 2 files changed, 24 insertions(+) diff --git a/draft/legacies.copld.yaml b/draft/legacies.copld.yaml index f8bd70f..5cd6e17 100644 --- a/draft/legacies.copld.yaml +++ b/draft/legacies.copld.yaml @@ -13,6 +13,12 @@ definitions: type: string pattern: ^(\*\.)*([a-z0-9\-]+\.)+[a-z0-9\-]+$ + urlish: + type: string + # right now, after the host and path, anything goes + # this will probably get more formal in the future + pattern: ^https?://(([a-z0-9\-]+|\*)\.)+[a-z0-9\-]+/ + # body # type: array @@ -29,3 +35,8 @@ items: to: $ref: "#/definitions/domain" + + announcement.: + + url: + $ref: "#/definitions/urlish" diff --git a/draft/legacies.json b/draft/legacies.json index 22f0e38..7662ef7 100644 --- a/draft/legacies.json +++ b/draft/legacies.json @@ -6,6 +6,10 @@ "domain": { "type": "string", "pattern": "^(\\*\\.)*([a-z0-9\\-]+\\.)+[a-z0-9\\-]+$" + }, + "urlish": { + "type": "string", + "pattern": "^https?://(([a-z0-9\\-]+|\\*)\\.)+[a-z0-9\\-]+/" } }, "type": "array", @@ -27,6 +31,15 @@ } }, "minimumProperties": 1 + }, + "announcement": { + "type": "object", + "properties": { + "url": { + "$ref": "#/definitions/urlish" + } + }, + "minimumProperties": 1 } } }