Hello, a bit of newbie to this but would you know ...
# http4k
r
Hello, a bit of newbie to this but would you know if returning of the first element in the contract has been resolved or still an outstanding issue or am I just doing it wrong 😅:
Copy code
returning(ResponseMeta("some desc", Response(Status.OK)
                    .with(Body.auto<ObjectA>().toLens() of ObjectA(
                        "id",
                            listOf(ObjectB("sourceA", listOf(ObjectC("EMAIL", true), ObjectC("POST", false))),
                                    ObjectB("sourceB", listOf(ObjectC("EMAIL", true), ObjectC("POST", false))),
                                    ObjectB("sourceC", listOf(ObjectC("EMAIL", true), ObjectC("POST", false))))
                    ))))
returns in the swagger:
Copy code
{
  "id": "id",
  "ObjectB": [
    {
      "entity": "sourceA",
      "consents": [
        {
          "consentType": "EMAIL",
          "consentAllowed": true
        }
      ]
    }
  ]
}
I am using version
3.182.0
of the library. Thanks