Skip to content

Commit

Permalink
Define every url and viewUrl field as format uri
Browse files Browse the repository at this point in the history
Signed-off-by: David Bernard <david.bernard.31@gmail.com>
  • Loading branch information
davidB committed Apr 7, 2024
1 parent 1950f6f commit 0e9f1b7
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 13 deletions.
3 changes: 2 additions & 1 deletion schemas/environmentcreated.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@
"type": "string"
},
"url": {
"type": "string"
"type": "string",
"format": "uri"
}
},
"additionalProperties": false,
Expand Down
3 changes: 2 additions & 1 deletion schemas/environmentmodified.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@
"type": "string"
},
"url": {
"type": "string"
"type": "string",
"format": "uri"
}
},
"additionalProperties": false,
Expand Down
3 changes: 2 additions & 1 deletion schemas/pipelinerunfinished.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@
"type": "string"
},
"url": {
"type": "string"
"type": "string",
"format": "uri"
},
"outcome": {
"type": "string"
Expand Down
3 changes: 2 additions & 1 deletion schemas/pipelinerunqueued.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@
"type": "string"
},
"url": {
"type": "string"
"type": "string",
"format": "uri"
}
},
"additionalProperties": false,
Expand Down
3 changes: 2 additions & 1 deletion schemas/pipelinerunstarted.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@
"type": "string"
},
"url": {
"type": "string"
"type": "string",
"format": "uri"
}
},
"additionalProperties": false,
Expand Down
5 changes: 3 additions & 2 deletions schemas/repositorycreated.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,11 @@
},
"url": {
"type": "string",
"minLength": 1
"format": "uri"
},
"viewUrl": {
"type": "string"
"type": "string",
"format": "uri"
}
},
"additionalProperties": false,
Expand Down
6 changes: 4 additions & 2 deletions schemas/repositorydeleted.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,12 @@
"type": "string"
},
"url": {
"type": "string"
"type": "string",
"format": "uri"
},
"viewUrl": {
"type": "string"
"type": "string",
"format": "uri"
}
},
"additionalProperties": false,
Expand Down
6 changes: 4 additions & 2 deletions schemas/repositorymodified.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,12 @@
"type": "string"
},
"url": {
"type": "string"
"type": "string",
"format": "uri"
},
"viewUrl": {
"type": "string"
"type": "string",
"format": "uri"
}
},
"additionalProperties": false,
Expand Down
3 changes: 2 additions & 1 deletion schemas/taskrunfinished.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@
"type": "string"
},
"url": {
"type": "string"
"type": "string",
"format": "uri"
},
"pipelineRun": {
"properties": {
Expand Down
3 changes: 2 additions & 1 deletion schemas/taskrunstarted.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@
"type": "string"
},
"url": {
"type": "string"
"type": "string",
"format": "uri"
},
"pipelineRun": {
"properties": {
Expand Down

0 comments on commit 0e9f1b7

Please sign in to comment.