diff --git a/schemas/profile-functions.v1.schema.json b/schemas/profile-functions.v1.schema.json index dd0f2698..d12a8db4 100644 --- a/schemas/profile-functions.v1.schema.json +++ b/schemas/profile-functions.v1.schema.json @@ -19,19 +19,19 @@ "type": "string" }, "project_id": { - "type": "integer" + "$ref": "#/definitions/UInt" }, "received": { - "type": "integer" + "$ref": "#/definitions/UInt" }, "release": { "type": "string" }, "retention_days": { - "type": "integer" + "$ref": "#/definitions/UInt" }, "timestamp": { - "type": "integer" + "$ref": "#/definitions/UInt" }, "transaction_name": { "type": "string" @@ -71,7 +71,14 @@ "$ref": "#/definitions/UInt" } } - } + }, + "required": [ + "fingerprint", + "function", + "in_app", + "package", + "self_times_ns" + ] } }, "UInt": { diff --git a/schemas/profile-metadata.v1.schema.json b/schemas/profile-metadata.v1.schema.json index 0c52be24..c69e9809 100644 --- a/schemas/profile-metadata.v1.schema.json +++ b/schemas/profile-metadata.v1.schema.json @@ -34,7 +34,7 @@ "type": "string" }, "duration_ns": { - "type": "integer" + "$ref": "#/definitions/UInt" }, "environment": { "type": "string" @@ -43,13 +43,13 @@ "type": "string" }, "organization_id": { - "type": "integer" + "$ref": "#/definitions/UInt" }, "platform": { "type": "string" }, "project_id": { - "type": "integer" + "$ref": "#/definitions/UInt" }, "received": { "type": "integer" @@ -92,6 +92,10 @@ "version_code", "version_name" ] + }, + "UInt": { + "type": "integer", + "minimum": 0 } } }