Skip to content

Commit 666be30

Browse files
committed
Use Tentatively in the servant routes.
1 parent 431e319 commit 666be30

File tree

1 file changed

+3
-2
lines changed
  • libs/wire-api/src/Wire/API/Routes/Public

1 file changed

+3
-2
lines changed

libs/wire-api/src/Wire/API/Routes/Public/Spar.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ import Wire.API.Routes.Named
4141
import Wire.API.Routes.Public
4242
import Wire.API.Routes.Version
4343
import Wire.API.Routes.Versioned
44+
import Wire.API.Servant.Tentatively
4445
import Wire.API.SwaggerServant
4546
import Wire.API.User.IdentityProvider
4647
import Wire.API.User.Saml
@@ -142,15 +143,15 @@ type IdpGetAll = Get '[JSON] IdPList
142143

143144
-- | See also: 'validateNewIdP', 'idpCreate', 'idpCreateXML'.
144145
type IdpCreate =
145-
ReqBodyCustomError '[RawXML, JSON] "wai-error" IdPMetadataInfo
146+
ReqBodyCustomError '[RawXML, JSON] "internal-error" (Tentatively IdPMetadataInfo)
146147
:> QueryParam' '[Optional, Strict] "replaces" SAML.IdPId
147148
:> QueryParam' '[Optional, Strict] "api_version" WireIdPAPIVersion -- see also: 'DeprecateSSOAPIV1'
148149
-- FUTUREWORK: The handle is restricted to 32 characters. Can we find a more reasonable upper bound and create a type for it? Also see `IdpUpdate`.
149150
:> QueryParam' '[Optional, Strict] "handle" (Range 1 32 Text)
150151
:> PostCreated '[JSON] IdP
151152

152153
type IdpUpdate =
153-
ReqBodyCustomError '[RawXML, JSON] "wai-error" IdPMetadataInfo
154+
ReqBodyCustomError '[RawXML, JSON] "internal-error" (Tentatively IdPMetadataInfo)
154155
:> Capture "id" SAML.IdPId
155156
-- FUTUREWORK: The handle is restricted to 32 characters. Can we find a more reasonable upper bound and create a type for it? Also see `IdpCreate`.
156157
:> QueryParam' '[Optional, Strict] "handle" (Range 1 32 Text)

0 commit comments

Comments
 (0)