Skip to content

Commit

Permalink
Swap order on response description fallbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelspike committed Oct 4, 2024
1 parent 537873a commit f882c7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/spec/openapi/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,9 @@ function resolveResponse (fastifyResponseJson, produces, ref) {
const referenceJsonSchema = findReference(definitions, rawJsonSchema.$ref)

const response = {
description: referenceJsonSchema.description ||
resolved[xResponseDescription] ||
description: resolved[xResponseDescription] ||
rawJsonSchema.description ||
referenceJsonSchema.description ||
'Default Response'
}

Expand Down

0 comments on commit f882c7c

Please sign in to comment.