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

gson parser doesn't insert optional parameters. #676

Closed
mr83-uw opened this issue May 17, 2021 · 2 comments
Closed

gson parser doesn't insert optional parameters. #676

mr83-uw opened this issue May 17, 2021 · 2 comments

Comments

@mr83-uw
Copy link

mr83-uw commented May 17, 2021

When I add the optional parameters for the gson parser, nothing happens. When I look at the source code, it appears that the gson parser is not setup to look for the optionalProperties flag.

optionalProperties = 'all'
optionalPropertiesDeclaration = 'questionMark'

@vojtechhabarta
Copy link
Owner

I implemented this in 0841f94. Gson parser now supports optional properties in a same way as other parsers. So not only optionalProperties set to all but also useLibraryDefinition (same as all in case of Gson) and also useSpecifiedAnnotations. Here is a description: optionalProperties.

@vojtechhabarta
Copy link
Owner

Released in v2.32.889.

mohasarc pushed a commit to mohasarc/typescript-generator that referenced this issue Jun 24, 2021
mohasarc pushed a commit to mohasarc/typescript-generator that referenced this issue Jun 24, 2021
mohasarc pushed a commit to mohasarc/typescript-generator that referenced this issue Jun 24, 2021
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

No branches or pull requests

2 participants