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

[rust] Stop deriving Eq for models #3463

Merged
merged 1 commit into from
Jul 29, 2019
Merged

[rust] Stop deriving Eq for models #3463

merged 1 commit into from
Jul 29, 2019

Conversation

bjgill
Copy link
Contributor

@bjgill bjgill commented Jul 25, 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, ./bin/openapi3/{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\. If contributing template-only or documentation-only changes which will change sample output, be sure to build the project first.
  • Filed the PR against the correct branch: master, 4.1.x, 5.0.x. Default: master.
  • Copied the technical committee to review the pull request if your PR is targeting a particular programming language. @frol @farcaller

Description of the PR

It fails if the model contains a float, which don't implement Eq.

Fix for bug introduced in #3309.

We really need to improve the testing of the rust generator to catch this sort of mistake in future. I don't have time to do this now, though.

It fails if the model contains a float, which don't implement Eq.
@bjgill bjgill added this to the 4.1.0 milestone Jul 25, 2019
@bjgill bjgill changed the title Stop deriving Eq for models [rust] Stop deriving Eq for models Jul 25, 2019
@bjgill bjgill mentioned this pull request Jul 25, 2019
4 tasks
@bjgill
Copy link
Contributor Author

bjgill commented Jul 25, 2019

@antonafMSFT - this should be the fix for the issue you discovered. Please shout if this is not the fix you were expecting.

@bjgill
Copy link
Contributor Author

bjgill commented Jul 25, 2019

This really needs to be in 4.1.0, so I'll merge early next week unless anyone objects.

@bjgill bjgill merged commit c684505 into master Jul 29, 2019
@bjgill bjgill deleted the no-eq branch July 29, 2019 13:01
@wing328
Copy link
Member

wing328 commented Aug 10, 2019

@bjgill thanks for the PR, which has been included in the 4.1.0 release: https://twitter.com/oas_generator/status/1160000504455319553

bjgill added a commit to bjgill/openapi-generator that referenced this pull request Sep 25, 2019
To catch the problem found in OpenAPITools#3463 if it is ever encountered again
bjgill added a commit that referenced this pull request Sep 27, 2019
As we discovered in #3463, there are various bits of the rust client generator that are currently untested. This PR adds tests for various generator-specific types, and also files.

Follows the example of the rust-server generator for making it easy to add new test specs. This should make it easier for future contributors to make sure that their contributions are tested
Jesse0Michael pushed a commit to Jesse0Michael/openapi-generator that referenced this pull request Oct 3, 2019
As we discovered in OpenAPITools#3463, there are various bits of the rust client generator that are currently untested. This PR adds tests for various generator-specific types, and also files.

Follows the example of the rust-server generator for making it easy to add new test specs. This should make it easier for future contributors to make sure that their contributions are tested
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.

2 participants