Skip to content

Conversation

@jmini
Copy link
Member

@jmini jmini commented Aug 30, 2018

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.3.x, 4.0.x. Default: master.
  • Copied the technical committee to review the pull request if your PR is targeting a particular programming language. @OpenAPITools/generator-core-team @OpenAPITools/openapi-generator-collaborators

Description of the PR

As discussed #889 (comment), the implementation proposed in #889 needs to be adapted.

Swagger-Parser is doing the conversion from x-nullable OASv2 to nullable OASv3.
See an example in swagger-api/swagger-parser#810.

This PR removes reading x-nullable extension from our code, because the extension will only be available in OASv3. In v3 having them make no sense as pointed out by @wing328.

There is still an open issue: swagger-api/swagger-parser#820 to have the formData parameter handled in swagger. I added a reference in near to the commented unit-test.

@jmini jmini mentioned this pull request Aug 30, 2018
4 tasks
@jmini jmini merged commit f987306 into OpenAPITools:master Aug 30, 2018
@jmini jmini added this to the 3.2.3 milestone Aug 30, 2018
bjgill added a commit that referenced this pull request Sep 3, 2018
* Restore support for nullable in rust-server

Accounts for changes in #930. Adds a nullable field to the sample to reduce the risk of this regressing again in future.

* Add test for required nullable field
cognifloyd added a commit to cognifloyd/swagger-codegen that referenced this pull request Oct 13, 2018
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 added a commit to cognifloyd/swagger-codegen-generators that referenced this pull request Oct 13, 2018
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 added a commit to cognifloyd/swagger-codegen that referenced this pull request Oct 13, 2018
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 added a commit to cognifloyd/swagger-codegen-generators that referenced this pull request Dec 19, 2018
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 added a commit to cognifloyd/swagger-codegen-generators that referenced this pull request Dec 19, 2018
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
A-Joshi pushed a commit to ihsmarkitoss/openapi-generator that referenced this pull request Feb 27, 2019
A-Joshi pushed a commit to ihsmarkitoss/openapi-generator that referenced this pull request Feb 27, 2019
* Restore support for nullable in rust-server

Accounts for changes in OpenAPITools#930. Adds a nullable field to the sample to reduce the risk of this regressing again in future.

* Add test for required nullable field
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