8 Commits

Author SHA1 Message Date
Josh Burton
2dd5477c24
[dart-dio] Adds support for generating inline enums (#5668)
* [dart-dio] Adds support for generating inline enums

Previously these were generated as strings if declared inline in the spec.

* Adds more detailed comment about inline enums
2020-05-14 21:11:27 +08:00
Josh Burton
04160dab3d
[dart-dio] Fixes --model-name-suffix having no effect (#5669)
Fixes #5409
2020-04-02 11:13:23 +08:00
Đào Hoàng Sơn
3a8e598ca2 [dart-dio] Various fixes (#5027)
* [dart-dio+time_machine] Add missing import, serializer

* [dart-dio] Remove bad import from `http` package

* [dart-dio] Use raw strings for those that contain variable name.

This should eliminate potential issue with variables like `$ref`.

* [dart-dio] Use `_path` instead of `path` to avoid potential conflict with op params.

See 1bec0b47b1/Kubernetes.json, there are a few with `{path}` param.

* [dart-dio+time_machine] Use `OffsetXxx` classes for date time values
2020-01-20 11:56:24 +08:00
Josh Burton
f48325ac45 [dart-dio] Fixes issues with DateTime import and form date paramaterToString function (#4929)
- due to the addition of the timemachine library, models were importing ‘DateTime’ when using the core library, which is not a valid import.

- the parameterToString function was copied from the dart2 generator and had some errors when some enums were classes.
2020-01-17 15:35:38 +08:00
William Cheng
ca6fb2c4f2 update dart samples 2019-12-27 16:49:02 +08:00
Josh Burton
9c46973bcb [dart-dio] Correctly handles import of Uint8List (#4313)
* [dart-dio] Correctly handles import of Uint8List

- updates dio and built_value dependencies

* [dart-dio] Updates sample
2019-10-30 15:33:26 +08:00
Ling Li
2d2a266d12 Fix conflict if swagger paramName is data (#4266)
* Fix conflict if swagger paramName is data

* Updated petstore as per PR requirements
2019-10-26 16:11:12 +08:00
Josh Burton
755a6f4445 Adds Dart Dio generator (#4018)
* Adds initial implemenation of dart-dio generator

* Adds remaining boilerplate for dart-dio generator
2019-10-15 21:05:38 +08:00