diff --git a/Makefile b/Makefile index 49c21bb..affd79e 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ FRONTIER_COMMIT := 553c3384828abfc7fa68d67fd04ac0b14520cb0a -.PHONY: clean genclient genspec +.PHONY: clean gen-client gen-spec install-openapi-generator -genclient: clean genspec ## Generate the client using openapi-generator +gen-client: clean gen-spec ## Generate the client using openapi-generator @openapi-generator generate -g python -o "." \ -i "./etc/openapi.json" -c ./etc/openapi.conf.yaml \ --git-user-id raystack \ @@ -18,12 +18,13 @@ clean: @rm -rf test __pycache__ docs frontier_api @echo " > autogenerated files deleted" -genspec: ## Generate the openapi v3 spec using raystack/frontier generated v2 spec +gen-spec: ## Generate the openapi v3 spec using raystack/frontier generated v2 spec @echo " > generating openapiv3 spec" @curl -X 'GET' \ 'https://converter.swagger.io/api/convert?url=https%3A%2F%2Fraw.githubusercontent.com%2Fraystack%2Ffrontier%2F${FRONTIER_COMMIT}%2Fproto%2Fapidocs.swagger.yaml' \ -H 'accept: application/json' > ./etc/openapi.json +## v7.0.1 install-openapi-generator: ## Install openapi-generator @echo " > installing openapi-generator" @curl https://raw.githubusercontent.com/Homebrew/homebrew-core/73338e79c4dffa794560535b642a2e0eccd78a9b/Formula/o/openapi-generator.rb > ./openapi-generator.rb diff --git a/pyproject.toml b/pyproject.toml index db6371f..e45ddb2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,6 +15,8 @@ python-dateutil = ">= 2.7.0" setuptools = ">= 21.0.0" typing_extensions = "^4.3.0" urllib3 = "~1.26.7" +pydantic = "^1.10.5" +aenum = "^3.1.0" [build-system] requires = ["poetry-core"]