Skip to content

dart codegen improvements#3440

Merged
wing328 merged 13 commits intoswagger-api:masterfrom
close2:dev
Jul 23, 2016
Merged

dart codegen improvements#3440
wing328 merged 13 commits intoswagger-api:masterfrom
close2:dev

Conversation

@close2
Copy link
Copy Markdown
Contributor

@close2 close2 commented Jul 22, 2016

generated library has better exceptions, type conversion is better (/fixed), dart strong mode is enabled, petstore test is refactored and now looks like a real project (generated lib in a different directory) (this more or less closes #3334)

I have not split the test into 2 projects for browser and vm because dart will support creating libraries which support browser and vm at the same time soon.

d3v-cl and others added 13 commits July 13, 2016 15:44
don't assume query params are Strings or List<String>s
type is Iterable, not List

only check params for != null if they haven't been checked already

add some casts to make strong mode happy

update petstore
move petstore client into subdirectory and reference
generated libraries using path in pubspec.yaml
The new layout resembles a real project.

petstore test is now strong mode compatible.
find pets by tag call is deprecated and returns 500

generated library is now strong mode compatible
@wing328
Copy link
Copy Markdown
Contributor

wing328 commented Jul 23, 2016

@close2 thanks for the PR ( 👍 to comments in the code and explanation of the change)

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.

dart codegen: add a vm bash script and proper argument for dart vm creation

4 participants