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

Check for first property in generated code #2182

Closed
wants to merge 2 commits into from

Conversation

jkav77
Copy link

@jkav77 jkav77 commented Dec 18, 2022

What issue does this pull request resolve?
#2181 - compileSerializer fails with optional properties only

What changes did you make?
Added a failing test to demonstrate the bug.

Is there anything that requires more attention while reviewing?
No.

fixes #2171
fixes #2181
fixes #2001

@jkav77 jkav77 force-pushed the serialize-opt-props-only branch 2 times, most recently from 13466c2 to d7831b8 Compare December 20, 2022 22:39
@jkav77 jkav77 changed the title Add failing test Check for first property in generated code Dec 20, 2022
@jkav77 jkav77 marked this pull request as ready for review December 20, 2022 22:45
@jkav77
Copy link
Author

jkav77 commented Dec 20, 2022

I submitted jsontypedef/json-typedef-spec#15 to add tests for this edge case.

@jkav77
Copy link
Author

jkav77 commented Dec 22, 2022

Looks like this is a duplicate of #2028. I hadn't noticed that before. This is a bit cleaner solution, though...

@piliugin-anton
Copy link
Contributor

@epoberezkin This code looks better then mine (#2028), consider merge this PR instead

@epoberezkin
Copy link
Member

resolved by #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
3 participants