forked from loafle/openapi-generator-original
Use non-batch mode in ensure-up-to-date (#4573)
* use non batch mode in ensure-up-to-date * update samples
This commit is contained in:
parent
c89d21a903
commit
de69eac316
@ -28,7 +28,7 @@ elif [ "$NODE_INDEX" = "2" ]; then
|
|||||||
git checkout -- .
|
git checkout -- .
|
||||||
|
|
||||||
# look for outdated samples
|
# look for outdated samples
|
||||||
./bin/utils/ensure-up-to-date --batch
|
./bin/utils/ensure-up-to-date
|
||||||
fi
|
fi
|
||||||
#elif [ "$NODE_INDEX" = "3" ]; then
|
#elif [ "$NODE_INDEX" = "3" ]; then
|
||||||
echo "Running node $NODE_INDEX to test haskell"
|
echo "Running node $NODE_INDEX to test haskell"
|
||||||
|
@ -137,6 +137,8 @@ class ApiClient {
|
|||||||
return client.delete(url, headers: headerParams);
|
return client.delete(url, headers: headerParams);
|
||||||
case "PATCH":
|
case "PATCH":
|
||||||
return client.patch(url, headers: headerParams, body: msgBody);
|
return client.patch(url, headers: headerParams, body: msgBody);
|
||||||
|
case "HEAD":
|
||||||
|
return client.head(url, headers: headerParams);
|
||||||
default:
|
default:
|
||||||
return client.get(url, headers: headerParams);
|
return client.get(url, headers: headerParams);
|
||||||
}
|
}
|
||||||
|
@ -350,6 +350,9 @@ func (c *APIClient) prepareRequest(
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) {
|
func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) {
|
||||||
|
if len(b) == 0 {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
if s, ok := v.(*string); ok {
|
if s, ok := v.(*string); ok {
|
||||||
*s = string(b)
|
*s = string(b)
|
||||||
return nil
|
return nil
|
||||||
|
@ -353,6 +353,9 @@ func (c *APIClient) prepareRequest(
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) {
|
func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) {
|
||||||
|
if len(b) == 0 {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
if s, ok := v.(*string); ok {
|
if s, ok := v.(*string); ok {
|
||||||
*s = string(b)
|
*s = string(b)
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user