-
Notifications
You must be signed in to change notification settings - Fork 7
update auth openapi spec #283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| OPENAPI_GEN_VERSION := 7.13.0 | ||
| OPENAPI_GEN_IMAGE := openapitools/openapi-generator-cli:v$(OPENAPI_GEN_VERSION) | ||
|
|
||
| SPEC := resources/bluefin-api.yaml | ||
|
|
||
| DOCKER_RUN := docker run --rm -v $(CURDIR):/work -w /work $(OPENAPI_GEN_IMAGE) generate \ | ||
| --input-spec /work/$(SPEC) | ||
|
|
||
| .PHONY: generate generate-ts generate-py generate-rs version-bump help | ||
|
|
||
| # --- Code Generation --- | ||
|
|
||
| version-bump: ## Detect spec changes and bump SDK versions | ||
| python3 scripts/version_bump.py | ||
|
|
||
| generate: generate-ts generate-py generate-rs version-bump ## Generate all SDK clients | ||
|
|
||
| generate-ts: ## Generate TypeScript client | ||
| $(DOCKER_RUN) \ | ||
| --config /work/ts/sdk/openapitools.json \ | ||
| --generator-name typescript-axios \ | ||
| --output /work/ts/sdk/src | ||
|
|
||
| generate-py: ## Generate Python client | ||
| $(DOCKER_RUN) \ | ||
| --config /work/python/sdk/config.yaml \ | ||
| --generator-name python \ | ||
| --output /work/python/sdk/src | ||
|
|
||
| generate-rs: ## Generate Rust client | ||
| rm -rf rust/gen/bluefin_api | ||
| $(DOCKER_RUN) \ | ||
| --config /work/rust/gen/config.yaml \ | ||
| --generator-name rust \ | ||
| --output /work/rust/gen/bluefin_api | ||
|
|
||
| # --- Help --- | ||
|
|
||
| help: ## Show this help | ||
| @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-20s\033[0m %s\n", $$1, $$2}' | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| openapi: 3.0.3 | ||
| info: | ||
| title: Auth Common Schemas | ||
| version: v1 | ||
| description: Shared authentication schemas. | ||
| components: | ||
| responses: | ||
| DefaultError: | ||
| description: Unexpected error | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: "./common.yaml#/components/schemas/Error" | ||
| schemas: | ||
| LoginResponse: | ||
| type: object | ||
| required: | ||
| - accessToken | ||
| - accessTokenValidForSeconds | ||
| - refreshToken | ||
| - refreshTokenValidForSeconds | ||
| properties: | ||
| accessToken: | ||
| type: string | ||
| accessTokenValidForSeconds: | ||
| type: integer | ||
| format: int64 | ||
| x-go-type: int64 | ||
| refreshToken: | ||
| type: string | ||
| refreshTokenValidForSeconds: | ||
| type: integer | ||
| format: int64 | ||
| x-go-type: int64 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.