From 4dbc94624a2621b1041685f4ff7b8d37f300d088 Mon Sep 17 00:00:00 2001 From: Orion Kindel Date: Tue, 28 Nov 2023 00:38:02 -0600 Subject: [PATCH] fix: deserialization --- src/Gitea.Types.purs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Gitea.Types.purs b/src/Gitea.Types.purs index 350ca16..19f8d87 100644 --- a/src/Gitea.Types.purs +++ b/src/Gitea.Types.purs @@ -2,6 +2,7 @@ module Gitea.Types where import Prelude +import Data.Maybe (Maybe) import Data.Newtype (class Newtype) import Foreign.Object (Object) import Simple.JSON (class ReadForeign, class WriteForeign) @@ -281,7 +282,7 @@ type RepoGiteaSettingsMutable r = type RepoSectionGiteaStatsMutable r = ( "template" :: Boolean - , "external_wiki" :: RepoExternalWiki + , "external_wiki" :: Maybe RepoExternalWiki | r ) @@ -294,7 +295,7 @@ type RepoSectionGiteaStatsImmutable r = , "watchers_count" :: Int , "fork" :: Boolean , "forks_count" :: Int - , "repo_transfer" :: RepoTransfer + , "repo_transfer" :: Maybe RepoTransfer | r ) @@ -325,8 +326,8 @@ type RepoSectionStatsImmutable r = ) type RepoSectionTrackerMutable r = - ( "external_tracker" :: RepoExternalTracker - , "internal_tracker" :: RepoInternalTracker + ( "external_tracker" :: Maybe RepoExternalTracker + , "internal_tracker" :: Maybe RepoInternalTracker | r )