Skip to content

Commit 410359a

Browse files
committed
Define every url and viewUrl field as format uri
Signed-off-by: David Bernard <david.bernard.31@gmail.com>
1 parent 865a8be commit 410359a

10 files changed

+25
-13
lines changed

schemas/environmentcreated.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@
7676
"type": "string"
7777
},
7878
"url": {
79-
"type": "string"
79+
"type": "string",
80+
"format": "uri"
8081
}
8182
},
8283
"additionalProperties": false,

schemas/environmentmodified.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@
7676
"type": "string"
7777
},
7878
"url": {
79-
"type": "string"
79+
"type": "string",
80+
"format": "uri"
8081
}
8182
},
8283
"additionalProperties": false,

schemas/pipelinerunfinished.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@
7676
"type": "string"
7777
},
7878
"url": {
79-
"type": "string"
79+
"type": "string",
80+
"format": "uri"
8081
},
8182
"outcome": {
8283
"type": "string"

schemas/pipelinerunqueued.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@
7676
"type": "string"
7777
},
7878
"url": {
79-
"type": "string"
79+
"type": "string",
80+
"format": "uri"
8081
}
8182
},
8283
"additionalProperties": false,

schemas/pipelinerunstarted.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@
7676
"type": "string"
7777
},
7878
"url": {
79-
"type": "string"
79+
"type": "string",
80+
"format": "uri"
8081
}
8182
},
8283
"additionalProperties": false,

schemas/repositorycreated.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,11 @@
8181
},
8282
"url": {
8383
"type": "string",
84-
"minLength": 1
84+
"format": "uri"
8585
},
8686
"viewUrl": {
87-
"type": "string"
87+
"type": "string",
88+
"format": "uri"
8889
}
8990
},
9091
"additionalProperties": false,

schemas/repositorydeleted.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,12 @@
7979
"type": "string"
8080
},
8181
"url": {
82-
"type": "string"
82+
"type": "string",
83+
"format": "uri"
8384
},
8485
"viewUrl": {
85-
"type": "string"
86+
"type": "string",
87+
"format": "uri"
8688
}
8789
},
8890
"additionalProperties": false,

schemas/repositorymodified.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,12 @@
7979
"type": "string"
8080
},
8181
"url": {
82-
"type": "string"
82+
"type": "string",
83+
"format": "uri"
8384
},
8485
"viewUrl": {
85-
"type": "string"
86+
"type": "string",
87+
"format": "uri"
8688
}
8789
},
8890
"additionalProperties": false,

schemas/taskrunfinished.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@
7676
"type": "string"
7777
},
7878
"url": {
79-
"type": "string"
79+
"type": "string",
80+
"format": "uri"
8081
},
8182
"pipelineRun": {
8283
"properties": {

schemas/taskrunstarted.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@
7676
"type": "string"
7777
},
7878
"url": {
79-
"type": "string"
79+
"type": "string",
80+
"format": "uri"
8081
},
8182
"pipelineRun": {
8283
"properties": {

0 commit comments

Comments
 (0)