diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/all_of_with_single_ref.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/all_of_with_single_ref.rb index 4efc82eac4a..89884ca12b0 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/all_of_with_single_ref.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/all_of_with_single_ref.rb @@ -43,7 +43,6 @@ module Petstore # List of attributes with nullable: true def self.openapi_nullable Set.new([ - :'single_ref_type' ]) end diff --git a/samples/client/petstore/rust/hyper/petstore/docs/ActionContainer.md b/samples/client/petstore/rust/hyper/petstore/docs/ActionContainer.md index d705faa58f2..8490ec5d821 100644 --- a/samples/client/petstore/rust/hyper/petstore/docs/ActionContainer.md +++ b/samples/client/petstore/rust/hyper/petstore/docs/ActionContainer.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**action** | Option<[**crate::models::Baz**](Baz.md)> | | +**action** | [**crate::models::Baz**](Baz.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/rust/hyper/petstore/src/models/action_container.rs b/samples/client/petstore/rust/hyper/petstore/src/models/action_container.rs index b63126c05e9..32d925eed3d 100644 --- a/samples/client/petstore/rust/hyper/petstore/src/models/action_container.rs +++ b/samples/client/petstore/rust/hyper/petstore/src/models/action_container.rs @@ -14,13 +14,13 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct ActionContainer { #[serde(rename = "action")] - pub action: Option>, + pub action: Box, } impl ActionContainer { - pub fn new(action: Option) -> ActionContainer { + pub fn new(action: crate::models::Baz) -> ActionContainer { ActionContainer { - action: if let Some(x) = action {Some(Box::new(x))} else {None}, + action: Box::new(action), } } } diff --git a/samples/client/petstore/rust/reqwest/petstore/docs/ActionContainer.md b/samples/client/petstore/rust/reqwest/petstore/docs/ActionContainer.md index d705faa58f2..8490ec5d821 100644 --- a/samples/client/petstore/rust/reqwest/petstore/docs/ActionContainer.md +++ b/samples/client/petstore/rust/reqwest/petstore/docs/ActionContainer.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**action** | Option<[**crate::models::Baz**](Baz.md)> | | +**action** | [**crate::models::Baz**](Baz.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/rust/reqwest/petstore/src/models/action_container.rs b/samples/client/petstore/rust/reqwest/petstore/src/models/action_container.rs index b63126c05e9..32d925eed3d 100644 --- a/samples/client/petstore/rust/reqwest/petstore/src/models/action_container.rs +++ b/samples/client/petstore/rust/reqwest/petstore/src/models/action_container.rs @@ -14,13 +14,13 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct ActionContainer { #[serde(rename = "action")] - pub action: Option>, + pub action: Box, } impl ActionContainer { - pub fn new(action: Option) -> ActionContainer { + pub fn new(action: crate::models::Baz) -> ActionContainer { ActionContainer { - action: if let Some(x) = action {Some(Box::new(x))} else {None}, + action: Box::new(action), } } }