diff --git a/openapi/schema.go b/openapi/schema.go index 2e8b5b4..4a6f87f 100644 --- a/openapi/schema.go +++ b/openapi/schema.go @@ -208,7 +208,7 @@ func generateSchemaRecursive(t reflect.Type, seen map[string]bool) *openapi3.Sch return nil } return &openapi3.SchemaRef{ - Value: openapi3.NewArraySchema().WithItems(elemSchema), + Value: openapi3.NewArraySchema().WithItems(elemSchema.Value), } case reflect.Map: