Skip to content
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

chore(open-api-patcher): remove missed /api-docs path when using cors #156

Merged
merged 3 commits into from
Nov 29, 2022

Conversation

cfuerst
Copy link
Collaborator

@cfuerst cfuerst commented Nov 26, 2022

Fixes #

When testing 0.0.151 on a real deployment, i saw that one trace is still in the export when using certain global cors settings for the ApiGateway.

Status quo on latest:

{"openapi":"3.0.1","info":{"title":"Default - Example RAD RestAPI","version":"2022-11-26T08:35:47Z"},"servers":[{"url":"https://q0f5v6zml3.execute-api.eu-west-1.amazonaws.com/{basePath}","variables":{"basePath":{"default":"v1"}}}],"paths":{"/public":{"options":{"responses":{"204":{"description":"204 response","headers":{"Access-Control-Allow-Origin":{"schema":{"type":"string"}},"Access-Control-Allow-Methods":{"schema":{"type":"string"}},"Access-Control-Allow-Headers":{"schema":{"type":"string"}}},"content":{}}}}},"/public/public":{"get":{"responses":{"200":{"description":"200 response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelloWorldResponseModel"}}}}}},"options":{"responses":{"204":{"description":"204 response","headers":{"Access-Control-Allow-Origin":{"schema":{"type":"string"}},"Access-Control-Allow-Methods":{"schema":{"type":"string"}},"Access-Control-Allow-Headers":{"schema":{"type":"string"}}},"content":{}}}}},"/api-docs":{"options":{"responses":{"204":{"description":"204 response","headers":{"Access-Control-Allow-Origin":{"schema":{"type":"string"}},"Access-Control-Allow-Methods":{"schema":{"type":"string"}},"Access-Control-Allow-Headers":{"schema":{"type":"string"}}},"content":{}}}}},"/":{"options":{"responses":{"204":{"description":"204 response","headers":{"Access-Control-Allow-Origin":{"schema":{"type":"string"}},"Access-Control-Allow-Methods":{"schema":{"type":"string"}},"Access-Control-Allow-Headers":{"schema":{"type":"string"}}},"content":{}}}}}},"components":{"schemas":{"HelloWorldResponseModel":{"title":"HelloWorldResponse","type":"object","properties":{"isError":{"type":"boolean"},"message":{"type":"string"}},"description":""}}}}

PR removes path: /api-docs

However works like charm thanks again for helping me out here to 💄 the swagger.ui 🙇

Cheers 🍻

cfuerst and others added 2 commits November 26, 2022 12:50
Signed-off-by: github-actions <github-actions@github.com>
@cfuerst cfuerst marked this pull request as ready for review November 29, 2022 11:42
@cfuerst cfuerst requested a review from pflorek November 29, 2022 11:42
Copy link
Member

@pflorek pflorek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀 @cfuerst

@mergify mergify bot merged commit b242d27 into main Nov 29, 2022
@mergify mergify bot deleted the chore/open-api-patcher/remove-api-docs-path branch November 29, 2022 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants