gabfssilva
07/25/2022, 3:53 PMreturning(
ResponseMeta(
description = "Created successfully",
response = Response(Status.CREATED).header("Location", "/api/v1/orders/${UUID.randomUUID()}"),
)
)
it properly identifies the response & also the status code, but it kind of ignores the Location
header in the API definition.
is it something I’m missing? is there another way to tell http4k contracts I’m returning a specific header so it can add to the openapi definition?
thanks in advance! 🙂org.http4k.contract.openapi.v3.ResponseContents
, it seems that we only consider the description & the body content, not the headers.
I may send a PR trying to also support headers for OpenApi3
dave
07/25/2022, 6:15 PMgabfssilva
07/25/2022, 6:53 PMdave
07/27/2022, 11:22 AM