Skip to content

Commit

Permalink
some changes for future jsonschema code generator..
Browse files Browse the repository at this point in the history
  • Loading branch information
ksysoev committed Jul 25, 2023
1 parent 424458a commit 8aef1be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ prepare-schema:
git apply ../schema.patch && \
cd config/v3/ && \
mkdir schema && \
find . -type f | grep -v example | grep -v schema | sed 'p; s/^\./.\/schema/; s/\/send//; s/\/receive/_resp/g' | xargs -n2 cp -f
find . -type f | grep -v example | grep -v schema | sed 'p; s/^\./.\/schema/; s/\/send//; s/\/receive/_resp/; s/\.json//;' | xargs -n2 cp -f

generate-schema:
cd deriv-developers-portal/config/v3/schema && \
for file in *.json; do gojsonschema -p schema "$$file" > "../../../../schema/$${file%.*}.go"; done
for file in *; do gojsonschema -p schema "$$file" > "../../../../schema/$${file%.*}.go"; done

clean:
rm -rf deriv-developers-portal
Expand Down

0 comments on commit 8aef1be

Please sign in to comment.