OpenApi / responses / links
besir opened this issue · comments
Hello, I am using Apitte in version 0.10.2
and I tried to add links between endpoints in OpenApi and I can't, or I don't know correct way.
My knowledge of links in OpenApi is based on this docs https://swagger.io/docs/specification/links/
I don't receive the links in response from server.
My annotation looks like this:
/**
* @Path("/create-challenge")
* @Method("GET")
*
* @OpenApi("
* summary: Creating new LNURL auth challenge
* description: '....'
* operationId: createChallenge
* tags:
* - lnurl
* responses:
* '200':
* description: Successfully created challenge
* links:
* DoSubmitChallenge:
* operationId: submitChallenge
* parameters:
* k1: '$response.body#/k1'
* description: Foo
* content:
* application/json:
* example: "..."
* default:
* description: unexpected error
* content:
* application/json:
* example: {'status': 'error', 'reason': 'error details...'}
* ")
*/
THX for help