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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 128844e0701ac2c0ccbb8931770e8778ce28527c7c4dca2948d3fb647b33073d
4
- data.tar.gz: 6b03045e22675b21b93762927c3551e0c43e5711ce9aa9f48e64a92bcbffa145
3
+ metadata.gz: 59d53a4c0a3562be369b528c7a879e8ee10000d77b70802c4e95687905bbf720
4
+ data.tar.gz: f0e8c584be29a4fb0427f26fcb8ed37aa3e22d2ec9fc3b72e39d304d5c1bca9d
5
5
  SHA512:
6
- metadata.gz: d1a948144492a1ea82cae9bd2afb709a89c29b8cf2ed7286385eeef43e4e7dd5259ed3b153656d14f39429ea7cb53552b0fe4477a26c2731aaf5ed007a549acd
7
- data.tar.gz: 5044445888128712fd8419cb4487308d86d6d1e4abfe77d1cdc342c9048877fa20d2160dd4cb71041ea2965b3786a1927fcb8218546d4f577204fe142cf0cc56
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
- m.<%= mf.name %> = *payload.<%= pf.name %>
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 -%>
@@ -1,3 +1,3 @@
1
1
  module GoaModelGen
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  end
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.0
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-09 00:00:00.000000000 Z
11
+ date: 2019-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor