goa_model_gen 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/goa_model_gen/templates/converter.go.erb +3 -1
- data/lib/goa_model_gen/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59d53a4c0a3562be369b528c7a879e8ee10000d77b70802c4e95687905bbf720
|
4
|
+
data.tar.gz: f0e8c584be29a4fb0427f26fcb8ed37aa3e22d2ec9fc3b72e39d304d5c1bca9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0efb6a95083506ba0ee36515dd76e49a4f182879b3ef670de20d9b6b052d7d12f860373a9aaa2208b4a6573cbfa01f92ae0467d6518dcdfb89ff65f3c62d2291
|
7
|
+
data.tar.gz: 9086cbbb6358edebc6e06083a1c8b1d7c496115fb5f569bec0e2e3a7bf49e84700b06fa2662db5d9053d0b889a293ac956e41aaaa374993763d7a44b947da8a1
|
@@ -43,7 +43,9 @@ func CopyFrom<%= model.name %>PayloadToModel(payload *gen.<%= payload.name %>, m
|
|
43
43
|
<%- elsif mf.type.assignable_with?(pf.type) -%>
|
44
44
|
m.<%= mf.name %> = payload.<%= pf.name %>
|
45
45
|
<%- elsif mf.type.pointee_of?(pf.type) -%>
|
46
|
-
|
46
|
+
if payload.<%= pf.name %> != nil {
|
47
|
+
m.<%= mf.name %> = *payload.<%= pf.name %>
|
48
|
+
}
|
47
49
|
<%- elsif !pf.type.needs_error_to_convert_to?(mf.type) -%>
|
48
50
|
m.<%= mf.name %> = converters.<%= pf.type.method_part_name %>To<%= mf.type.method_part_name %>(payload.<%= pf.name %>)
|
49
51
|
<%- else -%>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: goa_model_gen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- akm
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|