Skip to content

Commit

Permalink
Fix assignment of new object instance to variable
Browse files Browse the repository at this point in the history
Fixes `Error in foobar$fromJSONString(s) : object 'CategoryObject' not found`
Discussion in swagger-api#6520 (comment) ,
thanks @wing328 for encouraging.
  • Loading branch information
sneumann authored Jan 12, 2018
1 parent acf70d0 commit 9e2a716
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
self$`{{baseName}}` <- lapply({{classname}}Object$`{{baseName}}`, function(x) {{datatype}}$new()$fromJSON(jsonlite::toJSON(x, auto_unbox = TRUE)))
{{/isListContainer}}
{{^isListContainer}}
{{datatype}}Object -> {{datatype}}$new()
{{datatype}}Object <- {{datatype}}$new()
self$`{{baseName}}` <- {{datatype}}Object$fromJSON(jsonlite::toJSON({{classname}}Object${{baseName}}, auto_unbox = TRUE))
{{/isListContainer}}
{{/isPrimitiveType}}
Expand Down

0 comments on commit 9e2a716

Please sign in to comment.