File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ FROM $DOCKER_IMAGE_BASE
19
19
ENV SRC_DIR=/blobber
20
20
ENV GO111MODULE=on
21
21
22
+ RUN apk --no-cache add yq
23
+
22
24
# Download the dependencies:
23
25
# Will be cached if we don't change mod/sum files
24
26
COPY ./go.mod ./go.sum $SRC_DIR/
Original file line number Diff line number Diff line change @@ -46,4 +46,6 @@ echo "3> Create swagger.yaml file."
46
46
docker run $platform $INTERACTIVE -v $( pwd) :/codecov $DOCKER_IMAGE_SWAGGER bash -c " \
47
47
cd /codecov/code/go/0chain.net/; \
48
48
swagger generate spec -w . -m -o swagger.yaml; \
49
+ sed -i '' " s/in\:\ form/in\:\ formData/g" ./swagger.yaml; \
50
+ yq -i '(.paths.*.*.parameters.[] | select(.in == " formData" ) | select(.type == " object" )).type = " file" ' swagger.yaml; \
49
51
swagger generate markdown -f swagger.yaml --output=swagger.md"
You can’t perform that action at this time.
0 commit comments