Skip to content

Conversation

@wing328
Copy link
Member

@wing328 wing328 commented Jan 5, 2019

PR checklist

  • Read the contribution guidelines.
  • Ran the shell script under ./bin/ to update Petstore sample so that CIs can verify the change. (For instance, only need to run ./bin/{LANG}-petstore.sh and ./bin/security/{LANG}-petstore.sh if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in .\bin\windows\.
  • Filed the PR against the correct branch: master, 3.4.x, 4.0.x. Default: master.
  • Copied the technical committee to review the pull request if your PR is targeting a particular programming language.

Description of the PR

  • add serialization test
  • fix nullable required property in the constructor
  • update EmitDefaultValue for nullable required property

cc @mandrean (2017/08) @jimschubert (2017/09)

@auto-labeler
Copy link

auto-labeler bot commented Jan 5, 2019

👍 Thanks for opening this issue!
🏷 I have applied any labels matching special text in your issue.

The team will review the labels and make any necessary changes.

@wing328 wing328 added this to the 4.0.0 milestone Jan 5, 2019
@wing328 wing328 merged commit 8f561f1 into master Jan 5, 2019
@wing328 wing328 deleted the csharp-nullable-property branch January 5, 2019 10:54
@jimschubert
Copy link
Member

Looks good!

A-Joshi pushed a commit to ihsmarkitoss/openapi-generator that referenced this pull request Feb 27, 2019
…nAPITools#1819)

* add serialization test, fix nulllable reuqired

* remove vs folder
wing328 pushed a commit that referenced this pull request Mar 30, 2019
* Added nullable-type support to CSharpClientCodegen

Overrode getNullableType method
Added non-nullable type varients to 'typeMapping' collection
Removed nullable type shorthand from api template

* Added testcase for nullable support

Set Integer property to not be nullable. Expect no '?' in baseType
Set String property to be nullable. Expect no '?' in baseType

* Implemented changes to 'csharp' generator from PR #1819.
wing328 pushed a commit that referenced this pull request Mar 30, 2019
* Added nullable support to aspnetcore server

* Regenerated aspnetcore Petstore sample

* Implemented changes based on #1819.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants