Skip to content

docs: fix zod example#735

Merged
pi0 merged 1 commit intoh3js:mainfrom
IsraelOrtuno:patch-2
Apr 23, 2024
Merged

docs: fix zod example#735
pi0 merged 1 commit intoh3js:mainfrom
IsraelOrtuno:patch-2

Conversation

@IsraelOrtuno
Copy link
Copy Markdown
Contributor

@IsraelOrtuno IsraelOrtuno commented Apr 19, 2024

🔗 Linked issue

❓ Type of change

  • 📖 Documentation (updates to the documentation, readme, or JSdoc annotations)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

Examples using Zod should be passing a callback to the validated reader functions instead of the schema object. This PR aligns the examples to be consistent with readValidatedBody (https://h3.unjs.io/utils/request#readvalidatedbodyevent-validate).

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@pi0 pi0 changed the title docs: pass callback to validated functions docs: fix zod example Apr 23, 2024
Copy link
Copy Markdown
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@pi0 pi0 merged commit 514a1fe into h3js:main Apr 23, 2024
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.

2 participants