Skip to content

OpenAPI Mocking using body as array and reuse inside response #750

@AteDev

Description

@AteDev

Hello, i'm facing an issue when using body array, see example below

Openapi
test.yaml.txt

related part : bar: "{{request.body/0/foo/bar}}"

http://localhost:8080/rest/Test/1.0/resources/v1/test with POST method

body as json content-type
[{"foo":{"bar":123},"quantity":1}]

result :
{ "status": "OK", "items": [ { "status": "OK", "request": { "body": { "foo": { "bar": "null" }, "quantity": "null" }, "response": { "httpStatus": 200, "body": { "foo": { "bar": "null" }, "date": "2023/02/06" } } } } ] }

i was unable to reuse body value, what did i do wrong ?

microcks v 1.6.1

See #749

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions