Skip to content

Commit 74daaa1

Browse files
committed
update samples
1 parent 543675d commit 74daaa1

File tree

53 files changed

+36
-136
lines changed

Some content is hidden

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

53 files changed

+36
-136
lines changed

samples/client/petstore/csharp/generichost/latest/OneOfList/src/Org.OpenAPITools/Model/OneOfArrayRequest.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ internal OneOfArrayRequest(List<string> list)
4343
/// <summary>
4444
/// Initializes a new instance of the <see cref="OneOfArrayRequest" /> class.
4545
/// </summary>
46-
/// <param name="list"></param>
47-
internal OneOfArrayRequest(List<TestObject> list)
46+
/// <param name="list1"></param>
47+
internal OneOfArrayRequest(List<TestObject> list1)
4848
{
49-
List = list;
49+
List1 = list1;
5050
OnCreated();
5151
}
5252

@@ -58,9 +58,9 @@ internal OneOfArrayRequest(List<TestObject> list)
5858
public List<string>? List { get; set; }
5959

6060
/// <summary>
61-
/// Gets or Sets List
61+
/// Gets or Sets List1
6262
/// </summary>
63-
public List<TestObject>? List { get; set; }
63+
public List<TestObject>? List1 { get; set; }
6464

6565
/// <summary>
6666
/// Returns the string presentation of the object
@@ -108,7 +108,7 @@ public override OneOfArrayRequest Read(ref Utf8JsonReader utf8JsonReader, Type t
108108
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
109109

110110
List<string>? list = default;
111-
List<TestObject>? list = default;
111+
List<TestObject>? list1 = default;
112112

113113
Utf8JsonReader utf8JsonReaderOneOf = utf8JsonReader;
114114
while (utf8JsonReaderOneOf.Read())
@@ -124,8 +124,8 @@ public override OneOfArrayRequest Read(ref Utf8JsonReader utf8JsonReader, Type t
124124
Utf8JsonReader utf8JsonReaderList = utf8JsonReader;
125125
ClientUtils.TryDeserialize<List<string>?>(ref utf8JsonReaderList, jsonSerializerOptions, out list);
126126

127-
Utf8JsonReader utf8JsonReaderList = utf8JsonReader;
128-
ClientUtils.TryDeserialize<List<TestObject>?>(ref utf8JsonReaderList, jsonSerializerOptions, out list);
127+
Utf8JsonReader utf8JsonReaderList1 = utf8JsonReader;
128+
ClientUtils.TryDeserialize<List<TestObject>?>(ref utf8JsonReaderList1, jsonSerializerOptions, out list1);
129129
}
130130
}
131131

@@ -153,8 +153,8 @@ public override OneOfArrayRequest Read(ref Utf8JsonReader utf8JsonReader, Type t
153153
if (list != null)
154154
return new OneOfArrayRequest(list);
155155

156-
if (list != null)
157-
return new OneOfArrayRequest(list);
156+
if (list1 != null)
157+
return new OneOfArrayRequest(list1);
158158

159159
throw new JsonException();
160160
}

samples/client/petstore/elixir/mix.exs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ defmodule OpenapiPetstore.Mixfile do
3535
# Type "mix help deps" for more examples and options
3636
defp deps do
3737
[
38-
{:tesla, "~> 1.7"},
39-
{:ex_doc, "~> 0.30", only: :dev, runtime: false},
40-
{:dialyxir, "~> 1.3", only: [:dev, :test], runtime: false}
38+
{:tesla, "~> 1.14"},
39+
{:ex_doc, "~> 0.37.3", only: :dev, runtime: false},
40+
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false}
4141
]
4242
end
4343

samples/client/petstore/rust/hyper/petstore/.openapi-generator/FILES

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ docs/ApiResponse.md
88
docs/ArrayItemRefTest.md
99
docs/Baz.md
1010
docs/Category.md
11-
docs/DuplicateOneOf.md
1211
docs/DuplicateTest.md
1312
docs/Duplicatetest.md
1413
docs/EnumArrayTesting.md
@@ -34,7 +33,6 @@ docs/User.md
3433
docs/UserApi.md
3534
docs/Vehicle.md
3635
docs/WithInnerOneOf.md
37-
docs/WithInnerOneOfFoo.md
3836
git_push.sh
3937
src/apis/client.rs
4038
src/apis/configuration.rs
@@ -53,7 +51,6 @@ src/models/api_response.rs
5351
src/models/array_item_ref_test.rs
5452
src/models/baz.rs
5553
src/models/category.rs
56-
src/models/duplicate_one_of.rs
5754
src/models/duplicate_test.rs
5855
src/models/duplicatetest.rs
5956
src/models/enum_array_testing.rs
@@ -74,4 +71,3 @@ src/models/unique_item_array_testing.rs
7471
src/models/user.rs
7572
src/models/vehicle.rs
7673
src/models/with_inner_one_of.rs
77-
src/models/with_inner_one_of_foo.rs

