Apify and Crawlee Official Forum

Updated 3 months ago

Expected property `properties` to be of type `object` but received type `undefined` in object

So I setup my INPUT_SCHEMA.json under the .actor folder

Plain Text
 {
    "title": "....",
    "description": "....",
    "type": "object",
    "schemaVersion": 1,
    "properties": {
        "userPrompt": {
            "title": ".....",
            "type": "string",
            "description": ".....",
            "prefill": "...",
            "editor": "textarea"
        },
        "ignoreMain": {
            "title": "Ignore Main",
            "type": "boolean",
            "description": "Flag to ignore main content scraping",
            "prefill": true,
            "editor": "checkbox"
        },
        "data": {
            "title": "Data",
            "type": "array",
            "description": "Data containing ....",
            "editor": "json"
        }
    },
    "required": ["userPrompt", "ignoreMain", "data"]
}



but im getting this


here is my actor.json

Plain Text
{
    "actorSpecification": 1,
    "name": "get x",
    "version": "0.0",
    "buildTag": "latest",
    "input": {
        "schema": "INPUT_SCHEMA.json"
    },
    "environmentVariables": {
        "xApi": "x"
    }
}


when i run i get

build failed pop up
Attachment
image.png
Add a reply
Sign up and join the conversation on Discord