Skip to content

Commit

Permalink
fix: enusre the creaion of unknown-interface ref schema when input is…
Browse files Browse the repository at this point in the history
… nil
  • Loading branch information
dylanhitt committed Jul 1, 2024
1 parent e223d43 commit 18a15d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ type schemaTag struct {

func schemaTagFromType[V any](s *Server, v any) schemaTag {
if v == nil {
s.getOrCreateSchema("unknown-interface", struct{}{})
return schemaTag{
name: "unknown-interface",
SchemaRef: openapi3.SchemaRef{
Expand Down

0 comments on commit 18a15d5

Please sign in to comment.