forked from loafle/openapi-generator-original
update r petstore samples
This commit is contained in:
parent
97298bdb03
commit
fb73b8c4de
@ -1 +1 @@
|
|||||||
2.3.0-SNAPSHOT
|
2.4.0-SNAPSHOT
|
@ -127,7 +127,7 @@ Pet <- R6::R6Class(
|
|||||||
fromJSONString = function(PetJson) {
|
fromJSONString = function(PetJson) {
|
||||||
PetObject <- jsonlite::fromJSON(PetJson)
|
PetObject <- jsonlite::fromJSON(PetJson)
|
||||||
self$`id` <- PetObject$`id`
|
self$`id` <- PetObject$`id`
|
||||||
CategoryObject -> Category$new()
|
CategoryObject <- Category$new()
|
||||||
self$`category` <- CategoryObject$fromJSON(jsonlite::toJSON(PetObject$category, auto_unbox = TRUE))
|
self$`category` <- CategoryObject$fromJSON(jsonlite::toJSON(PetObject$category, auto_unbox = TRUE))
|
||||||
self$`name` <- PetObject$`name`
|
self$`name` <- PetObject$`name`
|
||||||
self$`photoUrls` <- PetObject$`photoUrls`
|
self$`photoUrls` <- PetObject$`photoUrls`
|
||||||
|
@ -36,7 +36,7 @@ git_remote=`git remote`
|
|||||||
if [ "$git_remote" = "" ]; then # git remote not defined
|
if [ "$git_remote" = "" ]; then # git remote not defined
|
||||||
|
|
||||||
if [ "$GIT_TOKEN" = "" ]; then
|
if [ "$GIT_TOKEN" = "" ]; then
|
||||||
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment."
|
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
||||||
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
||||||
else
|
else
|
||||||
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
||||||
|
Loading…
x
Reference in New Issue
Block a user