feat(graphql): validate timezone id as a GraphQL Scalar

Related to #1299

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2023-06-05 09:12:02 +02:00
parent 2dd0e13eba
commit 845bb6ac90
9 changed files with 46 additions and 10 deletions

View File

@@ -250,7 +250,7 @@ defmodule Mobilizon.GraphQL.Schema.EventType do
field(:show_start_time, :boolean, description: "Show event start time")
field(:show_end_time, :boolean, description: "Show event end time")
field(:timezone, :string, description: "The event's timezone")
field(:timezone, :timezone, description: "The event's timezone")
field(:hide_organizer_when_group_event, :boolean,
description:
@@ -303,7 +303,7 @@ defmodule Mobilizon.GraphQL.Schema.EventType do
field(:show_start_time, :boolean, description: "Show event start time")
field(:show_end_time, :boolean, description: "Show event end time")
field(:timezone, :string, description: "The event's timezone")
field(:timezone, :timezone, description: "The event's timezone")
field(:hide_organizer_when_group_event, :boolean,
description: