forked from loafle/openapi-generator-original
update elixir with oas3 petstore (#318)
This commit is contained in:
parent
bee7aebe4b
commit
0b6a59fa09
37
bin/openapi3/elixir-petstore.sh
Executable file
37
bin/openapi3/elixir-petstore.sh
Executable file
@ -0,0 +1,37 @@
|
||||
#!/bin/sh
|
||||
|
||||
SCRIPT="$0"
|
||||
echo "# START SCRIPT: $SCRIPT"
|
||||
|
||||
while [ -h "$SCRIPT" ] ; do
|
||||
ls=`ls -ld "$SCRIPT"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '/.*' > /dev/null; then
|
||||
SCRIPT="$link"
|
||||
else
|
||||
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ ! -d "${APP_DIR}" ]; then
|
||||
APP_DIR=`dirname "$SCRIPT"`/..
|
||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
||||
fi
|
||||
|
||||
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
||||
|
||||
if [ ! -f "$executable" ]
|
||||
then
|
||||
mvn clean package
|
||||
fi
|
||||
|
||||
# remove existing lib and model file
|
||||
echo "removing existing lib, model files"
|
||||
rm -Rf "samples/client/petstore/elixir/lib/swagger_petstore/model/"
|
||||
rm -Rf "samples/client/petstore/elixir/lib/swagger_petstore/lib/"
|
||||
|
||||
# if you've executed sbt assembly previously it will use that instead.
|
||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||
args="generate -t modules/openapi-generator/src/main/resources/elixir -i modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -l elixir -o samples/client/petstore/elixir/ $@"
|
||||
|
||||
java $JAVA_OPTS -jar $executable $args
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Api.AnotherFake do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Api.Fake do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Api.FakeClassnameTags123 do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Api.Pet do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Api.Store do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Api.User do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Connection do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Deserializer do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Model.AdditionalPropertiesClass do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Model.Animal do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Model.AnimalFarm do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Model.ApiResponse do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Model.ArrayOfArrayOfNumberOnly do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Model.ArrayOfNumberOnly do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Model.ArrayTest do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Model.Capitalization do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Model.Cat do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Model.Category do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Model.ClassModel do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Model.Client do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Model.Dog do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Model.EnumArrays do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Model.EnumClass do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Model.EnumTest do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Model.FormatTest do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Model.HasOnlyReadOnly do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Model.MapTest do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Model.MixedPropertiesAndAdditionalPropertiesClass do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Model.Model200Response do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Model.Name do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Model.NumberOnly do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Model.Order do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Model.OuterComposite do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Model.OuterEnum do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Model.Pet do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Model.ReadOnlyFirst do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Model.Return do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Model.SpecialModelName do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Model.Tag do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.Model.User do
|
||||
|
@ -1,5 +1,5 @@
|
||||
# NOTE: This class is auto generated by the swagger code generator program.
|
||||
# https://github.com/swagger-api/swagger-codegen.git
|
||||
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
# https://openapi-generator.tech
|
||||
# Do not edit the class manually.
|
||||
|
||||
defmodule SwaggerPetstore.RequestBuilder do
|
||||
|
Loading…
x
Reference in New Issue
Block a user