forked from loafle/openapi-generator-original
Merge remote-tracking branch 'origin/4.2.x' into 5.0.x
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
#!/bin/sh
|
||||
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
||||
#
|
||||
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update"
|
||||
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
|
||||
|
||||
git_user_id=$1
|
||||
git_repo_id=$2
|
||||
release_note=$3
|
||||
git_host=$4
|
||||
|
||||
if [ "$git_host" = "" ]; then
|
||||
git_host="github.com"
|
||||
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
||||
fi
|
||||
|
||||
if [ "$git_user_id" = "" ]; then
|
||||
git_user_id="GIT_USER_ID"
|
||||
@@ -28,7 +34,7 @@ git init
|
||||
# Adds the files in the local repository and stages them for commit.
|
||||
git add .
|
||||
|
||||
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
||||
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
||||
git commit -m "$release_note"
|
||||
|
||||
# Sets the new remote
|
||||
@@ -37,9 +43,9 @@ if [ "$git_remote" = "" ]; then # git remote not defined
|
||||
|
||||
if [ "$GIT_TOKEN" = "" ]; then
|
||||
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://${git_host}/${git_user_id}/${git_repo_id}.git
|
||||
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}@${git_host}/${git_user_id}/${git_repo_id}.git
|
||||
fi
|
||||
|
||||
fi
|
||||
@@ -47,6 +53,6 @@ fi
|
||||
git pull origin master
|
||||
|
||||
# Pushes (Forces) the changes in the local repository up to the remote repository
|
||||
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
||||
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
||||
git push origin master 2>&1 | grep -v 'To https'
|
||||
|
||||
|
||||
@@ -1687,6 +1687,7 @@ mkTypeHolderDefault typeHolderDefaultStringItem typeHolderDefaultNumberItem type
|
||||
data TypeHolderExample = TypeHolderExample
|
||||
{ typeHolderExampleStringItem :: !(Text) -- ^ /Required/ "string_item"
|
||||
, typeHolderExampleNumberItem :: !(Double) -- ^ /Required/ "number_item"
|
||||
, typeHolderExampleFloatItem :: !(Float) -- ^ /Required/ "float_item"
|
||||
, typeHolderExampleIntegerItem :: !(Int) -- ^ /Required/ "integer_item"
|
||||
, typeHolderExampleBoolItem :: !(Bool) -- ^ /Required/ "bool_item"
|
||||
, typeHolderExampleArrayItem :: !([Int]) -- ^ /Required/ "array_item"
|
||||
@@ -1698,6 +1699,7 @@ instance A.FromJSON TypeHolderExample where
|
||||
TypeHolderExample
|
||||
<$> (o .: "string_item")
|
||||
<*> (o .: "number_item")
|
||||
<*> (o .: "float_item")
|
||||
<*> (o .: "integer_item")
|
||||
<*> (o .: "bool_item")
|
||||
<*> (o .: "array_item")
|
||||
@@ -1708,6 +1710,7 @@ instance A.ToJSON TypeHolderExample where
|
||||
_omitNulls
|
||||
[ "string_item" .= typeHolderExampleStringItem
|
||||
, "number_item" .= typeHolderExampleNumberItem
|
||||
, "float_item" .= typeHolderExampleFloatItem
|
||||
, "integer_item" .= typeHolderExampleIntegerItem
|
||||
, "bool_item" .= typeHolderExampleBoolItem
|
||||
, "array_item" .= typeHolderExampleArrayItem
|
||||
@@ -1718,14 +1721,16 @@ instance A.ToJSON TypeHolderExample where
|
||||
mkTypeHolderExample
|
||||
:: Text -- ^ 'typeHolderExampleStringItem'
|
||||
-> Double -- ^ 'typeHolderExampleNumberItem'
|
||||
-> Float -- ^ 'typeHolderExampleFloatItem'
|
||||
-> Int -- ^ 'typeHolderExampleIntegerItem'
|
||||
-> Bool -- ^ 'typeHolderExampleBoolItem'
|
||||
-> [Int] -- ^ 'typeHolderExampleArrayItem'
|
||||
-> TypeHolderExample
|
||||
mkTypeHolderExample typeHolderExampleStringItem typeHolderExampleNumberItem typeHolderExampleIntegerItem typeHolderExampleBoolItem typeHolderExampleArrayItem =
|
||||
mkTypeHolderExample typeHolderExampleStringItem typeHolderExampleNumberItem typeHolderExampleFloatItem typeHolderExampleIntegerItem typeHolderExampleBoolItem typeHolderExampleArrayItem =
|
||||
TypeHolderExample
|
||||
{ typeHolderExampleStringItem
|
||||
, typeHolderExampleNumberItem
|
||||
, typeHolderExampleFloatItem
|
||||
, typeHolderExampleIntegerItem
|
||||
, typeHolderExampleBoolItem
|
||||
, typeHolderExampleArrayItem
|
||||
|
||||
@@ -780,6 +780,11 @@ typeHolderExampleNumberItemL :: Lens_' TypeHolderExample (Double)
|
||||
typeHolderExampleNumberItemL f TypeHolderExample{..} = (\typeHolderExampleNumberItem -> TypeHolderExample { typeHolderExampleNumberItem, ..} ) <$> f typeHolderExampleNumberItem
|
||||
{-# INLINE typeHolderExampleNumberItemL #-}
|
||||
|
||||
-- | 'typeHolderExampleFloatItem' Lens
|
||||
typeHolderExampleFloatItemL :: Lens_' TypeHolderExample (Float)
|
||||
typeHolderExampleFloatItemL f TypeHolderExample{..} = (\typeHolderExampleFloatItem -> TypeHolderExample { typeHolderExampleFloatItem, ..} ) <$> f typeHolderExampleFloatItem
|
||||
{-# INLINE typeHolderExampleFloatItemL #-}
|
||||
|
||||
-- | 'typeHolderExampleIntegerItem' Lens
|
||||
typeHolderExampleIntegerItemL :: Lens_' TypeHolderExample (Int)
|
||||
typeHolderExampleIntegerItemL f TypeHolderExample{..} = (\typeHolderExampleIntegerItem -> TypeHolderExample { typeHolderExampleIntegerItem, ..} ) <$> f typeHolderExampleIntegerItem
|
||||
|
||||
@@ -1869,6 +1869,10 @@ components:
|
||||
number_item:
|
||||
example: 1.234
|
||||
type: number
|
||||
float_item:
|
||||
example: 1.234
|
||||
format: float
|
||||
type: number
|
||||
integer_item:
|
||||
example: -2
|
||||
type: integer
|
||||
@@ -1887,6 +1891,7 @@ components:
|
||||
required:
|
||||
- array_item
|
||||
- bool_item
|
||||
- float_item
|
||||
- integer_item
|
||||
- number_item
|
||||
- string_item
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
# This file was autogenerated by Stack.
|
||||
# You should not edit this file by hand.
|
||||
# For more information, please see the documentation at:
|
||||
# https://docs.haskellstack.org/en/stable/lock_files
|
||||
|
||||
packages:
|
||||
- completed:
|
||||
hackage: katip-0.8.3.0@sha256:8a67c0aec3ba1f0eabcfae443cb909e4cf9405e29bac99ccf1420f1f1bbda9c4,4097
|
||||
pantry-tree:
|
||||
size: 1140
|
||||
sha256: cad8c67256ec85819309d77bdcbc15b67885940ef76f2b850c8be20c2efd0149
|
||||
original:
|
||||
hackage: katip-0.8.3.0
|
||||
snapshots:
|
||||
- completed:
|
||||
size: 523878
|
||||
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/14/3.yaml
|
||||
sha256: 470c46c27746a48c7c50f829efc0cf00112787a7804ee4ac7a27754658f6d92c
|
||||
original: lts-14.3
|
||||
@@ -511,6 +511,7 @@ genTypeHolderExample n =
|
||||
TypeHolderExample
|
||||
<$> arbitrary -- typeHolderExampleStringItem :: Text
|
||||
<*> arbitrary -- typeHolderExampleNumberItem :: Double
|
||||
<*> arbitrary -- typeHolderExampleFloatItem :: Float
|
||||
<*> arbitrary -- typeHolderExampleIntegerItem :: Int
|
||||
<*> arbitrary -- typeHolderExampleBoolItem :: Bool
|
||||
<*> arbitrary -- typeHolderExampleArrayItem :: [Int]
|
||||
|
||||
Reference in New Issue
Block a user