Skip to content

Commit

Permalink
100% covered
Browse files Browse the repository at this point in the history
  • Loading branch information
kilork committed Mar 29, 2024
1 parent 29342ee commit b9db550
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 21 deletions.
35 changes: 21 additions & 14 deletions examples/openapi.patch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -262,17 +262,24 @@ rust_type = "TypeVec<RoleRepresentation>"
[path."/admin/realms/{realm}/clients/{id}/scope-mappings/realm/composite:get:"]
from_type = "Value"
rust_type = "TypeVec<RoleRepresentation>"
# [path."/admin/realms/{realm}/users/{id}/configured-user-storage-credential-types:get:"]
# from_type = "Value"
# [path."/admin/realms/{realm}/users/{id}/consents:get:"]
# from_type = "Value"
# [path."/admin/realms/{realm}/users/{id}/credentials:get:"]
# from_type = "Value"
# [path."/admin/realms/{realm}/users/{id}/federated-identity:get:"]
# from_type = "Value"
# [path."/admin/realms/{realm}/users/{id}/groups:get:"]
# from_type = "Value"
# [path."/admin/realms/{realm}/users/{id}/offline-sessions/{clientUuid}:get:"]
# from_type = "Value"
# [path."/admin/realms/{realm}/users/{id}/sessions:get:"]
# from_type = "Value"
[path."/admin/realms/{realm}/users/{id}/configured-user-storage-credential-types:get:"]
from_type = "Value"
rust_type = "TypeVec<TypeString>"
[path."/admin/realms/{realm}/users/{id}/consents:get:"]
from_type = "Value"
rust_type = "TypeVec<TypeMap<String, Value>>"
[path."/admin/realms/{realm}/users/{id}/credentials:get:"]
from_type = "Value"
rust_type = "TypeVec<CredentialRepresentation>"
[path."/admin/realms/{realm}/users/{id}/federated-identity:get:"]
from_type = "Value"
rust_type = "TypeVec<FederatedIdentityRepresentation>"
[path."/admin/realms/{realm}/users/{id}/groups:get:"]
from_type = "Value"
rust_type = "TypeVec<GroupRepresentation>"
[path."/admin/realms/{realm}/users/{id}/offline-sessions/{clientUuid}:get:"]
from_type = "Value"
rust_type = "TypeVec<TypeMap<String, Value>>"
[path."/admin/realms/{realm}/users/{id}/sessions:get:"]
from_type = "Value"
rust_type = "TypeVec<TypeMap<String, Value>>"
14 changes: 7 additions & 7 deletions src/rest/generated_rest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9356,7 +9356,7 @@ impl<TS: KeycloakTokenSupplier> KeycloakAdmin<TS> {
&self,
realm: &str,
id: &str,
) -> Result<Value, KeycloakError> {
) -> Result<TypeVec<TypeString>, KeycloakError> {
let builder = self
.client
.get(&format!(
Expand Down Expand Up @@ -9385,7 +9385,7 @@ impl<TS: KeycloakTokenSupplier> KeycloakAdmin<TS> {
&self,
realm: &str,
id: &str,
) -> Result<Value, KeycloakError> {
) -> Result<TypeVec<TypeMap<String, Value>>, KeycloakError> {
let builder = self
.client
.get(&format!(
Expand Down Expand Up @@ -9444,7 +9444,7 @@ impl<TS: KeycloakTokenSupplier> KeycloakAdmin<TS> {
&self,
realm: &str,
id: &str,
) -> Result<Value, KeycloakError> {
) -> Result<TypeVec<CredentialRepresentation>, KeycloakError> {
let builder = self
.client
.get(&format!(
Expand Down Expand Up @@ -9695,7 +9695,7 @@ impl<TS: KeycloakTokenSupplier> KeycloakAdmin<TS> {
&self,
realm: &str,
id: &str,
) -> Result<Value, KeycloakError> {
) -> Result<TypeVec<FederatedIdentityRepresentation>, KeycloakError> {
let builder = self
.client
.get(&format!(
Expand Down Expand Up @@ -9794,7 +9794,7 @@ impl<TS: KeycloakTokenSupplier> KeycloakAdmin<TS> {
first: Option<i32>,
max: Option<i32>,
search: Option<String>,
) -> Result<Value, KeycloakError> {
) -> Result<TypeVec<GroupRepresentation>, KeycloakError> {
let mut builder = self
.client
.get(&format!(
Expand Down Expand Up @@ -9995,7 +9995,7 @@ impl<TS: KeycloakTokenSupplier> KeycloakAdmin<TS> {
realm: &str,
id: &str,
client_uuid: &str,
) -> Result<Value, KeycloakError> {
) -> Result<TypeVec<TypeMap<String, Value>>, KeycloakError> {
let builder = self
.client
.get(&format!(
Expand Down Expand Up @@ -10140,7 +10140,7 @@ impl<TS: KeycloakTokenSupplier> KeycloakAdmin<TS> {
&self,
realm: &str,
id: &str,
) -> Result<Value, KeycloakError> {
) -> Result<TypeVec<TypeMap<String, Value>>, KeycloakError> {
let builder = self
.client
.get(&format!(
Expand Down

0 comments on commit b9db550

Please sign in to comment.