-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2fc8f85
commit 5f3c05d
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
defmodule TrentoWeb.OpenApi.Schema.Platform do | ||
@moduledoc false | ||
|
||
require OpenApiSpex | ||
alias OpenApiSpex.Schema | ||
|
||
defmodule Settings do | ||
@moduledoc false | ||
|
||
OpenApiSpex.schema(%{ | ||
title: "PlatformSettings", | ||
description: "Settings values for the current installation", | ||
type: :object, | ||
properties: %{ | ||
eula_accepted: %Schema{ | ||
type: :boolean, | ||
description: "Whether the user has accepted EULA (on a Premium installation)" | ||
}, | ||
premium_subscription: %Schema{ | ||
type: :boolean, | ||
description: "Whether current installation is a Premium one" | ||
} | ||
} | ||
}) | ||
end | ||
end |