Skip to content

Commit 02d8c15

Browse files
authored
Add spec.yaml tasks to example applications (#657)
* Add mix spec.yaml tasks in example applications * Update example application dependencies
1 parent 439fadc commit 02d8c15

File tree

4 files changed

+38
-33
lines changed

4 files changed

+38
-33
lines changed

examples/phoenix_app/mix.exs

+3-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ defmodule PhoenixApp.Mixfile do
3131
defp aliases() do
3232
[
3333
test: ["ecto.create --quiet", "ecto.migrate", "test"],
34-
spec: ["openapi.spec.json --spec PhoenixAppWeb.ApiSpec \"priv/static/swagger.json\""]
34+
spec: ["openapi.spec.json --spec PhoenixAppWeb.ApiSpec \"priv/static/swagger.json\""],
35+
"spec.yaml": ["openapi.spec.yaml --spec PhoenixAppWeb.ApiSpec \"priv/static/swagger.yaml\""]
3536
]
3637
end
3738

@@ -48,6 +49,7 @@ defmodule PhoenixApp.Mixfile do
4849
{:phoenix_view, "~> 2.0"},
4950
{:plug_cowboy, "~> 2.0"},
5051
{:jason, "~> 1.0"},
52+
{:ymlr, "~> 5.0"},
5153
{:dialyxir, "1.0.0-rc.6", only: [:dev], runtime: false}
5254
]
5355
end

0 commit comments

Comments
 (0)