Skip to content

Commit 5a116f4

Browse files
build: give explicit titles to fix build warnings
1 parent 8d2e780 commit 5a116f4

43 files changed

Lines changed: 3061 additions & 2876 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.stats.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 47
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc/imagekit-59ecd0e32aaade3cf2b31e6f757697c0a4f1c4c8ed3e52fb25b1071f592db509.yml
3-
openapi_spec_hash: 7c103e2dff0edcbeea82057e62f58d4d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc/imagekit-4df977cf1706b48f9d9f15d7e134d5bb062607bcf206a406a239ff6691852e7d.yml
3+
openapi_spec_hash: fd7c931960b5d8a4c1072a69a5a3e6a1
44
config_hash: c5a7aed248c5d9ad5cd42e56fdd62c12

‎src/Imagekit.Tests/Models/GetImageAttributesOptionsTest.cs‎

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public void FieldRoundtrip_Works()
7575
Start = 0,
7676
},
7777
Text = "text",
78-
Encoding = TextOverlayIntersectionMember1Encoding.Auto,
78+
Encoding = TextOverlayTextOverlayEncoding.Auto,
7979
Transformation =
8080
[
8181
new()
@@ -187,7 +187,7 @@ public void FieldRoundtrip_Works()
187187
Start = 0,
188188
},
189189
Text = "text",
190-
Encoding = TextOverlayIntersectionMember1Encoding.Auto,
190+
Encoding = TextOverlayTextOverlayEncoding.Auto,
191191
Transformation =
192192
[
193193
new()
@@ -339,7 +339,7 @@ public void SerializationRoundtrip_Works()
339339
Start = 0,
340340
},
341341
Text = "text",
342-
Encoding = TextOverlayIntersectionMember1Encoding.Auto,
342+
Encoding = TextOverlayTextOverlayEncoding.Auto,
343343
Transformation =
344344
[
345345
new()
@@ -465,7 +465,7 @@ public void FieldRoundtripThroughSerialization_Works()
465465
Start = 0,
466466
},
467467
Text = "text",
468-
Encoding = TextOverlayIntersectionMember1Encoding.Auto,
468+
Encoding = TextOverlayTextOverlayEncoding.Auto,
469469
Transformation =
470470
[
471471
new()
@@ -584,7 +584,7 @@ public void FieldRoundtripThroughSerialization_Works()
584584
Start = 0,
585585
},
586586
Text = "text",
587-
Encoding = TextOverlayIntersectionMember1Encoding.Auto,
587+
Encoding = TextOverlayTextOverlayEncoding.Auto,
588588
Transformation =
589589
[
590590
new()
@@ -736,7 +736,7 @@ public void Validation_Works()
736736
Start = 0,
737737
},
738738
Text = "text",
739-
Encoding = TextOverlayIntersectionMember1Encoding.Auto,
739+
Encoding = TextOverlayTextOverlayEncoding.Auto,
740740
Transformation =
741741
[
742742
new()
@@ -960,7 +960,7 @@ public void CopyConstructor_Works()
960960
Start = 0,
961961
},
962962
Text = "text",
963-
Encoding = TextOverlayIntersectionMember1Encoding.Auto,
963+
Encoding = TextOverlayTextOverlayEncoding.Auto,
964964
Transformation =
965965
[
966966
new()
@@ -1015,12 +1015,12 @@ public void CopyConstructor_Works()
10151015
}
10161016
}
10171017

1018-
public class IntersectionMember1Test : TestBase
1018+
public class GetImageAttributesOptionsGetImageAttributesOptionsTest : TestBase
10191019
{
10201020
[Fact]
10211021
public void FieldRoundtrip_Works()
10221022
{
1023-
var model = new IntersectionMember1
1023+
var model = new GetImageAttributesOptionsGetImageAttributesOptions
10241024
{
10251025
DeviceBreakpoints = [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
10261026
ImageBreakpoints = [16, 32, 48, 64, 96, 128, 256, 384],
@@ -1052,7 +1052,7 @@ public void FieldRoundtrip_Works()
10521052
[Fact]
10531053
public void SerializationRoundtrip_Works()
10541054
{
1055-
var model = new IntersectionMember1
1055+
var model = new GetImageAttributesOptionsGetImageAttributesOptions
10561056
{
10571057
DeviceBreakpoints = [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
10581058
ImageBreakpoints = [16, 32, 48, 64, 96, 128, 256, 384],
@@ -1061,18 +1061,19 @@ public void SerializationRoundtrip_Works()
10611061
};
10621062

10631063
string json = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
1064-
var deserialized = JsonSerializer.Deserialize<IntersectionMember1>(
1065-
json,
1066-
ModelBase.SerializerOptions
1067-
);
1064+
var deserialized =
1065+
JsonSerializer.Deserialize<GetImageAttributesOptionsGetImageAttributesOptions>(
1066+
json,
1067+
ModelBase.SerializerOptions
1068+
);
10681069

10691070
Assert.Equal(model, deserialized);
10701071
}
10711072

10721073
[Fact]
10731074
public void FieldRoundtripThroughSerialization_Works()
10741075
{
1075-
var model = new IntersectionMember1
1076+
var model = new GetImageAttributesOptionsGetImageAttributesOptions
10761077
{
10771078
DeviceBreakpoints = [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
10781079
ImageBreakpoints = [16, 32, 48, 64, 96, 128, 256, 384],
@@ -1081,10 +1082,11 @@ public void FieldRoundtripThroughSerialization_Works()
10811082
};
10821083

10831084
string element = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
1084-
var deserialized = JsonSerializer.Deserialize<IntersectionMember1>(
1085-
element,
1086-
ModelBase.SerializerOptions
1087-
);
1085+
var deserialized =
1086+
JsonSerializer.Deserialize<GetImageAttributesOptionsGetImageAttributesOptions>(
1087+
element,
1088+
ModelBase.SerializerOptions
1089+
);
10881090
Assert.NotNull(deserialized);
10891091

10901092
List<double> expectedDeviceBreakpoints = [640, 750, 828, 1080, 1200, 1920, 2048, 3840];
@@ -1111,7 +1113,7 @@ public void FieldRoundtripThroughSerialization_Works()
11111113
[Fact]
11121114
public void Validation_Works()
11131115
{
1114-
var model = new IntersectionMember1
1116+
var model = new GetImageAttributesOptionsGetImageAttributesOptions
11151117
{
11161118
DeviceBreakpoints = [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
11171119
ImageBreakpoints = [16, 32, 48, 64, 96, 128, 256, 384],
@@ -1125,7 +1127,7 @@ public void Validation_Works()
11251127
[Fact]
11261128
public void OptionalNonNullablePropertiesUnsetAreNotSet_Works()
11271129
{
1128-
var model = new IntersectionMember1 { };
1130+
var model = new GetImageAttributesOptionsGetImageAttributesOptions { };
11291131

11301132
Assert.Null(model.DeviceBreakpoints);
11311133
Assert.False(model.RawData.ContainsKey("deviceBreakpoints"));
@@ -1140,15 +1142,15 @@ public void OptionalNonNullablePropertiesUnsetAreNotSet_Works()
11401142
[Fact]
11411143
public void OptionalNonNullablePropertiesUnsetValidation_Works()
11421144
{
1143-
var model = new IntersectionMember1 { };
1145+
var model = new GetImageAttributesOptionsGetImageAttributesOptions { };
11441146

11451147
model.Validate();
11461148
}
11471149

11481150
[Fact]
11491151
public void OptionalNonNullablePropertiesSetToNullAreNotSet_Works()
11501152
{
1151-
var model = new IntersectionMember1
1153+
var model = new GetImageAttributesOptionsGetImageAttributesOptions
11521154
{
11531155
// Null should be interpreted as omitted for these properties
11541156
DeviceBreakpoints = null,
@@ -1170,7 +1172,7 @@ public void OptionalNonNullablePropertiesSetToNullAreNotSet_Works()
11701172
[Fact]
11711173
public void OptionalNonNullablePropertiesSetToNullValidation_Works()
11721174
{
1173-
var model = new IntersectionMember1
1175+
var model = new GetImageAttributesOptionsGetImageAttributesOptions
11741176
{
11751177
// Null should be interpreted as omitted for these properties
11761178
DeviceBreakpoints = null,
@@ -1185,15 +1187,15 @@ public void OptionalNonNullablePropertiesSetToNullValidation_Works()
11851187
[Fact]
11861188
public void CopyConstructor_Works()
11871189
{
1188-
var model = new IntersectionMember1
1190+
var model = new GetImageAttributesOptionsGetImageAttributesOptions
11891191
{
11901192
DeviceBreakpoints = [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
11911193
ImageBreakpoints = [16, 32, 48, 64, 96, 128, 256, 384],
11921194
Sizes = "(min-width: 768px) 50vw, 100vw",
11931195
Width = 400,
11941196
};
11951197

1196-
IntersectionMember1 copied = new(model);
1198+
GetImageAttributesOptionsGetImageAttributesOptions copied = new(model);
11971199

11981200
Assert.Equal(model, copied);
11991201
}

0 commit comments

Comments
 (0)