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

refactor: switch to upstream express-openapi #5259

Merged
merged 15 commits into from
Nov 6, 2023

Conversation

thomasheartman
Copy link
Contributor

@thomasheartman thomasheartman commented Nov 3, 2023

Switch the express-openapi implementation from our internal fork to the upstream version. We have upstreamed our changes and a new version has been released, so this should be the last step before we can retire our fork.

Because some of the dependencies have been updated since our internal fork, we also need to update some of our error handling to reflect this.

Copy link

vercel bot commented Nov 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 3, 2023 1:50pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Nov 3, 2023 1:50pm

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The updated deps were complaining that you can't use a nullable attribute without a type. But if you have no type, null is already a valid value, so that's all good!

};

// Sometimes, the error object contains a dataPath, even if it's not
type ActualErrorObject = ErrorObject & { dataPath?: string };
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's possible that the data that previously resided in dataPath is now available in instancePath, so I'll try to make a follow-up PR where I fix that.

@thomasheartman thomasheartman changed the title wip: switch express openapi refactor: switch to upstream express-openapi Nov 3, 2023
Copy link
Contributor

@andreas-unleash andreas-unleash left a comment

Choose a reason for hiding this comment

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

LG

@thomasheartman thomasheartman merged commit 78cf9d0 into main Nov 6, 2023
12 checks passed
@thomasheartman thomasheartman deleted the chore/switch-to-wesleytodd branch November 6, 2023 07:22
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