-
-
Notifications
You must be signed in to change notification settings - Fork 878
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
remove trailing comma in JTD serialisation result, fixes #2001 #2028
Conversation
@piliugin-anton thank you! It needs the test that fails without this change. |
@epoberezkin should I write a test or you will do it? |
@piliugin-anton it's great if you can - probably should be something similar to this one: https://github.com/ajv-validator/ajv/blob/master/spec/issues/1501_jtd_many_properties.spec.ts |
@epoberezkin Okay, I will try. Will push the changes in an hour and ping you |
@epoberezkin How do I write a test, when I already have a changes that returns correct result of serialization. Could you please assist me? |
@epoberezkin Please check if test is correct |
amended in #2190 |
fixes #2001, #2171, #2181
What issue does this pull request resolve?
#2001
What changes did you make?
Added if condition to check whether property is first
Is there anything that requires more attention while reviewing?
Code correctness