diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-14 21:13:52 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-14 21:13:52 +0300 |
commit | c55eb679a2181c6491c08fd85ae87cc753bcccb7 (patch) | |
tree | 6118882a7b30c2cb64c5ebf885eb6630f9483e89 /app/validators | |
parent | 7b6a6bfc589deae23c8c0cefcc1f9dc4003f2093 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/validators')
-rw-r--r-- | app/validators/json_schemas/error_tracking_event_payload.json | 107 |
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" } } } |