outofcoffee / imposter

Scriptable, multipurpose mock server. Run standalone mock servers, or embed mocks within your tests.
https://imposter.sh
Other
374 stars 60 forks source link

Arrays in Stores Transformed Upon Retrieval #601

Closed daniel-klingensmith-jamf closed 3 months ago

daniel-klingensmith-jamf commented 4 months ago

After storing JSON containing an array in a store, it is transformed upon retrieving:

POST https://<lambda>.lambda-url.us-east-1.on.aws/system/store/test Input:

{
    "foo": [
        "bar"
    ]
}

GET https://<lambda>.lambda-url.us-east-1.on.aws/system/store/test Output:

{
    "foo": {
        "list": [
            "bar"
        ],
        "empty": false
    }
}

Using 3.44.1, also found issue on 3.35.1. Using imposter-awslambda.zip

outofcoffee commented 3 months ago

Hi @daniel-klingensmith-jamf, thank you for raising this. This should be fixed in v4.0.2.

daniel-klingensmith-jamf commented 2 months ago

I've verified this works in 4.0.3. Thank you!!!