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

doc fixes #12738

Merged
merged 3 commits into from Nov 30, 2022
Merged

doc fixes #12738

merged 3 commits into from Nov 30, 2022

Conversation

IslandRhythms
Copy link
Collaborator

No description provided.

@IslandRhythms IslandRhythms linked an issue Nov 29, 2022 that may be closed by this pull request
2 tasks
@@ -502,6 +502,8 @@ describe('validation docs', function() {
// When running in `validate()` or `validateSync()`, the
// validator can access the document using `this`.
// Does **not** work with update validators.
// use this.get('name') to prevent this error
// if (this.name === undefined) this.name = this.get('name')
Copy link
Collaborator

Choose a reason for hiding this comment

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

No need for the line 506 comment. Just make line 507 use this.get('name').toLowerCase()

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'll need to remove the assertion at the bottom then with the comments since it won't happen anymore if thats good with you.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah that's fine. We should show the approach that works rather than the approach that doesn't :)

@vkarpov15 vkarpov15 merged commit aaf719a into master Nov 30, 2022
@vkarpov15 vkarpov15 deleted the IslandRhythms/validation-doc-fix branch November 30, 2022 17:57
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.

Update validators
2 participants