Skip to content

Improve Error Handling by proving path to error in JSON. #428

@BloodWorkXGaming

Description

@BloodWorkXGaming

It would be very helpful to get the path in the json provided to where the error is coming from.
e.g. when I pass a number where there should be an object, I get the error: "applyeach not applicable for JSON.LazyValue{String} with JSON type = JSONTypes.NUMBER".
(if I pass "percent": 0.1 instead of "percent": {"value": 0.1})

It would be much better, if a path to the error is added, like "applyeach not applicable for JSON.LazyValue{String} with JSON type = JSONTypes.NUMBER at /path/to/percent ".

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions