Skip to content

Array/List values are not resolved as expected #82

@barinali

Description

@barinali

Describe the Bug

Array/List values are not resolved as expected. Currently, a variable with a value of ["1", 1, { "test": { "sample": 123 } }] is resolved as below.

The problems I can observe;

  • type is Context, but should have been List
  • First two entries that are "1" and 1 are omitted, but should have been preserved and resolved accordingly
  • isList flag is missing
{
    "name": "arrayValue",
    "provider": [
        null
    ],
    "type": "Context",
    "info": "",
    "entries": [
        {
            "entries": [
                {
                    "atomicValue": 123,
                    "entries": [],
                    "type": "Number",
                    "info": "123",
                    "name": "sample",
                    "detail": "Number"
                }
            ],
            "type": "Context",
            "info": "",
            "name": "test",
            "detail": "Context"
        }
    ],
    "detail": "Context"
}

Steps to Reproduce

  1. Create an input/output mapping
  2. Enable FEEL expressions
  3. Provide a value like ["1", 1, { "test": { "sample": 123 } }]

Expected Behavior

variable-resolver resolves this variable with type=List and isList=true (?) and its entries accordingly without omitting sub-values and their schema.

Environment

  • Library version: main, cover-null-variable-type

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogQueued in backlogbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions