Skip to content

Commit ac8d9e7

Browse files
committed
Fix incorrect media type example
1 parent 322c155 commit ac8d9e7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

design/types.go

+3
Original file line numberDiff line numberDiff line change
@@ -868,6 +868,9 @@ func (m *MediaTypeDefinition) projectSingle(view, canonical string) (p *MediaTyp
868868
return nil, nil, fmt.Errorf("view %#v on field %#v cannot be computed: %s", view, n, err)
869869
}
870870
at.Type = pr
871+
// Force example to be generated again
872+
// since set of attributes has changed
873+
at.Example = nil
871874
}
872875
projectedObj[n] = at
873876
}

0 commit comments

Comments
 (0)