File tree 3 files changed +13
-14
lines changed
.schema/openapi/templates/go
3 files changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ package {{packageName}}
5
5
import (
6
6
"bytes"
7
7
"context"
8
- "io/ioutil "
8
+ "io"
9
9
"net/http"
10
10
"net/url"
11
11
{ {#imports} } "{ {import} }"
@@ -243,7 +243,7 @@ func (a *{{{classname}}}Service) {{nickname}}Execute(r {{#structPrefix}}{{&class
243
243
}
244
244
{ {/required} }
245
245
if localVarFile != nil {
246
- fbs, _ := ioutil .ReadAll(localVarFile)
246
+ fbs, _ := io .ReadAll(localVarFile)
247
247
localVarFileBytes = fbs
248
248
localVarFileName = localVarFile.Name()
249
249
localVarFile.Close()
@@ -321,9 +321,9 @@ func (a *{{{classname}}}Service) {{nickname}}Execute(r {{#structPrefix}}{{&class
321
321
return {{#returnType} }localVarReturnValue, { {/returnType} }localVarHTTPResponse, err
322
322
}
323
323
324
- localVarBody, err := ioutil .ReadAll(localVarHTTPResponse.Body)
324
+ localVarBody, err := io .ReadAll(localVarHTTPResponse.Body)
325
325
localVarHTTPResponse.Body.Close()
326
- localVarHTTPResponse.Body = ioutil .NopCloser(bytes.NewBuffer(localVarBody))
326
+ localVarHTTPResponse.Body = io .NopCloser(bytes.NewBuffer(localVarBody))
327
327
if err != nil {
328
328
return {{#returnType} }localVarReturnValue, { {/returnType} }localVarHTTPResponse, err
329
329
}
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ import (
14
14
"encoding/pem"
15
15
"fmt"
16
16
"io"
17
- "io/ioutil"
18
17
"net/http"
19
18
"net/textproto"
20
19
"os"
@@ -178,7 +177,7 @@ func (h *HttpSignatureAuth) loadPrivateKey() (err error) {
178
177
err = file.Close()
179
178
} ()
180
179
var priv []byte
181
- priv, err = ioutil .ReadAll(file)
180
+ priv, err = io .ReadAll(file)
182
181
if err != nil {
183
182
return err
184
183
}
Original file line number Diff line number Diff line change @@ -16,14 +16,14 @@ services:
16
16
restart : on-failure
17
17
networks :
18
18
- intranet
19
- kratos-selfservice-ui-node :
20
- image : oryd/kratos-selfservice-ui-node:v0.10.1
21
- environment :
22
- - KRATOS_PUBLIC_URL=http://kratos:4433/
23
- - KRATOS_BROWSER_URL=http://127.0.0.1:4433/
24
- networks :
25
- - intranet
26
- restart : on-failure
19
+ # kratos-selfservice-ui-node:
20
+ # image: oryd/kratos-selfservice-ui-node:v0.10.1
21
+ # environment:
22
+ # - KRATOS_PUBLIC_URL=http://kratos:4433/
23
+ # - KRATOS_BROWSER_URL=http://127.0.0.1:4433/
24
+ # networks:
25
+ # - intranet
26
+ # restart: on-failure
27
27
kratos :
28
28
depends_on :
29
29
- kratos-migrate
You can’t perform that action at this time.
0 commit comments