Swagger supports different content types in the response like this:
/health:
get:
responses:
'200':
description: Successful response
content:
text/plain:
schema:
type: string
enum: ['UP','DOWN']
Currently it is not possible to define a response like this with fastify-swagger.