Skip to content

Commit

Permalink
Add announcement.url to moves in legacies (#21)
Browse files Browse the repository at this point in the history
This removes the last bastion of notes in profile documents, as tracked in #1.
  • Loading branch information
stuartpb authored Nov 15, 2017
1 parent 5f027d6 commit 08f450a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
11 changes: 11 additions & 0 deletions draft/legacies.copld.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -29,3 +35,8 @@ items:

to:
$ref: "#/definitions/domain"

announcement.:

url:
$ref: "#/definitions/urlish"
13 changes: 13 additions & 0 deletions draft/legacies.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -27,6 +31,15 @@
}
},
"minimumProperties": 1
},
"announcement": {
"type": "object",
"properties": {
"url": {
"$ref": "#/definitions/urlish"
}
},
"minimumProperties": 1
}
}
}
Expand Down

0 comments on commit 08f450a

Please sign in to comment.