-
-
Notifications
You must be signed in to change notification settings - Fork 740
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
Conversation
This is ignored for now, but will be made available in the next version of the package.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
… without type Luckily, even without it, `null` is a valid value.
src/lib/openapi/spec/patch-schema.ts
Outdated
There was a problem hiding this comment.
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 }; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG
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.