{"$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://api.mobileapi.dev/schemas/device.json", "title": "Device", "required": ["name"], "type": "object", "properties": {"id": {"title": "Id", "type": "integer", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}, "manufacturer": {"$ref": "https://api.mobileapi.dev/schemas/manufacturer.json"}, "manufacturer_name": {"title": "Manufacturer name", "type": "string", "readOnly": true, "minLength": 1}, "device_type": {"title": "Device type", "description": "Type of device (phone, tablet, laptop, wearable, other)", "type": "string", "enum": ["phone", "tablet", "laptop", "wearable", "other"]}, "description": {"title": "Description", "type": "string"}, "colors": {"title": "Colors", "description": "Available colors", "type": "string", "maxLength": 255}, "storage": {"title": "Storage", "description": "Storage options (e.g., 256GB, 512GB, 2TB)", "type": "string", "maxLength": 255}, "screen_resolution": {"title": "Screen resolution", "description": "Screen size and resolution (e.g., 6.9\", 1320 x 2868 pixels)", "type": "string", "maxLength": 255}, "weight": {"title": "Weight", "description": "Device weight (e.g., 233g)", "type": "string", "maxLength": 50}, "thickness": {"title": "Thickness", "description": "Device thickness (e.g., 8.8mm)", "type": "string", "maxLength": 50}, "release_date": {"title": "Release date", "description": "Release date", "type": "string", "maxLength": 100}, "camera": {"title": "Camera", "description": "Main camera resolution (e.g., 48MP)", "type": "string", "maxLength": 50}, "battery_capacity": {"title": "Battery capacity", "description": "Battery capacity (e.g., 4823 mAh)", "type": "string", "maxLength": 50}, "hardware": {"title": "Hardware", "description": "RAM and chipset (e.g., 12GB RAM, Apple A19 Pro)", "type": "string", "maxLength": 255}, "image_b64": {"title": "Image b64", "type": "string", "readOnly": true}, "image_url": {"title": "Image url", "type": "string", "readOnly": true}, "network": {"$ref": "https://api.mobileapi.dev/schemas/network.json"}, "body": {"$ref": "https://api.mobileapi.dev/schemas/body.json"}, "display": {"$ref": "https://api.mobileapi.dev/schemas/display.json"}, "platform": {"$ref": "https://api.mobileapi.dev/schemas/platform.json"}, "memory": {"$ref": "https://api.mobileapi.dev/schemas/memory.json"}, "main_camera": {"$ref": "https://api.mobileapi.dev/schemas/maincamera.json"}, "selfie_camera": {"$ref": "https://api.mobileapi.dev/schemas/selfiecamera.json"}, "sound": {"$ref": "https://api.mobileapi.dev/schemas/sound.json"}, "comms": {"$ref": "https://api.mobileapi.dev/schemas/comms.json"}, "features": {"$ref": "https://api.mobileapi.dev/schemas/features.json"}, "battery": {"$ref": "https://api.mobileapi.dev/schemas/battery.json"}, "misc": {"$ref": "https://api.mobileapi.dev/schemas/misc.json"}}}