Skip to content

Conversation

@cognifloyd
Copy link
Contributor

@cognifloyd cognifloyd commented Oct 13, 2018

Allow code generators to support the nullable property in the 3.0.0, 3.0.1, and 3.0.2 specs.

This does not actually add support to any languages; it just exposes nullable so the generators can use this standard feature.

Requires: swagger-api/swagger-codegen/pull/8809 merged

@cognifloyd
Copy link
Contributor Author

I just noticed some changes from openapi-generator. Apparently I neglected to add nullable to parameter.
Relevant changes:

I will add a similar change to parameter as well, and reference the author in the commit message.

@cognifloyd cognifloyd changed the title Add nullable property support Add nullable property support from OAS 3.0 spec Oct 13, 2018
@HugoMario
Copy link
Contributor

hey @cognifloyd i already merged your PR. Can you please update this one? or give me write access to your fork and i can help you with that.

Requires: swagger-api/swagger-codegen#8809

When I wrote this, I missed the changes on CodegenParameter and I had
some unnecessary changes on CodegenModel. I realized my mistake when I
went to add a similar change to openapi-generator and saw it was already
there, and they knew more about what to do than I did.

So, this is based in part on work by wing328 and jmini
- OpenAPITools/openapi-generator#873
- OpenAPITools/openapi-generator#889
- OpenAPITools/openapi-generator#930
@cognifloyd
Copy link
Contributor Author

@HugoMario updated. Now Jenkins is happy.

@HugoMario
Copy link
Contributor

thanks a lot @cognifloyd !!!

@HugoMario HugoMario merged commit 3c8f7a3 into swagger-api:master Dec 19, 2018
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

Successfully merging this pull request may close these issues.

2 participants