Demo application reproducing the issue described here.
To run, execute the command below from project's root directory:
./gradlew clean generateOpenApiDocs
Then check generate documentation in openapi.yaml:
components:
schemas:
Response:
type: object
properties:
bar:
type: boolean
description: Schema description (bar)
example: true
foo:
type: boolean
# description: Schema description (foo) -- missing
# example: true -- missing
description: Demo response object