Skip to content

Commit 445f4e1

Browse files
authored
Resolve VCSWP-23469 (#73)
* Make edits to a property in the CreateConferenceRequest model * Resolve dependabot issues
1 parent eb63744 commit 445f4e1

11 files changed

Lines changed: 56 additions & 18 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
99

1010
None
1111

12+
<a name="5.1.1"></a>
13+
14+
## [5.1.1] - 2025-02-18
15+
16+
### Changed
17+
18+
- Make statusCallbackURL property mandatory for CreateConference
19+
1220
<a name="5.1.0"></a>
1321

1422
## [5.1.0] - 2025-02-05

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ FreeClimb is a cloud-based application programming interface (API) that puts the
55
This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
66

77
- API version: 1.0.0
8-
- SDK version: 5.1.0
8+
- SDK version: 5.1.1
99
- Generator version: 7.9.0
1010
- Build package: org.openapitools.codegen.languages.CSharpClientCodegen
1111
For more information, please visit [https://www.freeclimb.com/support/](https://www.freeclimb.com/support/)

api/openapi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7172,6 +7172,8 @@ components:
71727172
type: string
71737173
x-is-uri: true
71747174
x-is-url: true
7175+
required:
7176+
- statusCallbackUrl
71757177
type: object
71767178
x-is-object: true
71777179
UpdateConferenceRequest:

docs/CreateConferenceRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
88
**PlayBeep** | **PlayBeep** | | [optional]
99
**Record** | **bool** | Setting to &#x60;true&#x60; records the entire Conference. | [optional]
1010
**WaitUrl** | **string** | If specified, a URL for the audio file that provides custom hold music for the Conference when it is in the populated state. Otherwise, FreeClimb uses a system default audio file. This is always fetched using HTTP GET and is fetched just once &amp;mdash; when the Conference is created. | [optional]
11-
**StatusCallbackUrl** | **string** | This URL is invoked when the status of the Conference changes. For more information, see **statusCallbackUrl** (below). | [optional]
11+
**StatusCallbackUrl** | **string** | This URL is invoked when the status of the Conference changes. For more information, see **statusCallbackUrl** (below). |
1212

1313
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1414

freeclimb.sln

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio 2012
33
VisualStudioVersion = 12.0.0.0
44
MinimumVisualStudioVersion = 10.0.0.1
5-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "freeclimb", "src\freeclimb\freeclimb.csproj", "{C91A178A-2C49-4F49-8DE1-BC53237FCA10}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "freeclimb", "src\freeclimb\freeclimb.csproj", "{75EF5E96-F036-4274-BB32-E22B855616F5}"
66
EndProject
77
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "freeclimb.Test", "src\freeclimb.Test\freeclimb.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
88
EndProject
@@ -12,10 +12,10 @@ Global
1212
Release|Any CPU = Release|Any CPU
1313
EndGlobalSection
1414
GlobalSection(ProjectConfigurationPlatforms) = postSolution
15-
{C91A178A-2C49-4F49-8DE1-BC53237FCA10}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16-
{C91A178A-2C49-4F49-8DE1-BC53237FCA10}.Debug|Any CPU.Build.0 = Debug|Any CPU
17-
{C91A178A-2C49-4F49-8DE1-BC53237FCA10}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{C91A178A-2C49-4F49-8DE1-BC53237FCA10}.Release|Any CPU.Build.0 = Release|Any CPU
15+
{75EF5E96-F036-4274-BB32-E22B855616F5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{75EF5E96-F036-4274-BB32-E22B855616F5}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{75EF5E96-F036-4274-BB32-E22B855616F5}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{75EF5E96-F036-4274-BB32-E22B855616F5}.Release|Any CPU.Build.0 = Release|Any CPU
1919
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2020
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
2121
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"dependencies": {
33
"@stoplight/prism-cli": "5.6.0",
44
"fast-xml-parser": "^4.5.0",
5-
"jsonpath-plus": "^10.0.0"
5+
"jsonpath-plus": "^10.3.0"
66
},
77
"resolutions": {
88
"@stoplight/json": "3.20.0"

src/freeclimb.Test/Api/DefaultApiTests.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1457,7 +1457,13 @@ private MakeCallRequest makeCallRequestTestValue()
14571457
private CreateConferenceRequest createConferenceRequestTestValue()
14581458
{
14591459
PlayBeep enumPlayBeepStatus = PlayBeepValueConverter.FromString("always");
1460-
return new CreateConferenceRequest("TEST-CONF", enumPlayBeepStatus, true);
1460+
return new CreateConferenceRequest(
1461+
"TEST-CONF",
1462+
enumPlayBeepStatus,
1463+
true,
1464+
"https://test.ca",
1465+
"https://test.ca"
1466+
);
14611467
}
14621468

14631469
private ConferenceResult conferenceResultTestValue()

src/freeclimb/Client/Configuration.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class Configuration : IReadableConfiguration
3434
/// Version of the package.
3535
/// </summary>
3636
/// <value>Version of the package.</value>
37-
public const string Version = "5.1.0";
37+
public const string Version = "5.1.1";
3838

3939
/// <summary>
4040
/// Identifier for ISO 8601 DateTime Format
@@ -130,7 +130,7 @@ private IReadOnlyDictionary<
130130
public Configuration()
131131
{
132132
Proxy = null;
133-
UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/5.1.0/csharp");
133+
UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/5.1.1/csharp");
134134
BasePath = "https://www.freeclimb.com/apiserver";
135135
DefaultHeaders = new ConcurrentDictionary<string, string>();
136136
ApiKey = new ConcurrentDictionary<string, string>();
@@ -582,7 +582,7 @@ public static string ToDebugReport()
582582
report += " OS: " + System.Environment.OSVersion + "\n";
583583
report += " .NET Framework Version: " + System.Environment.Version + "\n";
584584
report += " Version of the API: 1.0.0\n";
585-
report += " SDK Package Version: 5.1.0\n";
585+
report += " SDK Package Version: 5.1.1\n";
586586

587587
return report;
588588
}

src/freeclimb/Model/CreateConferenceRequest.cs

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,20 @@ public partial class CreateConferenceRequest : IValidatableObject
3939
[DataMember(Name = "playBeep", EmitDefaultValue = true)]
4040
public PlayBeep? PlayBeep { get; set; }
4141

42+
/// <summary>
43+
/// Initializes a new instance of the <see cref="CreateConferenceRequest" /> class.
44+
/// </summary>
45+
[JsonConstructorAttribute]
46+
protected CreateConferenceRequest() { }
47+
4248
/// <summary>
4349
/// Initializes a new instance of the <see cref="CreateConferenceRequest" /> class.
4450
/// </summary>
4551
/// <param name="alias">A description for this Conference. Maximum 64 characters..</param>
4652
/// <param name="playBeep">playBeep.</param>
4753
/// <param name="record">Setting to &#x60;true&#x60; records the entire Conference..</param>
4854
/// <param name="waitUrl">If specified, a URL for the audio file that provides custom hold music for the Conference when it is in the populated state. Otherwise, FreeClimb uses a system default audio file. This is always fetched using HTTP GET and is fetched just once &amp;mdash; when the Conference is created..</param>
49-
/// <param name="statusCallbackUrl">This URL is invoked when the status of the Conference changes. For more information, see **statusCallbackUrl** (below)..</param>
55+
/// <param name="statusCallbackUrl">This URL is invoked when the status of the Conference changes. For more information, see **statusCallbackUrl** (below). (required).</param>
5056
public CreateConferenceRequest(
5157
string alias = default(string),
5258
PlayBeep? playBeep = default(PlayBeep?),
@@ -55,15 +61,22 @@ public CreateConferenceRequest(
5561
string statusCallbackUrl = default(string)
5662
)
5763
{
64+
// to ensure "statusCallbackUrl" is required (not null)
65+
if (statusCallbackUrl == null)
66+
{
67+
throw new ArgumentNullException(
68+
"statusCallbackUrl is a required property for CreateConferenceRequest and cannot be null"
69+
);
70+
}
71+
this.StatusCallbackUrl = statusCallbackUrl;
72+
5873
this.Alias = alias;
5974

6075
this.PlayBeep = playBeep;
6176

6277
this.Record = record;
6378

6479
this.WaitUrl = waitUrl;
65-
66-
this.StatusCallbackUrl = statusCallbackUrl;
6780
}
6881

6982
/// <summary>
@@ -91,7 +104,7 @@ public CreateConferenceRequest(
91104
/// This URL is invoked when the status of the Conference changes. For more information, see **statusCallbackUrl** (below).
92105
/// </summary>
93106
/// <value>This URL is invoked when the status of the Conference changes. For more information, see **statusCallbackUrl** (below).</value>
94-
[DataMember(Name = "statusCallbackUrl", EmitDefaultValue = false)]
107+
[DataMember(Name = "statusCallbackUrl", IsRequired = true, EmitDefaultValue = true)]
95108
public string StatusCallbackUrl { get; set; }
96109

97110
/// <summary>

src/freeclimb/freeclimb.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<Description>A library generated from a OpenAPI doc</Description>
1313
<Copyright>No Copyright</Copyright>
1414
<RootNamespace>freeclimb</RootNamespace>
15-
<Version>5.1.0</Version>
15+
<Version>5.1.1</Version>
1616
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\freeclimb.xml</DocumentationFile>
1717
<RepositoryUrl>https://github.com/freeclimbapi/csharp-sdk.git</RepositoryUrl>
1818
<RepositoryType>git</RepositoryType>

0 commit comments

Comments
 (0)