-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
upgrade dart generator dependencies #9392
upgrade dart generator dependencies #9392
Conversation
cc @swipesight (2018/09) @jaumard (2018/09) @josh-burton (2019/12) @amondnet (2019/12) @sbu-WBT (2020/12) @kuhnroyal (2020/12) @agilob (2020/12) |
modules/openapi-generator/src/main/resources/dart2/pubspec.mustache
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to leave #8978 (comment) for consideration.
@agilob I am not sure if json_serializable
is still involved but as you noted previously, this will most likely be a breaking change.
modules/openapi-generator/src/main/resources/dart2/pubspec.mustache
Outdated
Show resolved
Hide resolved
modules/openapi-generator/src/main/resources/dart2/pubspec.mustache
Outdated
Show resolved
Hide resolved
We basically had the same discussion in #8978 - the question that remains is: Can we live with a breaking change (due to Dart 2.12.0 requirement) or do we create a new generator like I did with the dart-dio-next generator? |
modules/openapi-generator/src/main/resources/dart2/pubspec.mustache
Outdated
Show resolved
Hide resolved
agreed. breaking change in this generator will be new field in an annotation, one line change to fix, but it will require D2.12 |
Is this going to break a lot of other things? the whole nnbd, is it going to even compile with 2.12? |
Well, you can use Dart 2.12 without using NNBD. These changes are for now just Dart 2.12. |
modules/openapi-generator/src/main/resources/dart2/pubspec.mustache
Outdated
Show resolved
Hide resolved
modules/openapi-generator/src/main/resources/dart2/pubspec.mustache
Outdated
Show resolved
Hide resolved
This is starting to look like it may work, nice work @Adi1231234! @agilob The tests for <!--<module>samples/openapi3/client/petstore/dart2/petstore_json_serializable_client_lib_fake</module>--> All the other samples are compiling. That sadly doesn't mean everything will work at runtime :) We need some people to test this. |
yea, never managed to enable them as that generator was never finalized. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, in the current state, I believe this may work but I have not tested it. I suggest to not merge this before the 5.1.1 release. I think this should go into 5.2.0
Do I have to do anything else to get it into 5.2.0? |
I think you can just switch the target branch to 5.2.x and then it can be merged, might have to rebase. |
Thanks, I just did it, I would be happy if you could approve it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, was waiting with approve only so that @wing328 doesn't merge it into master.
Thanks for your work on this!
I'm guessing it's time to upgrade json_serializable after this gets in |
Yea, and NNBD :) |
Hi, I do not know so much how merges works here. but I noticed that the branch has not been marged. |
this PR will be closed after it's merged and you will receive a notification |
I am sure @wing328 was busy with the 5.1.1 release. This will be merged in the next few days, no worries. |
Thanks for the PR, which has been merged into master (upcoming 5.2.0 release) |
* follow up to OpenAPITools#9392 * `MultipartRequest(null, null)` is no longer valid after `http` package upgrade * fix petstore sample project not compiling * disable live petstore tests * use template to strip out unused code blocks
* Fix go-echo-server sample not running in CircleCI * remove wrong argument * [dart] Fix petstore sample tests & Multipart not working * follow up to #9392 * `MultipartRequest(null, null)` is no longer valid after `http` package upgrade * fix petstore sample project not compiling * disable live petstore tests * use template to strip out unused code blocks
* Fix go-echo-server sample not running in CircleCI * remove wrong argument * [dart] Fix petstore sample tests & Multipart not working * follow up to OpenAPITools#9392 * `MultipartRequest(null, null)` is no longer valid after `http` package upgrade * fix petstore sample project not compiling * disable live petstore tests * use template to strip out unused code blocks
upgrade dart generator dependencies