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

Add test case for undefined first optionalProperty #15

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

Conversation

jkav77
Copy link

@jkav77 jkav77 commented Dec 20, 2022

These test cases address the special case of comma placement when serializing the first optional property. A comma must be placed before every optionalProperty except for the first one. This is an error-prone edge case because the first optionalProperty may not be defined. These tests trigger previously untested behavior for this edge case to prevent issues like ajv-validator/ajv#2181 or ajv-validator/ajv#2171.

Please advise if I can make any adjustments.

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.

1 participant