File tree Expand file tree Collapse file tree
internal/types/inboxready Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44cmd /mailgun /mailgun
55/.env
66
7- /internal /types /redocly-mailgun /
8-
7+ /internal /types /inboxready /inboxready.yaml
98/internal /types /inboxready /openapi_3.0.yaml
9+
10+ /internal /types /mailgun /mailgun.yaml
1011/internal /types /mailgun /openapi_3.0.yaml
Original file line number Diff line number Diff line change @@ -48,19 +48,24 @@ get-and-gen-models: get-openapi convert-openapi gen-models
4848
4949.PHONY : get-openapi
5050get-openapi :
51- cd $(TYPES_PATH ) && git clone --depth 1 git@github.com:mailgun/redocly-mailgun.git
51+ # https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun
52+ curl -o $(TYPES_PATH ) /mailgun/mailgun.yaml https://documentation.mailgun.com/_spec/docs/mailgun/api-reference/send/mailgun.yaml? download
53+ # https://documentation.mailgun.com/docs/inboxready/api-reference/optimize/inboxready
54+ curl -o $(TYPES_PATH ) /inboxready/inboxready.yaml https://documentation.mailgun.com/_spec/docs/inboxready/api-reference/optimize/inboxready.yaml? download
5255
5356# # Downgrade openapi 3.1 to 3.0
5457# this is one of the official ways to support OpenAPI 3.1:
5558# https://github.com/oapi-codegen/oapi-codegen?tab=readme-ov-file#does-oapi-codegen-support-openapi-31
5659# install openapi-down-convert:
5760# npm i -g @apiture/openapi-down-convert
61+ #
62+ # TODO(v6): switch to https://github.com/doordash-oss/oapi-codegen-dd instead?
5863.PHONY : convert-openapi
5964convert-openapi :
6065 # Mailgun Send
61- openapi-down-convert --input $(TYPES_PATH ) /redocly- mailgun/docs/ mailgun/api-reference/openapi-final .yaml --output $(TYPES_PATH ) /mailgun/openapi_3.0.yaml
66+ openapi-down-convert --input $(TYPES_PATH ) /mailgun/mailgun.yaml --output $(TYPES_PATH ) /mailgun/openapi_3.0.yaml
6267 # Mailgun Optimize
63- openapi-down-convert --input $(TYPES_PATH ) /redocly-mailgun/docs/ inboxready/api-reference/openapi-final .yaml --output $(TYPES_PATH ) /inboxready/openapi_3.0.yaml
68+ openapi-down-convert --input $(TYPES_PATH ) /inboxready/inboxready .yaml --output $(TYPES_PATH ) /inboxready/openapi_3.0.yaml
6469
6570# TODO(Go1.24): move into tools of go.mod(https://github.com/oapi-codegen/oapi-codegen?tab=readme-ov-file#for-go-124)?
6671# install oapi-codegen:
You can’t perform that action at this time.
0 commit comments