samples/client/petstore/rust/hyper/petstore/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ Class | Method | HTTP request | Description
6161
- [ArrayItemRefTest](docs/ArrayItemRefTest.md)
6262
- [Baz](docs/Baz.md)
6363
- [Category](docs/Category.md)
64-
- [DuplicateOneOf](docs/DuplicateOneOf.md)
6564
- [DuplicateTest](docs/DuplicateTest.md)
6665
- [Duplicatetest](docs/Duplicatetest.md)
6766
- [EnumArrayTesting](docs/EnumArrayTesting.md)
@@ -82,7 +81,6 @@ Class | Method | HTTP request | Description
8281
- [User](docs/User.md)
8382
- [Vehicle](docs/Vehicle.md)
8483
- [WithInnerOneOf](docs/WithInnerOneOf.md)
85-
- [WithInnerOneOfFoo](docs/WithInnerOneOfFoo.md)
8684

8785

8886
To get access to the crate's generated documentation, use:

samples/client/petstore/rust/hyper/petstore/docs/WithInnerOneOf.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**foo** | Option<[**models::WithInnerOneOfFoo**](WithInnerOneOf_foo.md)> | | [optional]
7+
**foo** | Option<[**models::Order**](Order.md)> | | [optional]
88

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

samples/client/petstore/rust/hyper/petstore/src/models/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ pub mod baz;
1010
pub use self::baz::Baz;
1111
pub mod category;
1212
pub use self::category::Category;
13-
pub mod duplicate_one_of;
14-
pub use self::duplicate_one_of::DuplicateOneOf;
1513
pub mod duplicate_test;
1614
pub use self::duplicate_test::DuplicateTest;
1715
pub mod duplicatetest;
@@ -52,8 +50,6 @@ pub mod vehicle;
5250
pub use self::vehicle::Vehicle;
5351
pub mod with_inner_one_of;
5452
pub use self::with_inner_one_of::WithInnerOneOf;
55-
pub mod with_inner_one_of_foo;
56-
pub use self::with_inner_one_of_foo::WithInnerOneOfFoo;
5753
use serde::{Deserialize, Deserializer, Serializer};
5854
use serde_with::{de::DeserializeAsWrap, ser::SerializeAsWrap, DeserializeAs, SerializeAs};
5955
use std::marker::PhantomData;

samples/client/petstore/rust/hyper/petstore/src/models/with_inner_one_of.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use serde::{Deserialize, Serialize};
1414
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
1515
pub struct WithInnerOneOf {
1616
#[serde(rename = "foo", skip_serializing_if = "Option::is_none")]
17-
pub foo: Option<Box<models::WithInnerOneOfFoo>>,
17+
pub foo: Option<Box<models::Order>>,
1818
}
1919

2020
impl WithInnerOneOf {

samples/client/petstore/rust/hyper0x/petstore/.openapi-generator/FILES

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ docs/ApiResponse.md
88
docs/ArrayItemRefTest.md
99
docs/Baz.md
1010
docs/Category.md
11-
docs/DuplicateOneOf.md
1211
docs/DuplicateTest.md
1312
docs/Duplicatetest.md
1413
docs/EnumArrayTesting.md
@@ -34,7 +33,6 @@ docs/User.md
3433
docs/UserApi.md
3534
docs/Vehicle.md
3635
docs/WithInnerOneOf.md
37-
docs/WithInnerOneOfFoo.md
3836
git_push.sh
3937
src/apis/configuration.rs
4038
src/apis/fake_api.rs
@@ -51,7 +49,6 @@ src/models/api_response.rs
5149
src/models/array_item_ref_test.rs
5250
src/models/baz.rs
5351
src/models/category.rs
54-
src/models/duplicate_one_of.rs
5552
src/models/duplicate_test.rs
5653
src/models/duplicatetest.rs
5754
src/models/enum_array_testing.rs
@@ -72,4 +69,3 @@ src/models/unique_item_array_testing.rs
7269
src/models/user.rs
7370
src/models/vehicle.rs
7471
src/models/with_inner_one_of.rs
75-
src/models/with_inner_one_of_foo.rs

samples/client/petstore/rust/hyper0x/petstore/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ Class | Method | HTTP request | Description
6161
- [ArrayItemRefTest](docs/ArrayItemRefTest.md)
6262
- [Baz](docs/Baz.md)
6363
- [Category](docs/Category.md)
64-
- [DuplicateOneOf](docs/DuplicateOneOf.md)
6564
- [DuplicateTest](docs/DuplicateTest.md)
6665
- [Duplicatetest](docs/Duplicatetest.md)
6766
- [EnumArrayTesting](docs/EnumArrayTesting.md)
@@ -82,7 +81,6 @@ Class | Method | HTTP request | Description
8281
- [User](docs/User.md)
8382
- [Vehicle](docs/Vehicle.md)
8483
- [WithInnerOneOf](docs/WithInnerOneOf.md)
85-
- [WithInnerOneOfFoo](docs/WithInnerOneOfFoo.md)
8684

8785

8886
To get access to the crate's generated documentation, use:

samples/client/petstore/rust/hyper0x/petstore/docs/WithInnerOneOf.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**foo** | Option<[**models::WithInnerOneOfFoo**](WithInnerOneOf_foo.md)> | | [optional]
7+
**foo** | Option<[**models::Order**](Order.md)> | | [optional]
88

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

0 commit comments

Comments
 (0)