Adds JSON tags to PII report.

This will make the JSON export look a bit prettier.
This commit is contained in:
Daniël Franke
2023-04-14 15:09:54 +02:00
committed by jkoberg
parent 3ec5c0f6ed
commit d81065c1b6
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -26,8 +26,8 @@ var userActionsToString = map[UserAction]string{
// PIIReport is a structure of all the PersonalIdentifiableInformation contained in keycloak.
type PIIReport struct {
UserData *libregraph.User
Credentials []*gocloak.CredentialRepresentation
UserData *libregraph.User `json:"user_data,omitempty"`
Credentials []*gocloak.CredentialRepresentation `json:"credentials,omitempty"`
}
// Client represents a keycloak client.