Skip to content
Snippets Groups Projects
Commit ba901861 authored by Petar Hristov's avatar Petar Hristov :speech_balloon:
Browse files

Merge branch 'Hotfix/3115-userReportingEmpty2' into 'main'

Fix: Update UserDto properties to mark GivenName and FamilyName as optional

See merge request !39
parents b669f256 5b991cf2
Branches
No related tags found
1 merge request!39Fix: Update UserDto properties to mark GivenName and FamilyName as optional
Pipeline #1680597 passed
......@@ -7,8 +7,8 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **Guid** | The unique identifier of the user. |
**DisplayName** | **string** | The display name of the user. |
**GivenName** | **string** | The given name of the user. |
**FamilyName** | **string** | The family name of the user. |
**GivenName** | **string** | The given name of the user. | [optional]
**FamilyName** | **string** | The family name of the user. | [optional]
**Emails** | [**List<UserEmailDto>**](UserEmailDto.md) | The email addresses associated with the user. |
**Title** | [**TitleDto**](TitleDto.md) | | [optional]
**Language** | [**LanguageDto**](LanguageDto.md) | | [optional]
......
......@@ -12,7 +12,7 @@
<Description>A library generated from a OpenAPI doc</Description>
<Copyright>No Copyright</Copyright>
<RootNamespace>Coscine.ApiClient.Core</RootNamespace>
<Version>1.9.7</Version>
<Version>1.0.0</Version>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\Coscine.ApiClient.Core.xml</DocumentationFile>
<RepositoryUrl>https://github.com/GIT_USER_ID/GIT_REPO_ID.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
......
......@@ -43,8 +43,8 @@ namespace Coscine.ApiClient.Core.Model
/// </summary>
/// <param name="id">The unique identifier of the user. (required).</param>
/// <param name="displayName">The display name of the user. (required).</param>
/// <param name="givenName">The given name of the user. (required).</param>
/// <param name="familyName">The family name of the user. (required).</param>
/// <param name="givenName">The given name of the user.</param>
/// <param name="familyName">The family name of the user.</param>
/// <param name="emails">The email addresses associated with the user. (required).</param>
/// <param name="title">title.</param>
/// <param name="language">language.</param>
......@@ -62,18 +62,6 @@ namespace Coscine.ApiClient.Core.Model
throw new ArgumentNullException("displayName is a required property for UserDto and cannot be null");
}
this.DisplayName = displayName;
// to ensure "givenName" is required (not null)
if (givenName == null)
{
throw new ArgumentNullException("givenName is a required property for UserDto and cannot be null");
}
this.GivenName = givenName;
// to ensure "familyName" is required (not null)
if (familyName == null)
{
throw new ArgumentNullException("familyName is a required property for UserDto and cannot be null");
}
this.FamilyName = familyName;
// to ensure "emails" is required (not null)
if (emails == null)
{
......@@ -99,6 +87,8 @@ namespace Coscine.ApiClient.Core.Model
throw new ArgumentNullException("identities is a required property for UserDto and cannot be null");
}
this.Identities = identities;
this.GivenName = givenName;
this.FamilyName = familyName;
this.Title = title;
this.Language = language;
this.LatestActivity = latestActivity;
......@@ -122,14 +112,14 @@ namespace Coscine.ApiClient.Core.Model
/// The given name of the user.
/// </summary>
/// <value>The given name of the user.</value>
[DataMember(Name = "givenName", IsRequired = true, EmitDefaultValue = true)]
[DataMember(Name = "givenName", EmitDefaultValue = true)]
public string GivenName { get; set; }
/// <summary>
/// The family name of the user.
/// </summary>
/// <value>The family name of the user.</value>
[DataMember(Name = "familyName", IsRequired = true, EmitDefaultValue = true)]
[DataMember(Name = "familyName", EmitDefaultValue = true)]
public string FamilyName { get; set; }
/// <summary>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment