-
Notifications
You must be signed in to change notification settings - Fork 207
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
Conversation
Generator changes for null forms params, body param types
There was a problem hiding this 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; } |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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.
🎉 This PR is included in version 3.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.