OpenAPI spec: Do not show build enviroment in the spec version
This commit is contained in:
parent
f13f5d9303
commit
0d9230aed9
|
@ -37,7 +37,8 @@ def spec(opts \\ []) do
|
||||||
|
|
||||||
Please report such occurences on our [issue tracker](https://git.pleroma.social/pleroma/pleroma/-/issues). Feel free to submit API questions or proposals there too!
|
Please report such occurences on our [issue tracker](https://git.pleroma.social/pleroma/pleroma/-/issues). Feel free to submit API questions or proposals there too!
|
||||||
""",
|
""",
|
||||||
version: Application.spec(:pleroma, :vsn) |> to_string(),
|
# Strip environment from the version
|
||||||
|
version: Application.spec(:pleroma, :vsn) |> to_string() |> String.replace(~r/\+.*$/, ""),
|
||||||
extensions: %{
|
extensions: %{
|
||||||
# Logo path should be picked so that the path exists both on Pleroma instances and on api.pleroma.social
|
# Logo path should be picked so that the path exists both on Pleroma instances and on api.pleroma.social
|
||||||
"x-logo": %{"url" => "/static/logo.svg", "altText" => "Pleroma logo"}
|
"x-logo": %{"url" => "/static/logo.svg", "altText" => "Pleroma logo"}
|
||||||
|
|
Loading…
Reference in New Issue