We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de34b88 commit f6889c0Copy full SHA for f6889c0
1 file changed
pkg/codegen/schema.go
@@ -705,8 +705,8 @@ func GenFieldsFromProperties(props []Property) []string {
705
// This comment has to be on its own line for godoc & IDEs to pick up
706
var deprecationReason string
707
if extension, ok := p.Extensions[extDeprecationReason]; ok {
708
- if extOmitEmpty, err := extParseDeprecationReason(extension); err == nil {
709
- deprecationReason = extOmitEmpty
+ if extDeprecationReason, err := extParseDeprecationReason(extension); err == nil {
+ deprecationReason = extDeprecationReason
710
}
711
712
0 commit comments