Skip to content

Structs error #350

@franelias

Description

@franelias

I have a struct like this

map[string]interface{}{
"changes": map[string]interface{}{"foo": "bar"},
}

Before version 1.11.0, i was able to assert boolean expressions like "changes.state in ["example"]", but now it throws

Expected nil, but got: &file.Error{Location:file.Location{Line:1, Column:15}, Message:"cannot use <nil> as index to map[string]struct {}", Snippet:"\n | changes.state in ["example"]\n | ...............^"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions