File tree 3 files changed +3
-4
lines changed
3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -498,7 +498,7 @@ pub trait NexusExternalApi {
498
498
async fn saml_identity_provider_view (
499
499
rqctx : RequestContext < Self :: Context > ,
500
500
path_params : Path < params:: ProviderPath > ,
501
- query_params : Query < params:: SiloSelector > ,
501
+ query_params : Query < params:: OptionalSiloSelector > ,
502
502
) -> Result < HttpResponseOk < views:: SamlIdentityProvider > , HttpError > ;
503
503
504
504
// TODO: no DELETE for identity providers?
Original file line number Diff line number Diff line change @@ -706,7 +706,7 @@ impl NexusExternalApi for NexusExternalApiImpl {
706
706
async fn saml_identity_provider_view (
707
707
rqctx : RequestContext < ApiContext > ,
708
708
path_params : Path < params:: ProviderPath > ,
709
- query_params : Query < params:: SiloSelector > ,
709
+ query_params : Query < params:: OptionalSiloSelector > ,
710
710
) -> Result < HttpResponseOk < views:: SamlIdentityProvider > , HttpError > {
711
711
let apictx = rqctx. context ( ) ;
712
712
let handler = async {
@@ -717,7 +717,7 @@ impl NexusExternalApi for NexusExternalApiImpl {
717
717
let query = query_params. into_inner ( ) ;
718
718
let saml_identity_provider_selector =
719
719
params:: SamlIdentityProviderSelector {
720
- silo : Some ( query. silo ) ,
720
+ silo : query. silo ,
721
721
saml_identity_provider : path. provider ,
722
722
} ;
723
723
let ( .., provider) = nexus
Original file line number Diff line number Diff line change 7523
7523
"in": "query",
7524
7524
"name": "silo",
7525
7525
"description": "Name or ID of the silo",
7526
- "required": true,
7527
7526
"schema": {
7528
7527
"$ref": "#/components/schemas/NameOrId"
7529
7528
}
You can’t perform that action at this time.
0 commit comments