forked from loafle/openapi-generator-original
Fixed Rust model files not matching module imports causing compiler errors (#21134)
* fix(rust): Fixed Rust model files not matching module imports causing compiler errors * chore(rust): Update samples with a duplicate model test * update samples --------- Co-authored-by: Ross Sullivan <rosssullivan101@gmail.com>
This commit is contained in:
parent
178f1c9641
commit
1c62f839c5
@ -538,6 +538,12 @@ public class RustClientCodegen extends AbstractRustCodegen implements CodegenCon
|
||||
return (outputFolder + File.separator + modelFolder).replace("/", File.separator);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String modelFilename(String templateName, String modelName) {
|
||||
String suffix = modelTemplateFiles().get(templateName);
|
||||
return modelFileFolder() + File.separator + toModelFilename(modelName) + suffix;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String apiDocFileFolder() {
|
||||
return (outputFolder + "/" + apiDocPath).replace('/', File.separatorChar);
|
||||
|
@ -1078,4 +1078,13 @@ components:
|
||||
required:
|
||||
- type
|
||||
- speed
|
||||
|
||||
DuplicateTest:
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
Duplicatetest: # explicitly testing the same name with different casing
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
|
@ -8,6 +8,8 @@ docs/ApiResponse.md
|
||||
docs/ArrayItemRefTest.md
|
||||
docs/Baz.md
|
||||
docs/Category.md
|
||||
docs/DuplicateTest.md
|
||||
docs/Duplicatetest.md
|
||||
docs/EnumArrayTesting.md
|
||||
docs/FakeApi.md
|
||||
docs/NullableArray.md
|
||||
@ -47,6 +49,8 @@ src/models/api_response.rs
|
||||
src/models/array_item_ref_test.rs
|
||||
src/models/baz.rs
|
||||
src/models/category.rs
|
||||
src/models/duplicate_test.rs
|
||||
src/models/duplicatetest.rs
|
||||
src/models/enum_array_testing.rs
|
||||
src/models/mod.rs
|
||||
src/models/model_ref.rs
|
||||
|
@ -61,6 +61,8 @@ Class | Method | HTTP request | Description
|
||||
- [ArrayItemRefTest](docs/ArrayItemRefTest.md)
|
||||
- [Baz](docs/Baz.md)
|
||||
- [Category](docs/Category.md)
|
||||
- [DuplicateTest](docs/DuplicateTest.md)
|
||||
- [Duplicatetest](docs/Duplicatetest.md)
|
||||
- [EnumArrayTesting](docs/EnumArrayTesting.md)
|
||||
- [NullableArray](docs/NullableArray.md)
|
||||
- [NumericEnumTesting](docs/NumericEnumTesting.md)
|
||||
|
@ -0,0 +1,11 @@
|
||||
# DuplicateTest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -0,0 +1,11 @@
|
||||
# Duplicatetest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -0,0 +1,27 @@
|
||||
/*
|
||||
* OpenAPI Petstore
|
||||
*
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct DuplicateTest {
|
||||
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
|
||||
pub name: Option<String>,
|
||||
}
|
||||
|
||||
impl DuplicateTest {
|
||||
pub fn new() -> DuplicateTest {
|
||||
DuplicateTest {
|
||||
name: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,27 @@
|
||||
/*
|
||||
* OpenAPI Petstore
|
||||
*
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct Duplicatetest {
|
||||
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
|
||||
pub name: Option<String>,
|
||||
}
|
||||
|
||||
impl Duplicatetest {
|
||||
pub fn new() -> Duplicatetest {
|
||||
Duplicatetest {
|
||||
name: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,6 +10,10 @@ pub mod baz;
|
||||
pub use self::baz::Baz;
|
||||
pub mod category;
|
||||
pub use self::category::Category;
|
||||
pub mod duplicate_test;
|
||||
pub use self::duplicate_test::DuplicateTest;
|
||||
pub mod duplicatetest;
|
||||
pub use self::duplicatetest::Duplicatetest;
|
||||
pub mod enum_array_testing;
|
||||
pub use self::enum_array_testing::EnumArrayTesting;
|
||||
pub mod nullable_array;
|
||||
|
@ -8,6 +8,8 @@ docs/ApiResponse.md
|
||||
docs/ArrayItemRefTest.md
|
||||
docs/Baz.md
|
||||
docs/Category.md
|
||||
docs/DuplicateTest.md
|
||||
docs/Duplicatetest.md
|
||||
docs/EnumArrayTesting.md
|
||||
docs/FakeApi.md
|
||||
docs/NullableArray.md
|
||||
@ -45,6 +47,8 @@ src/models/api_response.rs
|
||||
src/models/array_item_ref_test.rs
|
||||
src/models/baz.rs
|
||||
src/models/category.rs
|
||||
src/models/duplicate_test.rs
|
||||
src/models/duplicatetest.rs
|
||||
src/models/enum_array_testing.rs
|
||||
src/models/mod.rs
|
||||
src/models/model_ref.rs
|
||||
|
@ -61,6 +61,8 @@ Class | Method | HTTP request | Description
|
||||
- [ArrayItemRefTest](docs/ArrayItemRefTest.md)
|
||||
- [Baz](docs/Baz.md)
|
||||
- [Category](docs/Category.md)
|
||||
- [DuplicateTest](docs/DuplicateTest.md)
|
||||
- [Duplicatetest](docs/Duplicatetest.md)
|
||||
- [EnumArrayTesting](docs/EnumArrayTesting.md)
|
||||
- [NullableArray](docs/NullableArray.md)
|
||||
- [NumericEnumTesting](docs/NumericEnumTesting.md)
|
||||
|
@ -0,0 +1,11 @@
|
||||
# DuplicateTest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -0,0 +1,11 @@
|
||||
# Duplicatetest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -0,0 +1,27 @@
|
||||
/*
|
||||
* OpenAPI Petstore
|
||||
*
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct DuplicateTest {
|
||||
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
|
||||
pub name: Option<String>,
|
||||
}
|
||||
|
||||
impl DuplicateTest {
|
||||
pub fn new() -> DuplicateTest {
|
||||
DuplicateTest {
|
||||
name: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,27 @@
|
||||
/*
|
||||
* OpenAPI Petstore
|
||||
*
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct Duplicatetest {
|
||||
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
|
||||
pub name: Option<String>,
|
||||
}
|
||||
|
||||
impl Duplicatetest {
|
||||
pub fn new() -> Duplicatetest {
|
||||
Duplicatetest {
|
||||
name: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,6 +10,10 @@ pub mod baz;
|
||||
pub use self::baz::Baz;
|
||||
pub mod category;
|
||||
pub use self::category::Category;
|
||||
pub mod duplicate_test;
|
||||
pub use self::duplicate_test::DuplicateTest;
|
||||
pub mod duplicatetest;
|
||||
pub use self::duplicatetest::Duplicatetest;
|
||||
pub mod enum_array_testing;
|
||||
pub use self::enum_array_testing::EnumArrayTesting;
|
||||
pub mod nullable_array;
|
||||
|
@ -8,6 +8,8 @@ docs/ApiResponse.md
|
||||
docs/ArrayItemRefTest.md
|
||||
docs/Baz.md
|
||||
docs/Category.md
|
||||
docs/DuplicateTest.md
|
||||
docs/Duplicatetest.md
|
||||
docs/EnumArrayTesting.md
|
||||
docs/FakeApi.md
|
||||
docs/NullableArray.md
|
||||
@ -45,6 +47,8 @@ src/models/api_response.rs
|
||||
src/models/array_item_ref_test.rs
|
||||
src/models/baz.rs
|
||||
src/models/category.rs
|
||||
src/models/duplicate_test.rs
|
||||
src/models/duplicatetest.rs
|
||||
src/models/enum_array_testing.rs
|
||||
src/models/mod.rs
|
||||
src/models/model_ref.rs
|
||||
|
@ -61,6 +61,8 @@ Class | Method | HTTP request | Description
|
||||
- [ArrayItemRefTest](docs/ArrayItemRefTest.md)
|
||||
- [Baz](docs/Baz.md)
|
||||
- [Category](docs/Category.md)
|
||||
- [DuplicateTest](docs/DuplicateTest.md)
|
||||
- [Duplicatetest](docs/Duplicatetest.md)
|
||||
- [EnumArrayTesting](docs/EnumArrayTesting.md)
|
||||
- [NullableArray](docs/NullableArray.md)
|
||||
- [NumericEnumTesting](docs/NumericEnumTesting.md)
|
||||
|
@ -0,0 +1,11 @@
|
||||
# DuplicateTest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -0,0 +1,11 @@
|
||||
# Duplicatetest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -0,0 +1,27 @@
|
||||
/*
|
||||
* OpenAPI Petstore
|
||||
*
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct DuplicateTest {
|
||||
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
|
||||
pub name: Option<String>,
|
||||
}
|
||||
|
||||
impl DuplicateTest {
|
||||
pub fn new() -> DuplicateTest {
|
||||
DuplicateTest {
|
||||
name: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,27 @@
|
||||
/*
|
||||
* OpenAPI Petstore
|
||||
*
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct Duplicatetest {
|
||||
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
|
||||
pub name: Option<String>,
|
||||
}
|
||||
|
||||
impl Duplicatetest {
|
||||
pub fn new() -> Duplicatetest {
|
||||
Duplicatetest {
|
||||
name: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,6 +10,10 @@ pub mod baz;
|
||||
pub use self::baz::Baz;
|
||||
pub mod category;
|
||||
pub use self::category::Category;
|
||||
pub mod duplicate_test;
|
||||
pub use self::duplicate_test::DuplicateTest;
|
||||
pub mod duplicatetest;
|
||||
pub use self::duplicatetest::Duplicatetest;
|
||||
pub mod enum_array_testing;
|
||||
pub use self::enum_array_testing::EnumArrayTesting;
|
||||
pub mod nullable_array;
|
||||
|
@ -8,6 +8,8 @@ docs/ApiResponse.md
|
||||
docs/ArrayItemRefTest.md
|
||||
docs/Baz.md
|
||||
docs/Category.md
|
||||
docs/DuplicateTest.md
|
||||
docs/Duplicatetest.md
|
||||
docs/EnumArrayTesting.md
|
||||
docs/FakeApi.md
|
||||
docs/NullableArray.md
|
||||
@ -45,6 +47,8 @@ src/models/api_response.rs
|
||||
src/models/array_item_ref_test.rs
|
||||
src/models/baz.rs
|
||||
src/models/category.rs
|
||||
src/models/duplicate_test.rs
|
||||
src/models/duplicatetest.rs
|
||||
src/models/enum_array_testing.rs
|
||||
src/models/mod.rs
|
||||
src/models/model_ref.rs
|
||||
|
@ -61,6 +61,8 @@ Class | Method | HTTP request | Description
|
||||
- [ArrayItemRefTest](docs/ArrayItemRefTest.md)
|
||||
- [Baz](docs/Baz.md)
|
||||
- [Category](docs/Category.md)
|
||||
- [DuplicateTest](docs/DuplicateTest.md)
|
||||
- [Duplicatetest](docs/Duplicatetest.md)
|
||||
- [EnumArrayTesting](docs/EnumArrayTesting.md)
|
||||
- [NullableArray](docs/NullableArray.md)
|
||||
- [NumericEnumTesting](docs/NumericEnumTesting.md)
|
||||
|
@ -0,0 +1,11 @@
|
||||
# DuplicateTest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -0,0 +1,11 @@
|
||||
# Duplicatetest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -0,0 +1,27 @@
|
||||
/*
|
||||
* OpenAPI Petstore
|
||||
*
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct DuplicateTest {
|
||||
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
|
||||
pub name: Option<String>,
|
||||
}
|
||||
|
||||
impl DuplicateTest {
|
||||
pub fn new() -> DuplicateTest {
|
||||
DuplicateTest {
|
||||
name: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,27 @@
|
||||
/*
|
||||
* OpenAPI Petstore
|
||||
*
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct Duplicatetest {
|
||||
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
|
||||
pub name: Option<String>,
|
||||
}
|
||||
|
||||
impl Duplicatetest {
|
||||
pub fn new() -> Duplicatetest {
|
||||
Duplicatetest {
|
||||
name: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,6 +10,10 @@ pub mod baz;
|
||||
pub use self::baz::Baz;
|
||||
pub mod category;
|
||||
pub use self::category::Category;
|
||||
pub mod duplicate_test;
|
||||
pub use self::duplicate_test::DuplicateTest;
|
||||
pub mod duplicatetest;
|
||||
pub use self::duplicatetest::Duplicatetest;
|
||||
pub mod enum_array_testing;
|
||||
pub use self::enum_array_testing::EnumArrayTesting;
|
||||
pub mod nullable_array;
|
||||
|
@ -8,6 +8,8 @@ docs/ApiResponse.md
|
||||
docs/ArrayItemRefTest.md
|
||||
docs/Baz.md
|
||||
docs/Category.md
|
||||
docs/DuplicateTest.md
|
||||
docs/Duplicatetest.md
|
||||
docs/EnumArrayTesting.md
|
||||
docs/FakeApi.md
|
||||
docs/NullableArray.md
|
||||
@ -45,6 +47,8 @@ src/models/api_response.rs
|
||||
src/models/array_item_ref_test.rs
|
||||
src/models/baz.rs
|
||||
src/models/category.rs
|
||||
src/models/duplicate_test.rs
|
||||
src/models/duplicatetest.rs
|
||||
src/models/enum_array_testing.rs
|
||||
src/models/mod.rs
|
||||
src/models/model_ref.rs
|
||||
|
@ -61,6 +61,8 @@ Class | Method | HTTP request | Description
|
||||
- [ArrayItemRefTest](docs/ArrayItemRefTest.md)
|
||||
- [Baz](docs/Baz.md)
|
||||
- [Category](docs/Category.md)
|
||||
- [DuplicateTest](docs/DuplicateTest.md)
|
||||
- [Duplicatetest](docs/Duplicatetest.md)
|
||||
- [EnumArrayTesting](docs/EnumArrayTesting.md)
|
||||
- [NullableArray](docs/NullableArray.md)
|
||||
- [NumericEnumTesting](docs/NumericEnumTesting.md)
|
||||
|
@ -0,0 +1,11 @@
|
||||
# DuplicateTest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -0,0 +1,11 @@
|
||||
# Duplicatetest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -0,0 +1,27 @@
|
||||
/*
|
||||
* OpenAPI Petstore
|
||||
*
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct DuplicateTest {
|
||||
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
|
||||
pub name: Option<String>,
|
||||
}
|
||||
|
||||
impl DuplicateTest {
|
||||
pub fn new() -> DuplicateTest {
|
||||
DuplicateTest {
|
||||
name: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,27 @@
|
||||
/*
|
||||
* OpenAPI Petstore
|
||||
*
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct Duplicatetest {
|
||||
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
|
||||
pub name: Option<String>,
|
||||
}
|
||||
|
||||
impl Duplicatetest {
|
||||
pub fn new() -> Duplicatetest {
|
||||
Duplicatetest {
|
||||
name: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,6 +10,10 @@ pub mod baz;
|
||||
pub use self::baz::Baz;
|
||||
pub mod category;
|
||||
pub use self::category::Category;
|
||||
pub mod duplicate_test;
|
||||
pub use self::duplicate_test::DuplicateTest;
|
||||
pub mod duplicatetest;
|
||||
pub use self::duplicatetest::Duplicatetest;
|
||||
pub mod enum_array_testing;
|
||||
pub use self::enum_array_testing::EnumArrayTesting;
|
||||
pub mod nullable_array;
|
||||
|
@ -8,6 +8,8 @@ docs/ApiResponse.md
|
||||
docs/ArrayItemRefTest.md
|
||||
docs/Baz.md
|
||||
docs/Category.md
|
||||
docs/DuplicateTest.md
|
||||
docs/Duplicatetest.md
|
||||
docs/EnumArrayTesting.md
|
||||
docs/FakeApi.md
|
||||
docs/NullableArray.md
|
||||
@ -45,6 +47,8 @@ src/models/api_response.rs
|
||||
src/models/array_item_ref_test.rs
|
||||
src/models/baz.rs
|
||||
src/models/category.rs
|
||||
src/models/duplicate_test.rs
|
||||
src/models/duplicatetest.rs
|
||||
src/models/enum_array_testing.rs
|
||||
src/models/mod.rs
|
||||
src/models/model_ref.rs
|
||||
|
@ -61,6 +61,8 @@ Class | Method | HTTP request | Description
|
||||
- [ArrayItemRefTest](docs/ArrayItemRefTest.md)
|
||||
- [Baz](docs/Baz.md)
|
||||
- [Category](docs/Category.md)
|
||||
- [DuplicateTest](docs/DuplicateTest.md)
|
||||
- [Duplicatetest](docs/Duplicatetest.md)
|
||||
- [EnumArrayTesting](docs/EnumArrayTesting.md)
|
||||
- [NullableArray](docs/NullableArray.md)
|
||||
- [NumericEnumTesting](docs/NumericEnumTesting.md)
|
||||
|
@ -0,0 +1,11 @@
|
||||
# DuplicateTest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -0,0 +1,11 @@
|
||||
# Duplicatetest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -0,0 +1,27 @@
|
||||
/*
|
||||
* OpenAPI Petstore
|
||||
*
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct DuplicateTest {
|
||||
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
|
||||
pub name: Option<String>,
|
||||
}
|
||||
|
||||
impl DuplicateTest {
|
||||
pub fn new() -> DuplicateTest {
|
||||
DuplicateTest {
|
||||
name: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,27 @@
|
||||
/*
|
||||
* OpenAPI Petstore
|
||||
*
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct Duplicatetest {
|
||||
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
|
||||
pub name: Option<String>,
|
||||
}
|
||||
|
||||
impl Duplicatetest {
|
||||
pub fn new() -> Duplicatetest {
|
||||
Duplicatetest {
|
||||
name: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,6 +10,10 @@ pub mod baz;
|
||||
pub use self::baz::Baz;
|
||||
pub mod category;
|
||||
pub use self::category::Category;
|
||||
pub mod duplicate_test;
|
||||
pub use self::duplicate_test::DuplicateTest;
|
||||
pub mod duplicatetest;
|
||||
pub use self::duplicatetest::Duplicatetest;
|
||||
pub mod enum_array_testing;
|
||||
pub use self::enum_array_testing::EnumArrayTesting;
|
||||
pub mod nullable_array;
|
||||
|
@ -8,6 +8,8 @@ docs/ApiResponse.md
|
||||
docs/ArrayItemRefTest.md
|
||||
docs/Baz.md
|
||||
docs/Category.md
|
||||
docs/DuplicateTest.md
|
||||
docs/Duplicatetest.md
|
||||
docs/EnumArrayTesting.md
|
||||
docs/FakeApi.md
|
||||
docs/NullableArray.md
|
||||
@ -45,6 +47,8 @@ src/models/api_response.rs
|
||||
src/models/array_item_ref_test.rs
|
||||
src/models/baz.rs
|
||||
src/models/category.rs
|
||||
src/models/duplicate_test.rs
|
||||
src/models/duplicatetest.rs
|
||||
src/models/enum_array_testing.rs
|
||||
src/models/mod.rs
|
||||
src/models/model_ref.rs
|
||||
|
@ -61,6 +61,8 @@ Class | Method | HTTP request | Description
|
||||
- [ArrayItemRefTest](docs/ArrayItemRefTest.md)
|
||||
- [Baz](docs/Baz.md)
|
||||
- [Category](docs/Category.md)
|
||||
- [DuplicateTest](docs/DuplicateTest.md)
|
||||
- [Duplicatetest](docs/Duplicatetest.md)
|
||||
- [EnumArrayTesting](docs/EnumArrayTesting.md)
|
||||
- [NullableArray](docs/NullableArray.md)
|
||||
- [NumericEnumTesting](docs/NumericEnumTesting.md)
|
||||
|
@ -0,0 +1,11 @@
|
||||
# DuplicateTest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -0,0 +1,11 @@
|
||||
# Duplicatetest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -0,0 +1,27 @@
|
||||
/*
|
||||
* OpenAPI Petstore
|
||||
*
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct DuplicateTest {
|
||||
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
|
||||
pub name: Option<String>,
|
||||
}
|
||||
|
||||
impl DuplicateTest {
|
||||
pub fn new() -> DuplicateTest {
|
||||
DuplicateTest {
|
||||
name: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,27 @@
|
||||
/*
|
||||
* OpenAPI Petstore
|
||||
*
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct Duplicatetest {
|
||||
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
|
||||
pub name: Option<String>,
|
||||
}
|
||||
|
||||
impl Duplicatetest {
|
||||
pub fn new() -> Duplicatetest {
|
||||
Duplicatetest {
|
||||
name: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,6 +10,10 @@ pub mod baz;
|
||||
pub use self::baz::Baz;
|
||||
pub mod category;
|
||||
pub use self::category::Category;
|
||||
pub mod duplicate_test;
|
||||
pub use self::duplicate_test::DuplicateTest;
|
||||
pub mod duplicatetest;
|
||||
pub use self::duplicatetest::Duplicatetest;
|
||||
pub mod enum_array_testing;
|
||||
pub use self::enum_array_testing::EnumArrayTesting;
|
||||
pub mod nullable_array;
|
||||
|
@ -8,6 +8,8 @@ docs/ApiResponse.md
|
||||
docs/ArrayItemRefTest.md
|
||||
docs/Baz.md
|
||||
docs/Category.md
|
||||
docs/DuplicateTest.md
|
||||
docs/Duplicatetest.md
|
||||
docs/EnumArrayTesting.md
|
||||
docs/FakeApi.md
|
||||
docs/NullableArray.md
|
||||
@ -45,6 +47,8 @@ src/models/api_response.rs
|
||||
src/models/array_item_ref_test.rs
|
||||
src/models/baz.rs
|
||||
src/models/category.rs
|
||||
src/models/duplicate_test.rs
|
||||
src/models/duplicatetest.rs
|
||||
src/models/enum_array_testing.rs
|
||||
src/models/mod.rs
|
||||
src/models/model_ref.rs
|
||||
|
@ -61,6 +61,8 @@ Class | Method | HTTP request | Description
|
||||
- [ArrayItemRefTest](docs/ArrayItemRefTest.md)
|
||||
- [Baz](docs/Baz.md)
|
||||
- [Category](docs/Category.md)
|
||||
- [DuplicateTest](docs/DuplicateTest.md)
|
||||
- [Duplicatetest](docs/Duplicatetest.md)
|
||||
- [EnumArrayTesting](docs/EnumArrayTesting.md)
|
||||
- [NullableArray](docs/NullableArray.md)
|
||||
- [NumericEnumTesting](docs/NumericEnumTesting.md)
|
||||
|
@ -0,0 +1,11 @@
|
||||
# DuplicateTest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -0,0 +1,11 @@
|
||||
# Duplicatetest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -0,0 +1,27 @@
|
||||
/*
|
||||
* OpenAPI Petstore
|
||||
*
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct DuplicateTest {
|
||||
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
|
||||
pub name: Option<String>,
|
||||
}
|
||||
|
||||
impl DuplicateTest {
|
||||
pub fn new() -> DuplicateTest {
|
||||
DuplicateTest {
|
||||
name: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,27 @@
|
||||
/*
|
||||
* OpenAPI Petstore
|
||||
*
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct Duplicatetest {
|
||||
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
|
||||
pub name: Option<String>,
|
||||
}
|
||||
|
||||
impl Duplicatetest {
|
||||
pub fn new() -> Duplicatetest {
|
||||
Duplicatetest {
|
||||
name: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,6 +10,10 @@ pub mod baz;
|
||||
pub use self::baz::Baz;
|
||||
pub mod category;
|
||||
pub use self::category::Category;
|
||||
pub mod duplicate_test;
|
||||
pub use self::duplicate_test::DuplicateTest;
|
||||
pub mod duplicatetest;
|
||||
pub use self::duplicatetest::Duplicatetest;
|
||||
pub mod enum_array_testing;
|
||||
pub use self::enum_array_testing::EnumArrayTesting;
|
||||
pub mod nullable_array;
|
||||
|
@ -9,6 +9,8 @@ docs/FooApiResponse.md
|
||||
docs/FooArrayItemRefTest.md
|
||||
docs/FooBaz.md
|
||||
docs/FooCategory.md
|
||||
docs/FooDuplicateTest.md
|
||||
docs/FooDuplicatetest.md
|
||||
docs/FooEnumArrayTesting.md
|
||||
docs/FooNullableArray.md
|
||||
docs/FooNumericEnumTesting.md
|
||||
@ -45,6 +47,8 @@ src/models/foo_api_response.rs
|
||||
src/models/foo_array_item_ref_test.rs
|
||||
src/models/foo_baz.rs
|
||||
src/models/foo_category.rs
|
||||
src/models/foo_duplicate_test.rs
|
||||
src/models/foo_duplicatetest.rs
|
||||
src/models/foo_enum_array_testing.rs
|
||||
src/models/foo_nullable_array.rs
|
||||
src/models/foo_numeric_enum_testing.rs
|
||||
|
@ -61,6 +61,8 @@ Class | Method | HTTP request | Description
|
||||
- [FooArrayItemRefTest](docs/FooArrayItemRefTest.md)
|
||||
- [FooBaz](docs/FooBaz.md)
|
||||
- [FooCategory](docs/FooCategory.md)
|
||||
- [FooDuplicateTest](docs/FooDuplicateTest.md)
|
||||
- [FooDuplicatetest](docs/FooDuplicatetest.md)
|
||||
- [FooEnumArrayTesting](docs/FooEnumArrayTesting.md)
|
||||
- [FooNullableArray](docs/FooNullableArray.md)
|
||||
- [FooNumericEnumTesting](docs/FooNumericEnumTesting.md)
|
||||
|
@ -0,0 +1,11 @@
|
||||
# FooDuplicateTest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -0,0 +1,11 @@
|
||||
# FooDuplicatetest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -0,0 +1,27 @@
|
||||
/*
|
||||
* OpenAPI Petstore
|
||||
*
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct FooDuplicateTest {
|
||||
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
|
||||
pub name: Option<String>,
|
||||
}
|
||||
|
||||
impl FooDuplicateTest {
|
||||
pub fn new() -> FooDuplicateTest {
|
||||
FooDuplicateTest {
|
||||
name: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,27 @@
|
||||
/*
|
||||
* OpenAPI Petstore
|
||||
*
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct FooDuplicatetest {
|
||||
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
|
||||
pub name: Option<String>,
|
||||
}
|
||||
|
||||
impl FooDuplicatetest {
|
||||
pub fn new() -> FooDuplicatetest {
|
||||
FooDuplicatetest {
|
||||
name: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,6 +10,10 @@ pub mod foo_baz;
|
||||
pub use self::foo_baz::FooBaz;
|
||||
pub mod foo_category;
|
||||
pub use self::foo_category::FooCategory;
|
||||
pub mod foo_duplicate_test;
|
||||
pub use self::foo_duplicate_test::FooDuplicateTest;
|
||||
pub mod foo_duplicatetest;
|
||||
pub use self::foo_duplicatetest::FooDuplicatetest;
|
||||
pub mod foo_enum_array_testing;
|
||||
pub use self::foo_enum_array_testing::FooEnumArrayTesting;
|
||||
pub mod foo_nullable_array;
|
||||
|
@ -8,6 +8,8 @@ docs/ApiResponse.md
|
||||
docs/ArrayItemRefTest.md
|
||||
docs/Baz.md
|
||||
docs/Category.md
|
||||
docs/DuplicateTest.md
|
||||
docs/Duplicatetest.md
|
||||
docs/EnumArrayTesting.md
|
||||
docs/FakeApi.md
|
||||
docs/NullableArray.md
|
||||
@ -45,6 +47,8 @@ src/models/api_response.rs
|
||||
src/models/array_item_ref_test.rs
|
||||
src/models/baz.rs
|
||||
src/models/category.rs
|
||||
src/models/duplicate_test.rs
|
||||
src/models/duplicatetest.rs
|
||||
src/models/enum_array_testing.rs
|
||||
src/models/mod.rs
|
||||
src/models/model_ref.rs
|
||||
|
@ -61,6 +61,8 @@ Class | Method | HTTP request | Description
|
||||
- [ArrayItemRefTest](docs/ArrayItemRefTest.md)
|
||||
- [Baz](docs/Baz.md)
|
||||
- [Category](docs/Category.md)
|
||||
- [DuplicateTest](docs/DuplicateTest.md)
|
||||
- [Duplicatetest](docs/Duplicatetest.md)
|
||||
- [EnumArrayTesting](docs/EnumArrayTesting.md)
|
||||
- [NullableArray](docs/NullableArray.md)
|
||||
- [NumericEnumTesting](docs/NumericEnumTesting.md)
|
||||
|
@ -0,0 +1,11 @@
|
||||
# DuplicateTest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -0,0 +1,11 @@
|
||||
# Duplicatetest
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | Option<**String**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -0,0 +1,27 @@
|
||||
/*
|
||||
* OpenAPI Petstore
|
||||
*
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct DuplicateTest {
|
||||
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
|
||||
pub name: Option<String>,
|
||||
}
|
||||
|
||||
impl DuplicateTest {
|
||||
pub fn new() -> DuplicateTest {
|
||||
DuplicateTest {
|
||||
name: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,27 @@
|
||||
/*
|
||||
* OpenAPI Petstore
|
||||
*
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct Duplicatetest {
|
||||
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
|
||||
pub name: Option<String>,
|
||||
}
|
||||
|
||||
impl Duplicatetest {
|
||||
pub fn new() -> Duplicatetest {
|
||||
Duplicatetest {
|
||||
name: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,6 +10,10 @@ pub mod baz;
|
||||
pub use self::baz::Baz;
|
||||
pub mod category;
|
||||
pub use self::category::Category;
|
||||
pub mod duplicate_test;
|
||||
pub use self::duplicate_test::DuplicateTest;
|
||||
pub mod duplicatetest;
|
||||
pub use self::duplicatetest::Duplicatetest;
|
||||
pub mod enum_array_testing;
|
||||
pub use self::enum_array_testing::EnumArrayTesting;
|
||||
pub mod nullable_array;
|
||||
|
Loading…
x
Reference in New Issue
Block a user