Skip to content

Commit 7149e88

Browse files
1 parent df83b40 commit 7149e88

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tools/cli/internal/openapi/filter/extension.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ func (f *ExtensionFilter) Apply() error {
9898
}
9999
}
100100
if f.oas.Tags != nil {
101-
updateExtensionsForTags(f.oas.Tags)
101+
updateExtensionsForTags(&f.oas.Tags)
102102
}
103103
if f.oas.Components != nil {
104-
updateExtensionsForComponents(*f.oas.Components)
104+
updateExtensionsForComponents(f.oas.Components)
105105
}
106106
return nil
107107
}
@@ -123,7 +123,7 @@ func updateExtensionToDateString(extensions map[string]any) {
123123
}
124124
}
125125

126-
func updateExtensionsForComponents(components openapi3.Components) {
126+
func updateExtensionsForComponents(components *openapi3.Components) {
127127
for _, schema := range components.Schemas {
128128
if schema != nil {
129129
deleteIpaExceptionExtension(schema.Extensions)
@@ -174,8 +174,8 @@ func updateExtensionsForComponents(components openapi3.Components) {
174174
}
175175
}
176176

177-
func updateExtensionsForTags(tags openapi3.Tags) {
178-
for _, tag := range tags {
177+
func updateExtensionsForTags(tags *openapi3.Tags) {
178+
for _, tag := range *tags {
179179
if tag != nil {
180180
deleteIpaExceptionExtension(tag.Extensions)
181181
}

0 commit comments

Comments
 (0)