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:
Ross Sullivan 2025-04-26 23:03:28 +09:00 committed by GitHub
parent 178f1c9641
commit 1c62f839c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
72 changed files with 876 additions and 1 deletions

View File

@ -538,6 +538,12 @@ public class RustClientCodegen extends AbstractRustCodegen implements CodegenCon
return (outputFolder + File.separator + modelFolder).replace("/", File.separator); 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 @Override
public String apiDocFileFolder() { public String apiDocFileFolder() {
return (outputFolder + "/" + apiDocPath).replace('/', File.separatorChar); return (outputFolder + "/" + apiDocPath).replace('/', File.separatorChar);

View File

@ -1078,4 +1078,13 @@ components:
required: required:
- type - type
- speed - speed
DuplicateTest:
type: object
properties:
name:
type: string
Duplicatetest: # explicitly testing the same name with different casing
type: object
properties:
name:
type: string

View File

@ -8,6 +8,8 @@ docs/ApiResponse.md
docs/ArrayItemRefTest.md docs/ArrayItemRefTest.md
docs/Baz.md docs/Baz.md
docs/Category.md docs/Category.md
docs/DuplicateTest.md
docs/Duplicatetest.md
docs/EnumArrayTesting.md docs/EnumArrayTesting.md
docs/FakeApi.md docs/FakeApi.md
docs/NullableArray.md docs/NullableArray.md
@ -47,6 +49,8 @@ src/models/api_response.rs
src/models/array_item_ref_test.rs src/models/array_item_ref_test.rs
src/models/baz.rs src/models/baz.rs
src/models/category.rs src/models/category.rs
src/models/duplicate_test.rs
src/models/duplicatetest.rs
src/models/enum_array_testing.rs src/models/enum_array_testing.rs
src/models/mod.rs src/models/mod.rs
src/models/model_ref.rs src/models/model_ref.rs

View File

@ -61,6 +61,8 @@ Class | Method | HTTP request | Description
- [ArrayItemRefTest](docs/ArrayItemRefTest.md) - [ArrayItemRefTest](docs/ArrayItemRefTest.md)
- [Baz](docs/Baz.md) - [Baz](docs/Baz.md)
- [Category](docs/Category.md) - [Category](docs/Category.md)
- [DuplicateTest](docs/DuplicateTest.md)
- [Duplicatetest](docs/Duplicatetest.md)
- [EnumArrayTesting](docs/EnumArrayTesting.md) - [EnumArrayTesting](docs/EnumArrayTesting.md)
- [NullableArray](docs/NullableArray.md) - [NullableArray](docs/NullableArray.md)
- [NumericEnumTesting](docs/NumericEnumTesting.md) - [NumericEnumTesting](docs/NumericEnumTesting.md)

View File

@ -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)

View File

@ -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)

View File

@ -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,
}
}
}

View File

@ -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,
}
}
}

View File

@ -10,6 +10,10 @@ pub mod baz;
pub use self::baz::Baz; pub use self::baz::Baz;
pub mod category; pub mod category;
pub use self::category::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 mod enum_array_testing;
pub use self::enum_array_testing::EnumArrayTesting; pub use self::enum_array_testing::EnumArrayTesting;
pub mod nullable_array; pub mod nullable_array;

View File

@ -8,6 +8,8 @@ docs/ApiResponse.md
docs/ArrayItemRefTest.md docs/ArrayItemRefTest.md
docs/Baz.md docs/Baz.md
docs/Category.md docs/Category.md
docs/DuplicateTest.md
docs/Duplicatetest.md
docs/EnumArrayTesting.md docs/EnumArrayTesting.md
docs/FakeApi.md docs/FakeApi.md
docs/NullableArray.md docs/NullableArray.md
@ -45,6 +47,8 @@ src/models/api_response.rs
src/models/array_item_ref_test.rs src/models/array_item_ref_test.rs
src/models/baz.rs src/models/baz.rs
src/models/category.rs src/models/category.rs
src/models/duplicate_test.rs
src/models/duplicatetest.rs
src/models/enum_array_testing.rs src/models/enum_array_testing.rs
src/models/mod.rs src/models/mod.rs
src/models/model_ref.rs src/models/model_ref.rs

