Skip to content

Better validation error messages #1022

@barjin

Description

@barjin

After having vibecoded an Actor, the apify-cli push failed with a rather cryptic error:

Image

This is because the actor.json file contained the following object:

 "environmentVariables": {
    "KEY": { "secret": true } // this can only be a string
  }

Figuring this out took me some time, as the error message did not mention a filename / code location of the offending String.

Seeing something like Error in actor.json: environmentVariables.KEY - value must be of type string instead would have definitely helped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    t-toolingIssues with this label are in the ownership of the tooling team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions