Skip to content
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

Libs(all): bump openapi generator from 5.2.0 to 7.9.0 #1480

Merged
merged 53 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
338e195
Libs(all): bump openapi generator version 5.2.0 -> 7.9.0
svix-onelson Oct 8, 2024
30a136e
Libs(Go): small fixups to regen script for Go
svix-onelson Oct 8, 2024
aad44d5
Libs(all): update spec for stream sinks
svix-onelson Oct 8, 2024
d2481da
Libs(all): skip using templates for openapi codegen
svix-onelson Oct 8, 2024
cf70bc0
Libs(csharp): update generator name from `csharp-netcore` to `csharp`
svix-onelson Oct 8, 2024
aa2032b
Libs(Rust): fixups to public API for updated codegen
svix-onelson Oct 8, 2024
2dbb963
Libs(Rust): bring back the templates for rust
svix-onelson Oct 8, 2024
9b2c813
Libs(Rust): update mode.mustache to generator `v7.9.0`
svix-onelson Oct 8, 2024
789b606
Libs(Rust): update `model.mustache` to allow some imports to go unused
svix-onelson Oct 8, 2024
82ddbc4
Libs(csharp): ignore spec placed in module tree by generator
svix-onelson Oct 8, 2024
3b144fe
Libs(Ruby): ignore generated gitlab ci config
svix-onelson Oct 8, 2024
2282c4b
Libs(Ruby): add back the templates
svix-onelson Oct 8, 2024
d6e4ec3
Libs(Ruby): reset client template to 7.9.0
svix-onelson Oct 8, 2024
d791f33
Libs(Ruby): re-apply retry support to client template
svix-onelson Oct 8, 2024
f314f54
Libs(Java): add 7.x generator template override
svix-onelson Oct 9, 2024
0aedb75
Libs(Java): reintroduce template overrides
svix-onelson Oct 9, 2024
9fa0de5
Libs(Java): add verbatim JSON template for 7.x generator
svix-onelson Oct 10, 2024
1d4c343
Libs(Java): rework ApiClient template override for 7.x
svix-onelson Oct 10, 2024
2b393b2
Libs(Java): bump deps to match 7.x generator
svix-onelson Oct 11, 2024
0fc00be
Libs(Java): ignore `jakarta.ws.rs` in typo check
svix-onelson Oct 11, 2024
7e1d7d4
Libs(Java): add kitchen sink test (like we have in Go)
svix-onelson Oct 11, 2024
b88996b
Libs(CSharp): fixup manual edits to -Patch models
svix-onelson Oct 11, 2024
8fd5ea1
Libs(kotlin): reset ApiClient template to 7.9.0 generator
svix-onelson Oct 12, 2024
dc6d735
Libs(kotlin): reintroduce openapi generator template overrides
svix-onelson Oct 12, 2024
37ad058
Libs(Kotlin): reapply local patches to 7.9.0 templates
svix-onelson Oct 15, 2024
f22acde
Libs(Kotlin): add kitchen sink test
svix-onelson Oct 16, 2024
113a754
Libs(JS): reintroduce template overrides
svix-onelson Oct 16, 2024
9f7b4c9
Libs(JS): reset template overrides at 7.9.0
svix-onelson Oct 16, 2024
3ea6b1e
Libs(JS): reapply template override patches
svix-onelson Oct 16, 2024
c83e3c1
Libs(JS): adding a test (WIP)
svix-onelson Oct 16, 2024
55a9100
Libs(JS): add 7.9.0 generator template override for http/http
svix-onelson Oct 16, 2024
906c5c3
Libs(JS): adding http to git again
svix-onelson Oct 16, 2024
3ff87be
Libs(JS): fixup http/http to avoid using `window`
svix-onelson Oct 16, 2024
15453df
Libs(JS): add "kitchen sink" test to show serialization works
svix-onelson Oct 16, 2024
ea5af65
Libs(JS): `yarn lint:fix`
svix-onelson Oct 16, 2024
da59b02
Libs(Rust): add a "kitchen sink" test to verify null serialization
svix-onelson Oct 17, 2024
e91532e
Libs(Python): add kitchen sink test
svix-onelson Oct 17, 2024
e1f7f92
Libs(CSharp): add kitchen sink test
svix-onelson Oct 17, 2024
ec5acbd
Revert "Libs(CSharp): add kitchen sink test"
svix-onelson Oct 17, 2024
d646784
Libs(Go): fresh (7.x) codegen, updates to high-level API
svix-onelson Oct 8, 2024
241cf3a
Libs(Go): template overrides remove model_simple, use client from 7.9.0
svix-onelson Oct 8, 2024
f6a32b1
Libs(Go): re-introduce templates for Go
svix-onelson Oct 8, 2024
e591f71
Libs(Go): re-apply local patches to client.mustache
svix-onelson Oct 8, 2024
780679c
Libs(Go): regenerate client using template overrides
svix-onelson Oct 8, 2024
6a514c6
Libs(Go): update kitchen sink test to explicitly set descriptions
svix-onelson Oct 11, 2024
e11c2bd
Libs(all): reset openapi spec to look like `main`
svix-onelson Oct 17, 2024
852f28c
Libs(Go): regenerate
svix-onelson Oct 17, 2024
3e9460a
Libs(Go): resolve wrapped error issue
svix-onelson Oct 17, 2024
bfdbfa4
Libs(java,js,kt,py,rs): whitespace/import fixups
svix-onelson Oct 23, 2024
1ed6ddf
Libs(JS): update prettier and reformat
svix-onelson Oct 23, 2024
ea63e4c
Libs(Ruby): run tests during lint
svix-onelson Oct 23, 2024
d95b172
Libs(Ruby): add typhoeus as dev dependency
svix-onelson Oct 23, 2024
e6301c5
Libs(Ruby): add a kitchen sink test
svix-onelson Oct 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/ruby-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,8 @@ jobs:
run: |
cd ruby
bundler exec rake build

- name: Test
run: |
cd ruby
bundler exec rspec spec
1 change: 1 addition & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
extend-ignore-re = [
# Mock token
";iuani;ansd;ifgjbnai;sdjfgb",
"jakarta\\.ws\\.rs",
]

[files]
Expand Down
3 changes: 2 additions & 1 deletion csharp/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ msbuild.wrn

# Svix OpenApi generated content
.openapi-generator/
/Svix/Generated/OpenApi/Svix/
/Svix/Generated/OpenApi/Svix/
/api/openapi.yaml
4 changes: 4 additions & 0 deletions csharp/.openapi-generator-ignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ Svix.sln

docs/
src/
# When bumping generator versions:
# - Comment these out to "re-up" the generator source.
# - Roll back any of our local changes that got wiped out in the process.
# - Uncomment them again to prevent the generator from wiping out the manual edits.
Svix/Generated/OpenApi/Svix/Model/ApplicationPatch.cs
Svix/Generated/OpenApi/Svix/Model/EndpointPatch.cs
Svix/Generated/OpenApi/Svix/Model/EventTypePatch.cs
91 changes: 16 additions & 75 deletions csharp/Svix/Generated/OpenApi/Svix/Model/ApplicationPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace Svix.Model
/// ApplicationPatch
/// </summary>
[DataContract(Name = "ApplicationPatch")]
public partial class ApplicationPatch : IEquatable<ApplicationPatch>, IValidatableObject
public partial class ApplicationPatch : IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ApplicationPatch" /> class.
Expand Down Expand Up @@ -71,6 +71,9 @@ public partial class ApplicationPatch : IEquatable<ApplicationPatch>, IValidatab
/// The app&#39;s UID
/// </summary>
/// <value>The app&#39;s UID</value>
/*
<example>unique-app-identifier</example>
*/
[DataMember(Name = "uid", EmitDefaultValue = false)]
public string Uid { get; set; }

Expand All @@ -80,7 +83,7 @@ public partial class ApplicationPatch : IEquatable<ApplicationPatch>, IValidatab
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
StringBuilder sb = new StringBuilder();
sb.Append("class ApplicationPatch {\n");
sb.Append(" Metadata: ").Append(Metadata).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
Expand All @@ -99,101 +102,39 @@ public virtual string ToJson()
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
}

/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as ApplicationPatch);
}

/// <summary>
/// Returns true if ApplicationPatch instances are equal
/// </summary>
/// <param name="input">Instance of ApplicationPatch to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ApplicationPatch input)
{
if (input == null)
return false;

return
(
this.Metadata == input.Metadata ||
this.Metadata != null &&
input.Metadata != null &&
this.Metadata.SequenceEqual(input.Metadata)
) &&
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
) &&
(
this.RateLimit == input.RateLimit ||
(this.RateLimit != null &&
this.RateLimit.Equals(input.RateLimit))
) &&
(
this.Uid == input.Uid ||
(this.Uid != null &&
this.Uid.Equals(input.Uid))
);
}

/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Metadata != null)
hashCode = hashCode * 59 + this.Metadata.GetHashCode();
if (this.Name != null)
hashCode = hashCode * 59 + this.Name.GetHashCode();
if (this.RateLimit != null)
hashCode = hashCode * 59 + this.RateLimit.GetHashCode();
if (this.Uid != null)
hashCode = hashCode * 59 + this.Uid.GetHashCode();
return hashCode;
}
}

/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
// RateLimit (int?) minimum
if (this.RateLimit < (int?)0)
{
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RateLimit, must be a value greater than or equal to 0.", new[] { "RateLimit" });
yield return new ValidationResult("Invalid value for RateLimit, must be a value greater than or equal to 0.", new[] { "RateLimit" });
}

// Uid (string) maxLength
if (this.Uid != null && this.Uid.Length > 256)
{
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Uid, length must be less than 256.", new[] { "Uid" });
yield return new ValidationResult("Invalid value for Uid, length must be less than 256.", new[] { "Uid" });
}

// Uid (string) minLength
if (this.Uid != null && this.Uid.Length < 1)
{
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Uid, length must be greater than 1.", new[] { "Uid" });
yield return new ValidationResult("Invalid value for Uid, length must be greater than 1.", new[] { "Uid" });
}

// Uid (string) pattern
Regex regexUid = new Regex(@"^[a-zA-Z0-9\\-_.]+$", RegexOptions.CultureInvariant);
if (false == regexUid.Match(this.Uid).Success)
if (this.Uid != null)
{
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Uid, must match a pattern of " + regexUid, new[] { "Uid" });
// Uid (string) pattern
Regex regexUid = new Regex(@"^[a-zA-Z0-9\-_.]+$", RegexOptions.CultureInvariant);
if (!regexUid.Match(this.Uid).Success)
{
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Uid, must match a pattern of " + regexUid, new[] { "Uid" });
}
}

yield break;
Expand Down
Loading
Loading