File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
FRONTIER_COMMIT := 553c3384828abfc7fa68d67fd04ac0b14520cb0a
2
- .PHONY : clean genclient genspec
2
+ .PHONY : clean gen-client gen-spec install-openapi-generator
3
3
4
- genclient : clean genspec # # Generate the client using openapi-generator
4
+ gen-client : clean gen-spec # # Generate the client using openapi-generator
5
5
@openapi-generator generate -g python -o " ." \
6
6
-i " ./etc/openapi.json" -c ./etc/openapi.conf.yaml \
7
7
--git-user-id raystack \
@@ -18,12 +18,13 @@ clean:
18
18
@rm -rf test __pycache__ docs frontier_api
19
19
@echo " > autogenerated files deleted"
20
20
21
- genspec : # # Generate the openapi v3 spec using raystack/frontier generated v2 spec
21
+ gen-spec : # # Generate the openapi v3 spec using raystack/frontier generated v2 spec
22
22
@echo " > generating openapiv3 spec"
23
23
@curl -X ' GET' \
24
24
'https://converter.swagger.io/api/convert?url =https%3A%2F%2Fraw.githubusercontent.com%2Fraystack%2Ffrontier%2F${FRONTIER_COMMIT}%2Fproto%2Fapidocs.swagger.yaml' \
25
25
-H 'accept: application/json' > ./etc/openapi.json
26
26
27
+ # # v7.0.1
27
28
install-openapi-generator : # # Install openapi-generator
28
29
@echo " > installing openapi-generator"
29
30
@curl https://raw.githubusercontent.com/Homebrew/homebrew-core/73338e79c4dffa794560535b642a2e0eccd78a9b/Formula/o/openapi-generator.rb > ./openapi-generator.rb
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ python-dateutil = ">= 2.7.0"
15
15
setuptools = " >= 21.0.0"
16
16
typing_extensions = " ^4.3.0"
17
17
urllib3 = " ~1.26.7"
18
+ pydantic = " ^1.10.5"
19
+ aenum = " ^3.1.0"
18
20
19
21
[build-system ]
20
22
requires = [" poetry-core" ]
You can’t perform that action at this time.
0 commit comments