Skip to content

Commit

Permalink
Add spec.yaml tasks to example applications (#657)
Browse files Browse the repository at this point in the history
* Add mix spec.yaml tasks in example applications

* Update example application dependencies
  • Loading branch information
zorbash authored Mar 7, 2025
1 parent 439fadc commit 02d8c15
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 33 deletions.
4 changes: 3 additions & 1 deletion examples/phoenix_app/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ defmodule PhoenixApp.Mixfile do
defp aliases() do
[
test: ["ecto.create --quiet", "ecto.migrate", "test"],
spec: ["openapi.spec.json --spec PhoenixAppWeb.ApiSpec \"priv/static/swagger.json\""]
spec: ["openapi.spec.json --spec PhoenixAppWeb.ApiSpec \"priv/static/swagger.json\""],
"spec.yaml": ["openapi.spec.yaml --spec PhoenixAppWeb.ApiSpec \"priv/static/swagger.yaml\""]
]
end

Expand All @@ -48,6 +49,7 @@ defmodule PhoenixApp.Mixfile do
{:phoenix_view, "~> 2.0"},
{:plug_cowboy, "~> 2.0"},
{:jason, "~> 1.0"},
{:ymlr, "~> 5.0"},
{:dialyxir, "1.0.0-rc.6", only: [:dev], runtime: false}
]
end
Expand Down
Loading

0 comments on commit 02d8c15

Please sign in to comment.