forked from loafle/openapi-generator-original
update samples
This commit is contained in:
parent
9d9e0a4335
commit
cfb35f97ef
@ -43,7 +43,6 @@ module Petstore
|
|||||||
# List of attributes with nullable: true
|
# List of attributes with nullable: true
|
||||||
def self.openapi_nullable
|
def self.openapi_nullable
|
||||||
Set.new([
|
Set.new([
|
||||||
:'single_ref_type'
|
|
||||||
])
|
])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
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)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -14,13 +14,13 @@
|
|||||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||||
pub struct ActionContainer {
|
pub struct ActionContainer {
|
||||||
#[serde(rename = "action")]
|
#[serde(rename = "action")]
|
||||||
pub action: Option<Box<crate::models::Baz>>,
|
pub action: Box<crate::models::Baz>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ActionContainer {
|
impl ActionContainer {
|
||||||
pub fn new(action: Option<crate::models::Baz>) -> ActionContainer {
|
pub fn new(action: crate::models::Baz) -> ActionContainer {
|
||||||
ActionContainer {
|
ActionContainer {
|
||||||
action: if let Some(x) = action {Some(Box::new(x))} else {None},
|
action: Box::new(action),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
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)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -14,13 +14,13 @@
|
|||||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||||
pub struct ActionContainer {
|
pub struct ActionContainer {
|
||||||
#[serde(rename = "action")]
|
#[serde(rename = "action")]
|
||||||
pub action: Option<Box<crate::models::Baz>>,
|
pub action: Box<crate::models::Baz>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ActionContainer {
|
impl ActionContainer {
|
||||||
pub fn new(action: Option<crate::models::Baz>) -> ActionContainer {
|
pub fn new(action: crate::models::Baz) -> ActionContainer {
|
||||||
ActionContainer {
|
ActionContainer {
|
||||||
action: if let Some(x) = action {Some(Box::new(x))} else {None},
|
action: Box::new(action),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user