View File

@ -61,6 +61,8 @@ Class | Method | HTTP request | Description
- [ArrayItemRefTest](docs/ArrayItemRefTest.md) - [ArrayItemRefTest](docs/ArrayItemRefTest.md)
- [Baz](docs/Baz.md) - [Baz](docs/Baz.md)
- [Category](docs/Category.md) - [Category](docs/Category.md)
- [DuplicateTest](docs/DuplicateTest.md)
- [Duplicatetest](docs/Duplicatetest.md)
- [EnumArrayTesting](docs/EnumArrayTesting.md) - [EnumArrayTesting](docs/EnumArrayTesting.md)
- [NullableArray](docs/NullableArray.md) - [NullableArray](docs/NullableArray.md)
- [NumericEnumTesting](docs/NumericEnumTesting.md) - [NumericEnumTesting](docs/NumericEnumTesting.md)

View File

@ -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)

View File

@ -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)

View File

@ -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,
}
}
}

View File

@ -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,
}
}
}

View File

@ -10,6 +10,10 @@ pub mod baz;
pub use self::baz::Baz; pub use self::baz::Baz;
pub mod category; pub mod category;
pub use self::category::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 mod enum_array_testing;
pub use self::enum_array_testing::EnumArrayTesting; pub use self::enum_array_testing::EnumArrayTesting;
pub mod nullable_array; pub mod nullable_array;

View File

@ -8,6 +8,8 @@ docs/ApiResponse.md
docs/ArrayItemRefTest.md docs/ArrayItemRefTest.md
docs/Baz.md docs/Baz.md
docs/Category.md docs/Category.md
docs/DuplicateTest.md
docs/Duplicatetest.md
docs/EnumArrayTesting.md docs/EnumArrayTesting.md
docs/FakeApi.md docs/FakeApi.md
docs/NullableArray.md docs/NullableArray.md
@ -45,6 +47,8 @@ src/models/api_response.rs
src/models/array_item_ref_test.rs src/models/array_item_ref_test.rs
src/models/baz.rs src/models/baz.rs
src/models/category.rs src/models/category.rs
src/models/duplicate_test.rs
src/models/duplicatetest.rs
src/models/enum_array_testing.rs src/models/enum_array_testing.rs
src/models/mod.rs src/models/mod.rs
src/models/model_ref.rs src/models/model_ref.rs

View File

@ -61,6 +61,8 @@ Class | Method | HTTP request | Description
- [ArrayItemRefTest](docs/ArrayItemRefTest.md) - [ArrayItemRefTest](docs/ArrayItemRefTest.md)
- [Baz](docs/Baz.md) - [Baz](docs/Baz.md)
- [Category](docs/Category.md) - [Category](docs/Category.md)
- [DuplicateTest](docs/DuplicateTest.md)
- [Duplicatetest](docs/Duplicatetest.md)
- [EnumArrayTesting](docs/EnumArrayTesting.md) - [EnumArrayTesting](docs/EnumArrayTesting.md)
- [NullableArray](docs/NullableArray.md) - [NullableArray](docs/NullableArray.md)
- [NumericEnumTesting](docs/NumericEnumTesting.md) - [NumericEnumTesting](docs/NumericEnumTesting.md)

View File

@ -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)

View File

@ -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)

View File

@ -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,
}
}
}

View File

@ -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,
}
}
}

View File

@ -10,6 +10,10 @@ pub mod baz;
pub use self::baz::Baz; pub use self::baz::Baz;
pub mod category; pub mod category;
pub use self::category::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 mod enum_array_testing;
pub use self::enum_array_testing::EnumArrayTesting; pub use self::enum_array_testing::EnumArrayTesting;
pub mod nullable_array; pub mod nullable_array;

View File

