'name': {'type': 'string'}, 'version': {}, 'integrations': {}, }, 'additionalProperties': True, }, 'level': { 'anyOf': [ {'type': 'number'}, { 'type': 'string', 'pattern': '^[0-9]+$', }, { 'type': 'string', 'enum': LOG_LEVELS_MAP.keys(), }, ], }, 'culprit': { 'type': 'string', # 'minLength': 1, # 'maxLength': MAX_CULPRIT_LENGTH, 'default': lambda: apierror('Invalid value for culprit'), }, 'transaction': {'type': 'string'}, 'server_name': TAG_VALUE, 'release': TAG_VALUE, 'dist': { 'type': 'string', 'pattern': '^[a-zA-Z0-9_.-]+$',
"logger": { "type": "string", "pattern": r"^[^\r\n]*\Z", # \Z because $ matches before a trailing newline "default": "", }, "platform": {"type": "string", "enum": list(VALID_PLATFORMS), "default": "other"}, "sdk": { "type": "object", "properties": {"name": {"type": "string"}, "version": {}, "integrations": {}}, "additionalProperties": True, }, "level": { "anyOf": [ {"type": "number"}, {"type": "string", "pattern": "^[0-9]+$"}, {"type": "string", "enum": LOG_LEVELS_MAP.keys()}, ] }, "culprit": { "type": "string", # 'minLength': 1, # 'maxLength': MAX_CULPRIT_LENGTH, "default": lambda: apierror("Invalid value for culprit"), }, "transaction": {"type": "string"}, "server_name": TAG_VALUE, "release": TAG_VALUE, "dist": {"type": "string", "pattern": "^[a-zA-Z0-9_.-]+$", "maxLength": 64}, "tags": { # This is a loose tags schema, individual tags # are also validated more in depth with TAGS_SCHEMA