Archived
1
0
Fork 0
Commit graph

8 commits

Author SHA1 Message Date
supmiku39
d76000a1e4 [v2.0.0] simplify generated code, change some types
- merge all APIPromise class
- remove IServerAPI and IClientAPI
- remove res Object, return [status, body] in ServerAPI instead
- remove schema classes, use interface instead
- `-s` flag for `ctx.state` interface path
2020-04-15 07:45:51 +09:00
supmiku39
c482e91cbc expose fields of schemas to XXX.fields 2020-04-15 07:15:54 +09:00
supmiku39
9b668f0b2f fix README.md APIPromise#on
fix codegen indent bug
2020-04-11 02:22:47 +09:00
supmiku39
65482a6890 publish to npmjs; specify FullDate constructor type
change the package name in generated code
2020-04-10 21:17:34 +09:00
supmiku39
26d531c26e implement FullDate#distanceFrom(d0)
fix FullDate timezone bug, use UTC instead
2020-04-09 19:45:32 +09:00
supmiku39
87615616d6 fix Partial constructor, enhance error msg
add more info to BadValueError
  special message on undefined and null
  trace the location where the error is thrown
add int32 STP
fix STP null argument bug
2020-04-08 20:17:57 +09:00
supmiku39
7c352d4f37 implement FullDate getter, setter, function
getter: date, year, month, day, dayOfWeek
setter: year, month, day
function: advance
2020-04-06 00:57:52 +09:00
supmiku39
75674df502 ClientAPI, ServerAPI interface, Schema TS codegen
ClientAPI: use Axios
ServerAPI: use @koa/router
FullDate: wrapped Date only class
APIPromise: enhanced Promise on api response

application/json only(multipart/*, image/*, ... are not supported)
get, post, put, delete, patch only
2020-04-05 00:57:34 +09:00