@ -8,6 +8,8 @@ docs/ApiResponse.md
docs/ArrayItemRefTest.md docs/ArrayItemRefTest.md
docs/Baz.md docs/Baz.md
docs/Category.md docs/Category.md
docs/DuplicateTest.md
docs/Duplicatetest.md
docs/EnumArrayTesting.md docs/EnumArrayTesting.md
docs/FakeApi.md docs/FakeApi.md
docs/NullableArray.md docs/NullableArray.md
@ -45,6 +47,8 @@ src/models/api_response.rs
src/models/array_item_ref_test.rs src/models/array_item_ref_test.rs
src/models/baz.rs src/models/baz.rs
src/models/category.rs src/models/category.rs
src/models/duplicate_test.rs
src/models/duplicatetest.rs
src/models/enum_array_testing.rs src/models/enum_array_testing.rs
src/models/mod.rs src/models/mod.rs
src/models/model_ref.rs src/models/model_ref.rs

View File

@ -61,6 +61,8 @@ Class | Method | HTTP request | Description
- [ArrayItemRefTest](docs/ArrayItemRefTest.md) - [ArrayItemRefTest](docs/ArrayItemRefTest.md)
- [Baz](docs/Baz.md) - [Baz](docs/Baz.md)
- [Category](docs/Category.md) - [Category](docs/Category.md)
- [DuplicateTest](docs/DuplicateTest.md)
- [Duplicatetest](docs/Duplicatetest.md)
- [EnumArrayTesting](docs/EnumArrayTesting.md) - [EnumArrayTesting](docs/EnumArrayTesting.md)
- [NullableArray](docs/NullableArray.md) - [NullableArray](docs/NullableArray.md)
- [NumericEnumTesting](docs/NumericEnumTesting.md) - [NumericEnumTesting](docs/NumericEnumTesting.md)

View File

@ -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)

View File

@ -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)

View File

@ -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,
}
}
}

View File

@ -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,
}
}
}

View File

@ -10,6 +10,10 @@ pub mod baz;
pub use self::baz::Baz; pub use self::baz::Baz;
pub mod category; pub mod category;
pub use self::category::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 mod enum_array_testing;
pub use self::enum_array_testing::EnumArrayTesting; pub use self::enum_array_testing::EnumArrayTesting;
pub mod nullable_array; pub mod nullable_array;

View File

@ -8,6 +8,8 @@ docs/ApiResponse.md
docs/ArrayItemRefTest.md docs/ArrayItemRefTest.md
docs/Baz.md docs/Baz.md
docs/Category.md docs/Category.md
docs/DuplicateTest.md
docs/Duplicatetest.md
docs/EnumArrayTesting.md docs/EnumArrayTesting.md
docs/FakeApi.md docs/FakeApi.md
docs/NullableArray.md docs/NullableArray.md
@ -45,6 +47,8 @@ src/models/api_response.rs
src/models/array_item_ref_test.rs src/models/array_item_ref_test.rs
src/models/baz.rs src/models/baz.rs
src/models/category.rs src/models/category.rs
src/models/duplicate_test.rs
src/models/duplicatetest.rs
src/models/enum_array_testing.rs src/models/enum_array_testing.rs
src/models/mod.rs src/models/mod.rs
src/models/model_ref.rs src/models/model_ref.rs

View File

@ -61,6 +61,8 @@ Class | Method | HTTP request | Description
- [ArrayItemRefTest](docs/ArrayItemRefTest.md) - [ArrayItemRefTest](docs/ArrayItemRefTest.md)
- [Baz](docs/Baz.md) - [Baz](docs/Baz.md)
- [Category](docs/Category.md) - [Category](docs/Category.md)
- [DuplicateTest](docs/DuplicateTest.md)
- [Duplicatetest](docs/Duplicatetest.md)
- [EnumArrayTesting](docs/EnumArrayTesting.md) - [EnumArrayTesting](docs/EnumArrayTesting.md)
- [NullableArray](docs/NullableArray.md) - [NullableArray](docs/NullableArray.md)
- [NumericEnumTesting](docs/NumericEnumTesting.md) - [NumericEnumTesting](docs/NumericEnumTesting.md)

View File

@ -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)

View File

@ -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)

View File

@ -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,
}
}
}

View File

@ -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,
}
}
}

View File

