Skip to content

Commit af80ca3

Browse files
zenovichfredbi
authored andcommitted
Preserve descriptions and tags of fields containing embedded structures
Signed-off-by: Dmitry Zenovich <dzenovich@gmail.com>
1 parent 720590f commit af80ca3

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

fixtures/bugs/3125/item.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package _3125
2+
3+
// swagger:model Item
4+
type Item struct {
5+
// Nullable value
6+
// required: true
7+
// Extensions:
8+
// ---
9+
// x-nullable: true
10+
Value1 *ValueStruct `json:"value1"`
11+
12+
// Non-nullable value
13+
// required: true
14+
// example: {"value": 42}
15+
Value2 ValueStruct `json:"value2"`
16+
}
17+
18+
type ValueStruct struct {
19+
Value int `json:"value"`
20+
}

0 commit comments

Comments
 (0)