forked from loafle/openapi-generator-original
* Switch Poison to Jason * generate-samples.sh * Finalize Poison -> Jason switch * parse date-time values to Elixir DateTime * improve formatting in various places, so there's less changes by `mix format` later * fix Java version in flake.nix * Use List.delete/2 instead of Enum.reject/2 for performance reasons * mix format test/* * Install dialyxir and fix reported issues * Fix RequestBuilder.decode/2 hardcoded module name * Update docs * Revert changes to API spec (HTTP -> HTTPS) * Revert uneeded change to Elixir code generator * Use HTTP in Elixir tests HTTPS doesn't work for folks who setup petstore.swagger.io as described in docs/faq-contributing.md. --------- Co-authored-by: Wojciech Piekutowski <wojciech@piekutowski.net>
52 lines
1.3 KiB
Elixir
52 lines
1.3 KiB
Elixir
defmodule OpenapiPetstore.Mixfile do
|
|
use Mix.Project
|
|
|
|
def project do
|
|
[
|
|
app: :openapi_petstore,
|
|
version: "1.0.0",
|
|
elixir: "~> 1.10",
|
|
build_embedded: Mix.env() == :prod,
|
|
start_permanent: Mix.env() == :prod,
|
|
package: package(),
|
|
description: """
|
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
""",
|
|
deps: deps()
|
|
]
|
|
end
|
|
|
|
# Configuration for the OTP application
|
|
#
|
|
# Type "mix help compile.app" for more information
|
|
def application do
|
|
# Specify extra applications you'll use from Erlang/Elixir
|
|
[extra_applications: [:logger]]
|
|
end
|
|
|
|
# Dependencies can be Hex packages:
|
|
#
|
|
# {:my_dep, "~> 0.3.0"}
|
|
#
|
|
# Or git/path repositories:
|
|
#
|
|
# {:my_dep, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.3.0"}
|
|
#
|
|
# Type "mix help deps" for more examples and options
|
|
defp deps do
|
|
[
|
|
{:tesla, "~> 1.7"},
|
|
{:jason, "~> 1.4"},
|
|
{:ex_doc, "~> 0.30", only: :dev, runtime: false},
|
|
{:dialyxir, "~> 1.3", only: [:dev, :test], runtime: false}
|
|
]
|
|
end
|
|
|
|
defp package do
|
|
[
|
|
name: "openapi_petstore",
|
|
files: ~w(.formatter.exs config lib mix.exs README* LICENSE*),
|
|
]
|
|
end
|
|
end
|