@ -10,6 +10,10 @@ pub mod baz;
pub use self::baz::Baz; pub use self::baz::Baz;
pub mod category; pub mod category;
pub use self::category::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 mod enum_array_testing;
pub use self::enum_array_testing::EnumArrayTesting; pub use self::enum_array_testing::EnumArrayTesting;
pub mod nullable_array; pub mod nullable_array;

View File

@ -8,6 +8,8 @@ docs/ApiResponse.md
docs/ArrayItemRefTest.md docs/ArrayItemRefTest.md
docs/Baz.md docs/Baz.md
docs/Category.md docs/Category.md
docs/DuplicateTest.md
docs/Duplicatetest.md
docs/EnumArrayTesting.md docs/EnumArrayTesting.md
docs/FakeApi.md docs/FakeApi.md
docs/NullableArray.md docs/NullableArray.md
@ -45,6 +47,8 @@ src/models/api_response.rs
src/models/array_item_ref_test.rs src/models/array_item_ref_test.rs
src/models/baz.rs src/models/baz.rs
src/models/category.rs src/models/category.rs
src/models/duplicate_test.rs
src/models/duplicatetest.rs
src/models/enum_array_testing.rs src/models/enum_array_testing.rs
src/models/mod.rs src/models/mod.rs
src/models/model_ref.rs src/models/model_ref.rs

View File

@ -61,6 +61,8 @@ Class | Method | HTTP request | Description
- [ArrayItemRefTest](docs/ArrayItemRefTest.md) - [ArrayItemRefTest](docs/ArrayItemRefTest.md)
- [Baz](docs/Baz.md) - [Baz](docs/Baz.md)
- [Category](docs/Category.md) - [Category](docs/Category.md)
- [DuplicateTest](docs/DuplicateTest.md)
- [Duplicatetest](docs/Duplicatetest.md)
- [EnumArrayTesting](docs/EnumArrayTesting.md) - [EnumArrayTesting](docs/EnumArrayTesting.md)
- [NullableArray](docs/NullableArray.md) - [NullableArray](docs/NullableArray.md)
- [NumericEnumTesting](docs/NumericEnumTesting.md) - [NumericEnumTesting](docs/NumericEnumTesting.md)

View File

@ -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)

View File

@ -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)

View File

@ -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,
}
}
}

View File

@ -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,
}
}
}

View File

@ -10,6 +10,10 @@ pub mod baz;
pub use self::baz::Baz; pub use self::baz::Baz;
pub mod category; pub mod category;
pub use self::category::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 mod enum_array_testing;
pub use self::enum_array_testing::EnumArrayTesting; pub use self::enum_array_testing::EnumArrayTesting;
pub mod nullable_array; pub mod nullable_array;

View File

@ -8,6 +8,8 @@ docs/ApiResponse.md
docs/ArrayItemRefTest.md docs/ArrayItemRefTest.md
docs/Baz.md docs/Baz.md
docs/Category.md docs/Category.md
docs/DuplicateTest.md
docs/Duplicatetest.md
docs/EnumArrayTesting.md docs/EnumArrayTesting.md
docs/FakeApi.md docs/FakeApi.md
docs/NullableArray.md docs/NullableArray.md
@ -45,6 +47,8 @@ src/models/api_response.rs
src/models/array_item_ref_test.rs src/models/array_item_ref_test.rs
src/models/baz.rs src/models/baz.rs
src/models/category.rs src/models/category.rs
src/models/duplicate_test.rs
src/models/duplicatetest.rs
src/models/enum_array_testing.rs src/models/enum_array_testing.rs
src/models/mod.rs src/models/mod.rs
src/models/model_ref.rs src/models/model_ref.rs

View File

