Skip to content

test: assert failing validation still throws an error in nested maps #15472

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

Merged
merged 1 commit into from
Jun 10, 2025

Conversation

AbdelrahmanHafez
Copy link
Collaborator

Add test case re #15469 to assert that validation still throws an error when the path fails the validation.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a new test case to ensure that validation errors in nested maps are correctly thrown.

  • A new nested map schema is defined using a nested Schema with required fields.
  • A test case is added to assert that a missing required field in the nested map produces an appropriate validation error.

Copy link
Collaborator

@hasezoey hasezoey left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

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

Thanks 👍

@vkarpov15 vkarpov15 added this to the 8.15.2 milestone Jun 10, 2025
@vkarpov15 vkarpov15 merged commit 1e35e16 into master Jun 10, 2025
102 of 103 checks passed
@vkarpov15 vkarpov15 deleted the gh-15447 branch June 10, 2025 16:08
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.

3 participants