Page MenuHomePhorge

No OneTemporary

Size
4 KB
Referenced Files
None
Subscribers
None
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..b6eca17
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,4 @@
+# 1.0.0
+
+Initial release. This package is inspired by [phoenix_swagger](https://github.com/xerions/phoenix_swagger) but targets Open API Spec 3.0.
+
diff --git a/mix.exs b/mix.exs
index a41f0d8..20861b8 100644
--- a/mix.exs
+++ b/mix.exs
@@ -1,46 +1,58 @@
defmodule OpenApiSpex.Mixfile do
use Mix.Project
@version "1.0.0"
def project do
[
app: :open_api_spex,
version: "1.0.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env),
start_permanent: Mix.env == :prod,
+ description: description(),
+ package: package(),
deps: deps(),
source_url: "https://github.com/mbuhot/open_api_spex",
homepage_url: "https://github.com/mbuhot/open_api_spex",
docs: [extras: ["README.md"], main: "readme", source_ref: "v#{@version}"],
dialyzer: [
plt_add_apps: [:mix],
plt_add_deps: :apps_direct,
flags: ["-Werror_handling", "-Wno_unused", "-Wunmatched_returns", "-Wunderspecs"],
remove_defaults: [:unknown]
]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help compile.app" to learn about applications.
- def application do
+ def application, do: [extra_applications: []]
+
+ defp description() do
+ "Leverage Open Api Specification 3 (swagger) to document, test, validate and explore your Plug and Phoenix APIs."
+ end
+
+ defp package() do
[
- extra_applications: [:logger]
+ name: "open_api_spex",
+ files: ["lib", "mix.exs", "README.md", "LICENSE", "CHANGELOG.md"],
+ maintainers: ["Mike Buhot (m.buhot@gmail.com)"],
+ licenses: ["Mozilla Public License, version 2.0"],
+ links: %{"GitHub" => "https://github.com/mbuhot/open_api_spex"}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
- {:poison, ">= 0.0.0"},
- {:plug, ">= 0.0.0"},
+ {:poison, "~> 3.1"},
+ {:plug, "~> 1.4"},
{:phoenix, "~> 1.3", only: :test},
- {:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
- {:dialyxir, ">= 0.0.0", only: :dev, runtime: false}
+ {:ex_doc, "~> 0.16", only: :dev, runtime: false},
+ {:dialyxir, "~> 0.5", only: :dev, runtime: false}
]
end
end
diff --git a/mix.lock b/mix.lock
index d3a003b..79fc73d 100644
--- a/mix.lock
+++ b/mix.lock
@@ -1,8 +1,8 @@
%{"dialyxir": {:hex, :dialyxir, "0.5.1", "b331b091720fd93e878137add264bac4f644e1ddae07a70bf7062c7862c4b952", [], [], "hexpm"},
"earmark": {:hex, :earmark, "1.2.3", "206eb2e2ac1a794aa5256f3982de7a76bf4579ff91cb28d0e17ea2c9491e46a4", [], [], "hexpm"},
- "ex_doc": {:hex, :ex_doc, "0.16.4", "4bf6b82d4f0a643b500366ed7134896e8cccdbab4d1a7a35524951b25b1ec9f0", [], [{:earmark, "~> 1.1", [hex: :earmark, repo: "hexpm", optional: false]}], "hexpm"},
+ "ex_doc": {:hex, :ex_doc, "0.17.0", "fdf3dc9c6cd1945afb583488de1bf8c12bd8b2ab80f2e7a0e2476a60b9e3bd8f", [:mix], [{:earmark, "~> 1.1", [hex: :earmark, repo: "hexpm", optional: false]}], "hexpm"},
"mime": {:hex, :mime, "1.1.0", "01c1d6f4083d8aa5c7b8c246ade95139620ef8effb009edde934e0ec3b28090a", [], [], "hexpm"},
"phoenix": {:hex, :phoenix, "1.3.0", "1c01124caa1b4a7af46f2050ff11b267baa3edb441b45dbf243e979cd4c5891b", [], [{:cowboy, "~> 1.0", [hex: :cowboy, repo: "hexpm", optional: true]}, {:phoenix_pubsub, "~> 1.0", [hex: :phoenix_pubsub, repo: "hexpm", optional: false]}, {:plug, "~> 1.3.3 or ~> 1.4", [hex: :plug, repo: "hexpm", optional: false]}, {:poison, "~> 2.2 or ~> 3.0", [hex: :poison, repo: "hexpm", optional: false]}], "hexpm"},
"phoenix_pubsub": {:hex, :phoenix_pubsub, "1.0.2", "bfa7fd52788b5eaa09cb51ff9fcad1d9edfeb68251add458523f839392f034c1", [], [], "hexpm"},
"plug": {:hex, :plug, "1.4.3", "236d77ce7bf3e3a2668dc0d32a9b6f1f9b1f05361019946aae49874904be4aed", [], [{:cowboy, "~> 1.0.1 or ~> 1.1", [hex: :cowboy, repo: "hexpm", optional: true]}, {:mime, "~> 1.0", [hex: :mime, repo: "hexpm", optional: false]}], "hexpm"},
"poison": {:hex, :poison, "3.1.0", "d9eb636610e096f86f25d9a46f35a9facac35609a7591b3be3326e99a0484665", [], [], "hexpm"}}

File Metadata

Mime Type
text/x-diff
Expires
Sat, Nov 23, 9:51 PM (21 h, 22 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39140
Default Alt Text
(4 KB)

Event Timeline