@ -61,6 +61,8 @@ Class | Method | HTTP request | Description
- [ArrayItemRefTest](docs/ArrayItemRefTest.md) - [ArrayItemRefTest](docs/ArrayItemRefTest.md)
- [Baz](docs/Baz.md) - [Baz](docs/Baz.md)
- [Category](docs/Category.md) - [Category](docs/Category.md)
- [DuplicateTest](docs/DuplicateTest.md)
- [Duplicatetest](docs/Duplicatetest.md)
- [EnumArrayTesting](docs/EnumArrayTesting.md) - [EnumArrayTesting](docs/EnumArrayTesting.md)
- [NullableArray](docs/NullableArray.md) - [NullableArray](docs/NullableArray.md)
- [NumericEnumTesting](docs/NumericEnumTesting.md) - [NumericEnumTesting](docs/NumericEnumTesting.md)

View File

@ -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)

View File

@ -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)

View File

@ -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,
}
}
}

View File

@ -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,
}
}
}

View File

@ -10,6 +10,10 @@ pub mod baz;
pub use self::baz::Baz; pub use self::baz::Baz;
pub mod category; pub mod category;
pub use self::category::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 mod enum_array_testing;
pub use self::enum_array_testing::EnumArrayTesting; pub use self::enum_array_testing::EnumArrayTesting;
pub mod nullable_array; pub mod nullable_array;

View File

@ -8,6 +8,8 @@ docs/ApiResponse.md
docs/ArrayItemRefTest.md docs/ArrayItemRefTest.md
docs/Baz.md docs/Baz.md
docs/Category.md docs/Category.md
docs/DuplicateTest.md
docs/Duplicatetest.md
docs/EnumArrayTesting.md docs/EnumArrayTesting.md
docs/FakeApi.md docs/FakeApi.md
docs/NullableArray.md docs/NullableArray.md
@ -45,6 +47,8 @@ src/models/api_response.rs
src/models/array_item_ref_test.rs src/models/array_item_ref_test.rs
src/models/baz.rs src/models/baz.rs
src/models/category.rs src/models/category.rs
src/models/duplicate_test.rs
src/models/duplicatetest.rs
src/models/enum_array_testing.rs src/models/enum_array_testing.rs
src/models/mod.rs src/models/mod.rs
src/models/model_ref.rs src/models/model_ref.rs

View File

@ -61,6 +61,8 @@ Class | Method | HTTP request | Description
- [ArrayItemRefTest](docs/ArrayItemRefTest.md) - [ArrayItemRefTest](docs/ArrayItemRefTest.md)
- [Baz](docs/Baz.md) - [Baz](docs/Baz.md)
- [Category](docs/Category.md) - [Category](docs/Category.md)
- [DuplicateTest](docs/DuplicateTest.md)
- [Duplicatetest](docs/Duplicatetest.md)
- [EnumArrayTesting](docs/EnumArrayTesting.md) - [EnumArrayTesting](docs/EnumArrayTesting.md)
- [NullableArray](docs/NullableArray.md) - [NullableArray](docs/NullableArray.md)
- [NumericEnumTesting](docs/NumericEnumTesting.md) - [NumericEnumTesting](docs/NumericEnumTesting.md)

View File

@ -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)

View File

@ -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)

View File

@ -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,
}
}
}

View File

@ -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,
}
}
}

View File

@ -10,6 +10,10 @@ pub mod baz;
pub use self::baz::Baz; pub use self::baz::Baz;
pub mod category; pub mod category;
pub use self::category::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 mod enum_array_testing;
pub use self::enum_array_testing::EnumArrayTesting; pub use self::enum_array_testing::EnumArrayTesting;
pub mod nullable_array; pub mod nullable_array;

View File

@ -9,6 +9,8 @@ docs/FooApiResponse.md
docs/FooArrayItemRefTest.md docs/FooArrayItemRefTest.md
docs/FooBaz.md docs/FooBaz.md
docs/FooCategory.md docs/FooCategory.md
docs/FooDuplicateTest.md
docs/FooDuplicatetest.md
docs/FooEnumArrayTesting.md docs/FooEnumArrayTesting.md
docs/FooNullableArray.md docs/FooNullableArray.md
docs/FooNumericEnumTesting.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_array_item_ref_test.rs
src/models/foo_baz.rs src/models/foo_baz.rs
src/models/foo_category.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_enum_array_testing.rs
src/models/foo_nullable_array.rs src/models/foo_nullable_array.rs
src/models/foo_numeric_enum_testing.rs src/models/foo_numeric_enum_testing.rs

