Skip to content

Crashes on iterator comparison #123

Description

@termontwouter

The comparison on init.py#L2927 crashes when comparing an iterator with an already listed one having the same fieldname. For example, in my case, both attr_row and attr have the following value:

{
  'type': 'iterable', 
  'iterator': '$.authorization_details[*]', 
  'attr_list': [
    {'type': 'reference', 'value': 'type', 'name': 'type'
    },
    {'type': 'reference', 'value': 'identifier', 'name': 'identifier'
    },
    {'type': 'reference', 'value': 'locations[*
      ]', 'name': 'location'
    },
    {'type': 'reference', 'value': 'actions[*
      ]', 'name': 'action'
    },
    {'type': 'reference', 'value': 'datatypes[*
      ]', 'name': 'datatype'
    },
    {'type': 'reference', 'value': 'privileges[*
      ]', 'name': 'privilege'
    }
  ], 
  'name': 'details'
}

Since this object clearly has no value property, the comparison fails when trying to access it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions