Skip to content

Commit

Permalink
When the return value defined by the @success tag is equal to a null …
Browse files Browse the repository at this point in the history
…value, make fixes to prevent a null pointer exception occurs (#1667)
  • Loading branch information
Shimizu1111 authored Oct 12, 2023
1 parent d23a84a commit 2da9651
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -918,6 +918,10 @@ func parseCombinedObjectSchema(parser *Parser, refType string, astFile *ast.File
return nil, err
}

if schema == nil {
schema = PrimitiveSchema(OBJECT)
}

props[keyVal[0]] = *schema
}
}
Expand Down

0 comments on commit 2da9651

Please sign in to comment.