{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "additionalProperties": false,
    "description": "Version v4",
    "properties": {
        "query": {
            "type": "string"
        },
        "location": {
            "$ref": "/resources/schema/entity/v4/GeoPoint.json"
        },
        "routes": {
            "items": {
                "$ref": "/resources/schema/entity/v4/GeoPoint.json"
            },
            "type": "array"
        },
        "radius": {
            "type": "number"
        },
        "categories": {
            "items": {
                "type": "string"
            },
            "type": "array"
        },
        "offset": {
            "type": "number"
        },
        "limit": {
            "type": "number"
        },
        "context": {
            "type": "string"
        },
        "intent": {
            "$ref": "/resources/schema/entity/v4/Intent.json"
        },
        "sort": {
            "type": "string"
        },
        "api_key": {
            "type": "string"
        },
        "user_id": {
            "type": "string"
        },
        "locale": {
            "type": "string"
        },
        "additional_attributes": {
            "type": "boolean"
        },
        "additional_data": {
            "items": {
                "enum": ["FUEL_TYPE"]
            },
            "type": "array"
        }
    },
    "required": ["user_id"],
    "title": "EntitySearchRequest",
    "type": "object"
}