Skip to content

Commit

Permalink
fix nil panic check for typeSchema.Nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
hgiasac committed Aug 4, 2024
1 parent bcd40c9 commit c4c12b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openapi/internal/oas3_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (oc *oas3SchemaBuilder) getSchemaType(typeSchema *base.Schema, fieldPaths [

oneOfLength := len(typeSchema.OneOf)
if oneOfLength == 1 {
enc, ty, isRef, err := oc.getSchemaTypeFromProxy(typeSchema.OneOf[0], *typeSchema.Nullable, fieldPaths)
enc, ty, isRef, err := oc.getSchemaTypeFromProxy(typeSchema.OneOf[0], nullable, fieldPaths)
if err != nil {
return nil, nil, false, err
}
Expand Down

0 comments on commit c4c12b8

Please sign in to comment.