You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"PersonDto": {
"type": "object",
"properties": {
"salutation": {
"description": "The selected salutation with all available translations.",
"$ref": "#/definitions/LabelSetDto"
},
"position": {
"description": "The selected position with all available translations.",
"$ref": "#/definitions/LabelSetDto"
}
},
"description": "Person data for a specific charset."
}
PersonDto:
type: "object"properties:
salutation:
description: "The selected salutation with all available translations."$ref: "#/definitions/LabelSetDto"position:
description: "The selected position with all available translations.",$ref: "#/definitions/LabelSetDto"
Describe the bug you're encountering
The description provided for salutation is not rendered at the response body.
The text was updated successfully, but these errors were encountered:
Any keywords alongside $ref are ignored - that's how $ref works.
You need to wrap the $ref into allOf in order for the description to have effect:
PersonDto:
type: "object"properties:
salutation:
description: "The selected salutation with all available translations."allOf:
- $ref: "#/definitions/LabelSetDto"position:
description: "The selected position with all available translations.",allOf:
- $ref: "#/definitions/LabelSetDto"
Q&A (please complete the following information)
Content & configuration
Example Swagger/OpenAPI definition:
Describe the bug you're encountering
The description provided for salutation is not rendered at the response body.

The text was updated successfully, but these errors were encountered: