-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Introduce zod for server-side validations #4397
Merged
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
a6fa490
chore(server): use zod for validations
apoorv-mishra 83daab3
fix(server): use ctx.input for documents.list
apoorv-mishra 905844c
fix(server): schema for documents.archived
apoorv-mishra 302e898
fix(server): documents.deleted, documents.viewed & documents.drafts
apoorv-mishra 3459223
fix(server): documents.info
apoorv-mishra 096199f
fix(server): documents.export & documents.restore
apoorv-mishra e8a2214
fix(server): documents.search_titles & documents.search
apoorv-mishra 7d535ed
fix(server): documents.templatize
apoorv-mishra c1bc9df
fix(server): replace nullish() with optional()
apoorv-mishra 9b3f875
fix(server): documents.update
apoorv-mishra 9ea32ef
fix(server): documents.move
apoorv-mishra 24299c1
fix(server): remaining
apoorv-mishra 8e0ed73
fix(server): add validation for snippet min and max words
apoorv-mishra 2804f7f
fix(server): fix update types
apoorv-mishra a675997
fix(server): remove DocumentSchema
apoorv-mishra 17bbdd2
fix(server): collate duplicate schemas
apoorv-mishra 3627781
fix: typos
apoorv-mishra b82c22d
fix: reviews
apoorv-mishra 59161eb
Merge branch 'main' into refactor/4284/server-side-validatations
apoorv-mishra 0794450
chore: Fixed case of Metrics import
tommoor 9c9ff87
fix: restructure /api
apoorv-mishra 32ac3b8
fix: loosen validation for id as it can be a slug too
apoorv-mishra c90a00e
Merge branch 'refactor/4284/server-side-validatations' of github.com:…
tommoor 88fc614
Add test for query by slug
tommoor File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
import documents from "./documents"; | ||
|
||
export default documents; | ||
export { default } from "./documents"; |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Missed this! Thanks for adding 🙏