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
1919ENV SRC_DIR=/blobber
2020ENV GO111MODULE=on
2121
22+ RUN apk --no-cache add yq
23+
2224# Download the dependencies:
2325# Will be cached if we don't change mod/sum files
2426COPY ./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."
4646docker run $platform $INTERACTIVE -v $( pwd) :/codecov $DOCKER_IMAGE_SWAGGER bash -c " \
4747cd /codecov/code/go/0chain.net/; \
4848swagger 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; \
4951swagger generate markdown -f swagger.yaml --output=swagger.md"
You can’t perform that action at this time.
0 commit comments