Commit Graph

50 Commits

Author SHA1 Message Date
Vladimir Shefer 321e4021be Format response type in Swift
Now not only the class name could be the response type, but also array type. So `-> Single<A[]>` should be formated as -> Single<[A]>
2020-07-16 15:39:23 +03:00
Victor Shabanov 15a7ce9ed4 Fix protocol method declaration for swift module 2019-10-17 15:40:59 +03:00
Victor Shabanov b47d064fe9 Add public visibility for swift module 2019-10-17 15:19:04 +03:00
Ivan Babkin 5032239132 Fixed copyWithout method and decimal encoding 2019-05-21 15:28:54 +03:00
Ivan Babkin e023fed90a Fixed NumberFormattingService, bugfix 2019-05-16 13:18:56 +03:00
Ivan Babkin 649089d79e Added ApiNumberFormattingService template, fixed complex field decoding 2019-04-29 17:11:12 +03:00
Ivan Babkin 0f8e26f39b Fixed indents 2019-04-26 16:27:47 +03:00
Ivan Babkin 7624fa7e27 Removed not optional fields from copyWithout and refactoring 2019-04-26 15:42:27 +03:00
Ivan Babkin 7e67644c9f Added new field types 2019-04-25 22:12:08 +03:00
Ivan Babkin 8bf0208187 Added additionalValidStatusCodes parameter to method calling 2019-04-23 17:35:56 +03:00
Ivan Babkin fb309f5955 Added additional valid status codes parameter to request methods 2019-04-23 12:13:47 +03:00
Artur Azarau ad97e4e110 fixes 2019-01-30 16:34:11 +03:00
Artur Azarau e7800f2f43 network requests were made deferred 2019-01-30 15:21:00 +03:00
Anton Popkov 36056b8d34 Network service lazy request generation 2018-12-26 16:12:52 +03:00
Madhas 254516312a method declaration 2018-12-20 16:19:03 +03:00
Ivan Smolin d3f96b0e45 use Swift 4.2 CaseIterable. escape "operator" keyword 2018-11-30 20:00:50 +03:00
Ivan Smolin 81163c14b3 add copyWithout method to classes 2018-10-30 15:37:32 +03:00
Madhas f6a16720bd add 'allItems' field for all enums 2018-05-25 16:41:51 +03:00
Madhas 61be799de7 correct methods and network service generation 2018-05-23 20:58:22 +03:00
Madhas 56f70e1788 generate encode(to:) method 2018-05-23 20:48:40 +03:00
Madhas 72673f1b5d correct decoder initialization block 2018-05-22 14:57:31 +03:00
Madhas e63da8af25 make coding keys private 2018-05-21 19:03:07 +03:00
Madhas a7f7a3bb5c init fields from decoder block added 2018-05-21 19:02:54 +03:00
Madhas 8cb2a048a8 correct coding keys 2018-05-21 15:25:12 +03:00
Madhas 16b844a9b1 coding keys block corrected 2018-05-21 15:15:15 +03:00
Madhas 4d3a7c7b24 object mapper mapping blocks removed 2018-05-21 14:44:18 +03:00
Madhas 586a207eda coding keys block added 2018-05-21 14:41:28 +03:00
Madhas b034a49ab4 encode with encoder 2018-05-20 18:59:06 +03:00
Madhas 05002bdf9b adapt method generation to Decodable 2018-05-20 14:39:21 +03:00
Ivan Smolin d686c41cab Universal mappable 2018-04-17 20:27:56 +03:00
Ivan Smolin 1afb2d304f align 2018-04-11 16:02:27 +03:00
Ivan Smolin a9afe6b562 add api request parameters customization 2018-04-11 15:55:38 +03:00
Ivan Smolin e5eeec818f add optional encoding 2018-04-06 11:13:08 +03:00
Ivan Smolin cbbcac0ea5 update generation of NetworkService and methods 2018-04-06 11:02:40 +03:00
Ivan Smolin 6af656effd add static versions of methods, add base method for override request 2018-04-04 18:11:46 +03:00
Ivan Smolin 3640a5477f fix equtable, date formatting service and methods without body 2018-04-04 13:32:45 +03:00
Ivan Smolin 210c206892 update DateFormattingService 2018-03-29 17:15:38 +03:00
Ivan Smolin 1057c07b84 Equtable models, convenient copy function and static initializer
closes https://github.com/TouchInstinct/api-generator/issues/53
2018-03-28 19:14:13 +03:00
Ivan Smolin 76bdacb777 fix duplicate date transform in single file mode 2018-01-10 22:25:28 +03:00
Ivan Smolin d944d4d5ee add Equatable protocol conformance
Hashable in progress
2017-06-30 19:10:48 +03:00
Ivan Smolin 67b5fe0809 swift templates refactoring 2017-06-30 17:02:31 +03:00
Ivan Smolin c0b101d1ff swift templates small refactoring 2017-06-23 18:55:50 +03:00
Ivan Smolin 328a62984f fix method.description 2017-06-20 19:58:38 +03:00
Ivan Smolin 8bfcf89e59 methods of same group are contained in same file 2017-06-20 19:41:48 +03:00
Ivan Smolin 9192487cee fix optional fields serialization 2017-06-19 16:13:44 +03:00
Ivan Smolin 83962a9c16 optional fields support. part 1 2017-06-16 15:08:42 +03:00
Ivan Smolin 364af1e2c9 fixes:
Static stored properties not supported in generic types;
escaping of default cases in enum;
type parameters formatting;
2017-06-15 22:08:59 +03:00
Ivan Smolin 20e188f2a9 add memberwise initializer 2017-06-13 17:31:52 +03:00
Ivan Smolin 7d658e8891 add mapping to json 2017-06-13 12:34:22 +03:00
Ivan Smolin 1cd38f1973 FIx warning: Redundant String Enum Value Violation: String enum values can be omitted when they are equal to the enumcase name. (redundant_string_enum_value) 2017-06-09 18:09:33 +03:00