summaryrefslogtreecommitdiffstats
path: root/tpl/openapi/openapi3/openapi3.go
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/openapi/openapi3/openapi3.go')
-rw-r--r--tpl/openapi/openapi3/openapi3.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tpl/openapi/openapi3/openapi3.go b/tpl/openapi/openapi3/openapi3.go
index 31d56289e..74c731f02 100644
--- a/tpl/openapi/openapi3/openapi3.go
+++ b/tpl/openapi/openapi3/openapi3.go
@@ -16,7 +16,7 @@ package openapi3
import (
"fmt"
- "io/ioutil"
+ "io"
gyaml "github.com/ghodss/yaml"
@@ -74,7 +74,7 @@ func (ns *Namespace) Unmarshal(r resource.UnmarshableResource) (*OpenAPIDocument
}
defer reader.Close()
- b, err := ioutil.ReadAll(reader)
+ b, err := io.ReadAll(reader)
if err != nil {
return nil, err
}