API Action doesn't infer schema correctly from JSON input

Wappler 5.1.4
MacOS

API Action doesn’t infer schema correctly from JSON input

JSON to put in API Action (“Source” text area), click “Play” button to parse:

[{
    "id": 1,
    "Analysis": {
        "GlobalResults": [{
            "ValidRatio": 0.981,
            "Valid": true,
            "Results": [{
                    "mean": 0.426
                },
                {
                    "mean": 0.426
                },
                {
                    "mean": 0.426
                },
                {
                    "mean": 0.426
                },
                {
                    "mean": 0.425
                },
                {
                    "mean": 0.43
                },
                {
                    "mean": 0.43
                }
            ]
        }],
        "SampleNames": [
            "John"
        ]
    }
}]

Expected schema (excerpt)

Inferred schema

Notice “SampleNames” and “GlobalResults” are missing

This bug was initially caught on a more complex JSON source, the example above is a simplified, reproducible version of the bug. Once the fix is made I’ll test with the more complex JSON again