Skip to content

Conversation

Copy link

Copilot AI commented Sep 13, 2025

  • Initial documentation improvement for exactOptional pipe behavior
  • Fixed accidentally committed .gitignore changes per maintainer feedback

This PR addresses review feedback from PR fabian-hiller#1304 to improve clarity in the exactOptional documentation regarding when pipe actions are executed.

Problem

The exactOptional documentation had an important note about pipe behavior that wasn't clear enough about the specific context where this behavior applies. The maintainer feedback indicated that it should clarify this only happens when using optional schemas with object schemas.

Solution

Updated the important note in exactOptional/index.mdx to match the clarity already present in optional/index.mdx:

Before:

> **Important**: When a key is missing and no `default_` value is provided, the schema's pipe (including transformations) will not be executed.

After:

> **Important**: When used in object schemas, if a key is missing and no `default_` value is provided, the schema's pipe (including transformations) will not be executed.

Impact

  • Both optional and exactOptional documentation now have consistent messaging
  • Users will better understand that this pipe behavior is specific to object schema contexts
  • Reduces potential confusion about when pipe actions execute

This is a documentation-only change that improves user understanding without affecting any functionality.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copilot AI added 2 commits September 11, 2025 21:46
- Add important notes about pipe execution for missing keys
- Explain that default values are required for pipe execution
- Improve clarity across optional, exactOptional, and guides
- Enhance understanding of transformation behavior
Copilot AI changed the title [WIP] Handle this thing @fabian-hiller/valibot/pull/1304 docs: clarify exactOptional pipe behavior applies to object schemas Sep 13, 2025
Copilot AI requested a review from Perdolique September 13, 2025 17:29
Copilot finished work on behalf of Perdolique September 13, 2025 17:29
Copilot AI requested a review from Perdolique September 13, 2025 17:34
Copilot finished work on behalf of Perdolique September 13, 2025 17:34
@Perdolique Perdolique closed this Sep 14, 2025
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