summaryrefslogtreecommitdiff
path: root/app/validators
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-07-20 09:55:51 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-07-20 09:55:51 +0000
commite8d2c2579383897a1dd7f9debd359abe8ae8373d (patch)
treec42be41678c2586d49a75cabce89322082698334 /app/validators
parentfc845b37ec3a90aaa719975f607740c22ba6a113 (diff)
downloadgitlab-ce-e8d2c2579383897a1dd7f9debd359abe8ae8373d.tar.gz
Add latest changes from gitlab-org/gitlab@14-1-stable-eev14.1.0-rc42
Diffstat (limited to 'app/validators')
-rw-r--r--app/validators/json_schemas/build_metadata_secrets.json3
-rw-r--r--app/validators/json_schemas/error_tracking_event_payload.json231
2 files changed, 233 insertions, 1 deletions
diff --git a/app/validators/json_schemas/build_metadata_secrets.json b/app/validators/json_schemas/build_metadata_secrets.json
index 799e7ab1642..3c8035d0dcf 100644
--- a/app/validators/json_schemas/build_metadata_secrets.json
+++ b/app/validators/json_schemas/build_metadata_secrets.json
@@ -23,7 +23,8 @@
}
},
"additionalProperties": false
- }
+ },
+ "^file$": { "type": "boolean" }
},
"additionalProperties": false
}
diff --git a/app/validators/json_schemas/error_tracking_event_payload.json b/app/validators/json_schemas/error_tracking_event_payload.json
new file mode 100644
index 00000000000..19abde7de08
--- /dev/null
+++ b/app/validators/json_schemas/error_tracking_event_payload.json
@@ -0,0 +1,231 @@
+{
+ "description": "Error tracking event payload",
+ "type": "object",
+ "required": [],
+ "modules": {
+ "type": "object"
+ },
+ "properties": {
+ "event_id": {
+ "type": "string"
+ },
+ "level": {
+ "type": "string"
+ },
+ "timestamp": {
+ "type": "string"
+ },
+ "release": {
+ "type": "string"
+ },
+ "environment": {
+ "type": "string"
+ },
+ "server_name": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "user": {
+ "type": "object",
+ "required": [],
+ "properties": {}
+ },
+ "tags": {
+ "type": "object",
+ "required": [],
+ "properties": {
+ "request_id": {
+ "type": "string"
+ }
+ }
+ },
+ "contexts": {
+ "type": "object",
+ "required": [],
+ "properties": {
+ "os": {
+ "type": "object",
+ "required": [],
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "version": {
+ "type": "string"
+ },
+ "build": {
+ "type": "string"
+ },
+ "kernel_version": {
+ "type": "string"
+ }
+ }
+ },
+ "runtime": {
+ "type": "object",
+ "required": [],
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "version": {
+ "type": "string"
+ }
+ }
+ },
+ "trace": {
+ "type": "object"
+ }
+ }
+ },
+ "fingerprint": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "breadcrumbs": {
+ "type": "object",
+ "required": [],
+ "properties": {
+ "values": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "required": [],
+ "properties": {
+ "category": {
+ "type": "string"
+ },
+ "data": {
+ "type": "object"
+ },
+ "message": {
+ "type": "string"
+ },
+ "timestamp": {
+ "type": "number"
+ }
+ }
+ }
+ }
+ }
+ },
+ "transaction": {
+ "type": "string"
+ },
+ "platform": {
+ "type": "string"
+ },
+ "sdk": {
+ "type": "object",
+ "required": [],
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "version": {
+ "type": "string"
+ }
+ }
+ },
+ "request": {
+ "type": "object",
+ "required": [],
+ "properties": {
+ "url": {
+ "type": "string"
+ },
+ "method": {
+ "type": "string"
+ },
+ "headers": {
+ "type": "object"
+ },
+ "env": {
+ "type": "object",
+ "required": [],
+ "properties": {
+ "SERVER_NAME": {
+ "type": "string"
+ },
+ "SERVER_PORT": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "exception": {
+ "type": "object",
+ "required": [],
+ "properties": {
+ "values": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "required": [],
+ "properties": {
+ "type": {
+ "type": "string"
+ },
+ "value": {
+ "type": "string"
+ },
+ "module": {
+ "type": "string"
+ },
+ "thread_id": {
+ "type": "number"
+ },
+ "stacktrace": {
+ "type": "object",
+ "required": [],
+ "properties": {
+ "frames": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "required": [],
+ "properties": {
+ "project_root": {
+ "type": "string"
+ },
+ "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"
+ },
+ "post_context": {
+ "type": "array"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}