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

remove trailing comma in JTD serialisation result, fixes #2001 #2028

Closed
wants to merge 6 commits into from

Conversation

piliugin-anton
Copy link
Contributor

@piliugin-anton piliugin-anton commented Jul 7, 2022

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

@epoberezkin
Copy link
Member

@piliugin-anton thank you!

It needs the test that fails without this change.

@piliugin-anton
Copy link
Contributor Author

@epoberezkin should I write a test or you will do it?

@epoberezkin
Copy link
Member

@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

@piliugin-anton
Copy link
Contributor Author

@epoberezkin Okay, I will try. Will push the changes in an hour and ping you

@piliugin-anton
Copy link
Contributor Author

piliugin-anton commented Jul 9, 2022

@epoberezkin How do I write a test, when I already have a changes that returns correct result of serialization. Could you please assist me?

@piliugin-anton
Copy link
Contributor Author

@epoberezkin Please check if test is correct

@epoberezkin epoberezkin changed the title fixes #2001 remove trailing comma in JTD serialisation result, fixes #2001 Nov 13, 2022
@epoberezkin epoberezkin added this to the 8.12 milestone Nov 13, 2022
@epoberezkin
Copy link
Member

amended in #2190

@epoberezkin epoberezkin closed this Jan 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Comma in serialization result
2 participants