Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
Don’t validate error codes on client side (#3131)
Browse files Browse the repository at this point in the history
* Don’t validate error codes on client side

* Update docs

* Format

* Format

* Format
  • Loading branch information
Porges authored Jun 5, 2023
1 parent 6c2dbbf commit 9aa2519
Show file tree
Hide file tree
Showing 6 changed files with 92 additions and 227 deletions.
257 changes: 43 additions & 214 deletions docs/webhook_events.md
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,8 @@ If webhook is set to have Event Grid message format then the payload will look a
"code": 468,
"errors": [
"example error message"
]
],
"title": "TASK_FAILED"
},
"task_id": "00000000-0000-0000-0000-000000000000",
"task_type": "libfuzzer_fuzz"
Expand All @@ -1130,64 +1131,29 @@ If webhook is set to have Event Grid message format then the payload will look a
"Error": {
"properties": {
"code": {
"$ref": "#/definitions/ErrorCode"
"title": "Code",
"type": "integer"
},
"errors": {
"items": {
"type": "string"
},
"title": "Errors",
"type": "array"
},
"title": {
"title": "Title",
"type": "string"
}
},
"required": [
"code",
"title",
"errors"
],
"title": "Error",
"type": "object"
},
"ErrorCode": {
"description": "An enumeration.",
"enum": [
450,
451,
452,
453,
454,
455,
456,
457,
458,
459,
460,
461,
462,
463,
464,
465,
467,
468,
469,
470,
471,
472,
473,
474,
475,
476,
477,
478,
479,
480,
481,
482,
483,
484,
485
],
"title": "ErrorCode"
},
"JobConfig": {
"properties": {
"build": {
Expand Down Expand Up @@ -1762,7 +1728,8 @@ If webhook is set to have Event Grid message format then the payload will look a
"code": 472,
"errors": [
"example error message"
]
],
"title": "PROXY_FAILED"
},
"proxy_id": "00000000-0000-0000-0000-000000000000",
"region": "eastus"
Expand All @@ -1777,63 +1744,28 @@ If webhook is set to have Event Grid message format then the payload will look a
"Error": {
"properties": {
"code": {
"$ref": "#/definitions/ErrorCode"
"title": "Code",
"type": "integer"
},
"errors": {
"items": {
"type": "string"
},
"title": "Errors",
"type": "array"
},
"title": {
"title": "Title",
"type": "string"
}
},
"required": [
"code",
"title",
"errors"
],
"title": "Error",
"type": "object"
},
"ErrorCode": {
"description": "An enumeration.",
"enum": [
450,
451,
452,
453,
454,
455,
456,
457,
458,
459,
460,
461,
462,
463,
464,
465,
467,
468,
469,
470,
471,
472,
473,
474,
475,
476,
477,
478,
479,
480,
481,
482,
483,
484,
485
],
"title": "ErrorCode"
}
},
"properties": {
Expand Down Expand Up @@ -2708,7 +2640,8 @@ If webhook is set to have Event Grid message format then the payload will look a
"code": 456,
"errors": [
"example error message"
]
],
"title": "UNABLE_TO_RESIZE"
},
"pool_name": "example",
"scaleset_id": "example-000"
Expand All @@ -2723,63 +2656,28 @@ If webhook is set to have Event Grid message format then the payload will look a
"Error": {
"properties": {
"code": {
"$ref": "#/definitions/ErrorCode"
"title": "Code",
"type": "integer"
},
"errors": {
"items": {
"type": "string"
},
"title": "Errors",
"type": "array"
},
"title": {
"title": "Title",
"type": "string"
}
},
"required": [
"code",
"title",
"errors"
],
"title": "Error",
"type": "object"
},
"ErrorCode": {
"description": "An enumeration.",
"enum": [
450,
451,
452,
453,
454,
455,
456,
457,
458,
459,
460,
461,
462,
463,
464,
465,
467,
468,
469,
470,
471,
472,
473,
474,
475,
476,
477,
478,
479,
480,
481,
482,
483,
484,
485
],
"title": "ErrorCode"
}
},
"properties": {
Expand Down Expand Up @@ -3411,7 +3309,8 @@ If webhook is set to have Event Grid message format then the payload will look a
"code": 468,
"errors": [
"example error message"
]
],
"title": "TASK_FAILED"
},
"job_id": "00000000-0000-0000-0000-000000000000",
"task_id": "00000000-0000-0000-0000-000000000000",
Expand Down Expand Up @@ -3451,64 +3350,29 @@ If webhook is set to have Event Grid message format then the payload will look a
"Error": {
"properties": {
"code": {
"$ref": "#/definitions/ErrorCode"
"title": "Code",
"type": "integer"
},
"errors": {
"items": {
"type": "string"
},
"title": "Errors",
"type": "array"
},
"title": {
"title": "Title",
"type": "string"
}
},
"required": [
"code",
"title",
"errors"
],
"title": "Error",
"type": "object"
},
"ErrorCode": {
"description": "An enumeration.",
"enum": [
450,
451,
452,
453,
454,
455,
456,
457,
458,
459,
460,
461,
462,
463,
464,
465,
467,
468,
469,
470,
471,
472,
473,
474,
475,
476,
477,
478,
479,
480,
481,
482,
483,
484,
485
],
"title": "ErrorCode"
},
"StatsFormat": {
"description": "An enumeration.",
"enum": [
Expand Down Expand Up @@ -5530,64 +5394,29 @@ If webhook is set to have Event Grid message format then the payload will look a
"Error": {
"properties": {
"code": {
"$ref": "#/definitions/ErrorCode"
"title": "Code",
"type": "integer"
},
"errors": {
"items": {
"type": "string"
},
"title": "Errors",
"type": "array"
},
"title": {
"title": "Title",
"type": "string"
}
},
"required": [
"code",
"title",
"errors"
],
"title": "Error",
"type": "object"
},
"ErrorCode": {
"description": "An enumeration.",
"enum": [
450,
451,
452,
453,
454,
455,
456,
457,
458,
459,
460,
461,
462,
463,
464,
465,
467,
468,
469,
470,
471,
472,
473,
474,
475,
476,
477,
478,
479,
480,
481,
482,
483,
484,
485
],
"title": "ErrorCode"
},
"EventCrashReported": {
"properties": {
"container": {
Expand Down
Loading

0 comments on commit 9aa2519

Please sign in to comment.