-
-
Notifications
You must be signed in to change notification settings - Fork 644
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
Zod not working correcly in V3 schema #2927
Comments
Do you mind providing a simple project to reproduce it? a Github project would be great |
@farnabaz |
@farnabaz - Bug 1: NOT A BUG - Bug 2: I have created a project to reproduce it https://github.com/Phu1237/nuxt-content-demo Please help me to check it |
@farnabaz 1. The 2. Sometimes, the last line of markdown frontmatter will have ---
title: Example title
description: This is example description
badge:
image: /assets/images/coming-soon.jpg
tags:
- Example
published: true
createdAt: 2025-01-01 00:00
updatedAt: 2025-01-01 00:00
--- 3. When reading the code, I saw that you have added the Thank you for your hard work! |
@Phu1237 The issue with
|
@farnabaz As tested using Environment
ReproductionI have tested each commit and found out that it starts to happen from 8a9af69 The below result is tested by using My temporary fixReplace the code back to Please help me to check this |
@farnabaz Bugs:
Bugs (Fixed):
Good if have:
Not a bugs:
Thank you for your hard work! |
Thanks for summarizing the issue.
Does this happen in dev mode or the built version? If it's in dev mode could you try with the built version? |
@farnabaz Both throw the same error |
@Phu1237 Should be fixed in latest commit release |
@Phu1237 regarding Bun in docker could you provide a reproduction repo for it? 🙏 |
@farnabaz But I can provide you with this information first and I hope it will provide some useful information before I can provide a fully reproduction repo
Below is my screenshot Steps to reproduce (it error on both wsl and docker so I will provide this first):
Install directly using WSL from the beginning failed when running command at Step 3 as the same error below It seems like there is some problem with bun Linux only Refer:
I also verified this bug is fixed in new version |
Hi! I have create a reproduce repo for this: https://github.com/Phu1237/nuxt-content-docker |
Environment
Nuxt project info: 11:18:23 AM
Reproduction
Bugs:
1. order() not able to use the field in
schemas
2. z.boolean() result to numberr
0/1
not booleanfalse/ true
Describe the bug
1. Bug 1: order() not able to use the field in
schemas
When using order with field in schemas it show the below error
2. Bug 2: z.boolean() result to numberr
0/1
not booleanfalse/ true
Additional context
I also see that nuxt/content don't have any
total
attribute when get from collection so that I can't create paginate and skip() will be useless because it can't count and paginateLogs
The text was updated successfully, but these errors were encountered: