-
-
Notifications
You must be signed in to change notification settings - Fork 635
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! |
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: