Skip to content

Regenerate SDK with finalized SDK generator and write integration tests #537

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 27 commits into from
Mar 18, 2019

Conversation

mediumTaj
Copy link
Contributor

@mediumTaj mediumTaj commented Mar 15, 2019

Summary

Sorry for the huge PR....

This pull request addresses all generator issues in the Unity SDK and regenerates all services based on the latest openapi3 specs. Integration tests for all services were written using UnityTestRunner.

mediumTaj added 24 commits March 6, 2019 15:23
Generator changes for null forms params, body param types
@mediumTaj mediumTaj requested a review from mamoonraja March 15, 2019 22:55
@mediumTaj mediumTaj changed the title Feature v3 generate integration tests Regenerate SDK with finalized SDK generator and write integration tests Mar 15, 2019
Copy link
Member

@mamoonraja mamoonraja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left few comments, looks good overall. 🤞

@@ -199,7 +199,7 @@ public class DigressOutSlotsValue
/// - It must be no longer than 1024 characters.
/// </summary>
[JsonProperty("dialog_node", NullValueHandling = NullValueHandling.Ignore)]
public string DialogNodeId { get; set; }
public string _DialogNode { get; set; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is it _DialogNode now?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a model cannot have a property with the same name (in this case DialogNode.DialogNode). That is reserved for the constructor. In the generator we append _ to this. When it was handwritten I just added Id

@@ -17,22 +17,22 @@

using Newtonsoft.Json;

namespace IBM.Watson.Discovery.V1.Model
namespace IBM.Watson.CompareComply.V1.Model
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I am missing it but I am not seeing the Discovery Model, are we getting rid of it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm the discovery models are there - this might be some weird renaming thing

@@ -25,17 +25,17 @@ namespace IBM.Watson.Discovery.V1.Model
public class TrainingExample
{
/// <summary>
/// Gets or Sets DocumentId
/// The document ID associated with this training example.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignore the comment on CNC, here it is.

@mediumTaj mediumTaj merged commit 1301ce5 into v3.0.0 Mar 18, 2019
@mediumTaj mediumTaj deleted the feature-v3-generate-integration-tests branch March 18, 2019 19:08
@mediumTaj
Copy link
Contributor Author

🎉 This PR is included in version 3.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants