Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-01-20 12:16:11 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-01-20 12:16:11 +0300
commitedaa33dee2ff2f7ea3fac488d41558eb5f86d68c (patch)
tree11f143effbfeba52329fb7afbd05e6e2a3790241 /app/validators
parentd8a5691316400a0f7ec4f83832698f1988eb27c1 (diff)
Add latest changes from gitlab-org/gitlab@14-7-stable-eev14.7.0-rc42
Diffstat (limited to 'app/validators')
-rw-r--r--app/validators/json_schemas/error_tracking_event_payload.json107
1 files changed, 61 insertions, 46 deletions
diff --git a/app/validators/json_schemas/error_tracking_event_payload.json b/app/validators/json_schemas/error_tracking_event_payload.json
index 1497a05a68f..d1728609315 100644
--- a/app/validators/json_schemas/error_tracking_event_payload.json
+++ b/app/validators/json_schemas/error_tracking_event_payload.json
@@ -13,57 +13,72 @@
"type": "object"
},
"exception": {
- "type": "object",
- "required": ["values"],
- "properties": {
- "values": {
+ "oneOf": [
+ {
"type": "array",
"items": {
- "type": "object",
- "required": [],
- "properties": {
- "type": {
- "type": "string"
- },
- "value": {
- "type": "string"
- },
- "stacktrace": {
+ "$ref": "#/definitions/exception"
+ }
+ },
+ {
+ "type": "object",
+ "required": ["values"],
+ "properties": {
+ "values": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/exception"
+ }
+ }
+ }
+ }
+ ]
+ }
+ },
+ "definitions": {
+ "exception": {
+ "type": "object",
+ "required": [],
+ "properties": {
+ "type": {
+ "type": "string"
+ },
+ "value": {
+ "type": "string"
+ },
+ "stacktrace": {
+ "type": "object",
+ "required": [],
+ "properties": {
+ "frames": {
+ "type": "array",
+ "items": {
"type": "object",
"required": [],
"properties": {
- "frames": {
- "type": "array",
- "items": {
- "type": "object",
- "required": [],
- "properties": {
- "abs_path": {
- "type": "string"
- },
- "function": {
- "type": "string"
- },
- "lineno": {
- "type": "number"
- },
- "in_app": {
- "type": "boolean"
- },
- "filename": {
- "type": "string"
- },
- "pre_context": {
- "type": "array"
- },
- "context_line": {
- "type": ["string", "null"]
- },
- "post_context": {
- "type": "array"
- }
- }
- }
+ "abs_path": {
+ "type": "string"
+ },
+ "function": {
+ "type": "string"
+ },
+ "lineno": {
+ "type": "number"
+ },
+ "in_app": {
+ "type": "boolean"
+ },
+ "filename": {
+ "type": "string"
+ },
+ "pre_context": {
+ "type": "array"
+ },
+ "context_line": {
+ "type": ["string", "null"]
+ },
+ "post_context": {
+ "type": "array"
}
}
}