View File

@ -61,6 +61,8 @@ Class | Method | HTTP request | Description
- [FooArrayItemRefTest](docs/FooArrayItemRefTest.md) - [FooArrayItemRefTest](docs/FooArrayItemRefTest.md)
- [FooBaz](docs/FooBaz.md) - [FooBaz](docs/FooBaz.md)
- [FooCategory](docs/FooCategory.md) - [FooCategory](docs/FooCategory.md)
- [FooDuplicateTest](docs/FooDuplicateTest.md)
- [FooDuplicatetest](docs/FooDuplicatetest.md)
- [FooEnumArrayTesting](docs/FooEnumArrayTesting.md) - [FooEnumArrayTesting](docs/FooEnumArrayTesting.md)
- [FooNullableArray](docs/FooNullableArray.md) - [FooNullableArray](docs/FooNullableArray.md)
- [FooNumericEnumTesting](docs/FooNumericEnumTesting.md) - [FooNumericEnumTesting](docs/FooNumericEnumTesting.md)

View File

@ -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)

View File

@ -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)

View File

@ -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,
}
}
}

View File

@ -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,
}
}
}

View File

@ -10,6 +10,10 @@ pub mod foo_baz;
pub use self::foo_baz::FooBaz; pub use self::foo_baz::FooBaz;
pub mod foo_category; pub mod foo_category;
pub use self::foo_category::FooCategory; 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 mod foo_enum_array_testing;
pub use self::foo_enum_array_testing::FooEnumArrayTesting; pub use self::foo_enum_array_testing::FooEnumArrayTesting;
pub mod foo_nullable_array; pub mod foo_nullable_array;

View File

@ -8,6 +8,8 @@ docs/ApiResponse.md
docs/ArrayItemRefTest.md docs/ArrayItemRefTest.md
docs/Baz.md docs/Baz.md
docs/Category.md docs/Category.md
docs/DuplicateTest.md
docs/Duplicatetest.md
docs/EnumArrayTesting.md docs/EnumArrayTesting.md
docs/FakeApi.md docs/FakeApi.md
docs/NullableArray.md docs/NullableArray.md
@ -45,6 +47,8 @@ src/models/api_response.rs
src/models/array_item_ref_test.rs src/models/array_item_ref_test.rs
src/models/baz.rs src/models/baz.rs
src/models/category.rs src/models/category.rs
src/models/duplicate_test.rs
src/models/duplicatetest.rs
src/models/enum_array_testing.rs src/models/enum_array_testing.rs
src/models/mod.rs src/models/mod.rs
src/models/model_ref.rs src/models/model_ref.rs

View File

@ -61,6 +61,8 @@ Class | Method | HTTP request | Description
- [ArrayItemRefTest](docs/ArrayItemRefTest.md) - [ArrayItemRefTest](docs/ArrayItemRefTest.md)
- [Baz](docs/Baz.md) - [Baz](docs/Baz.md)
- [Category](docs/Category.md) - [Category](docs/Category.md)
- [DuplicateTest](docs/DuplicateTest.md)
- [Duplicatetest](docs/Duplicatetest.md)
- [EnumArrayTesting](docs/EnumArrayTesting.md) - [EnumArrayTesting](docs/EnumArrayTesting.md)
- [NullableArray](docs/NullableArray.md) - [NullableArray](docs/NullableArray.md)
- [NumericEnumTesting](docs/NumericEnumTesting.md) - [NumericEnumTesting](docs/NumericEnumTesting.md)

View File

@ -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)

View File

@ -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)

View File

@ -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,
}
}
}

View File

@ -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,
}
}
}

View File

@ -10,6 +10,10 @@ pub mod baz;
pub use self::baz::Baz; pub use self::baz::Baz;
pub mod category; pub mod category;
pub use self::category::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 mod enum_array_testing;
pub use self::enum_array_testing::EnumArrayTesting; pub use self::enum_array_testing::EnumArrayTesting;
pub mod nullable_array; pub mod nullable_array;