Skip to content

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