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

Update content-collections.mdx #10362

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update content-collections.mdx #10362

wants to merge 1 commit into from

Conversation

f33w
Copy link
Contributor

@f33w f33w commented Dec 13, 2024

.default() custom validation in zod triggers error

The error occurs only using referenced collection. I made a demo:
https://stackblitz.com/edit/github-e7qgsrxj?file=dist%2Fpost%2Findex.html

My discord:
twel

Copy link

netlify bot commented Dec 13, 2024

Deploy Preview for astro-docs-2 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit ca62b74
🔍 Latest deploy log https://app.netlify.com/sites/astro-docs-2/deploys/675c24cd314a0a00083a4c97
😎 Deploy Preview https://deploy-preview-10362--astro-docs-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@astrobot-houston
Copy link
Contributor

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File Note
en/guides/content-collections.mdx Source changed, localizations will be marked as outdated.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

@sarah11918
Copy link
Member

Thanks for letting us know about this! I will ask @ascorbic to take a look and let us know if this is expected behaviour that should be documented, or unexpected behaviour that should instead be fixed in collections! (We don't update docs for e.g. bug fixes, we fix those! So I'll let Matt give us some guidance here.)

@ascorbic
Copy link
Contributor

Is reference().default() something that previously worked? I'm not sure what it's meant to be achieving.

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.

4 participants