Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,12 @@ public String modelFileFolder() {
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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions samples/client/petstore/rust/hyper/petstore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
11 changes: 11 additions & 0 deletions samples/client/petstore/rust/hyper/petstore/docs/DuplicateTest.md
Original file line number Diff line number Diff line change
@@ -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)


11 changes: 11 additions & 0 deletions samples/client/petstore/rust/hyper/petstore/docs/Duplicatetest.md
Original file line number Diff line number Diff line change
@@ -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)


Original file line number Diff line number Diff line change
@@ -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,
}
}
}

Original file line number Diff line number Diff line change
@@ -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,
}
}
}

4 changes: 4 additions & 0 deletions samples/client/petstore/rust/hyper/petstore/src/models/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions samples/client/petstore/rust/hyper0x/petstore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
@@ -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)


Original file line number Diff line number Diff line change
@@ -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)


Original file line number Diff line number Diff line change
@@ -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,
}
}
}

Original file line number Diff line number Diff line change
@@ -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,
}
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions samples/client/petstore/rust/reqwest-trait/petstore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
@@ -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)


Original file line number Diff line number Diff line change
@@ -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)


Original file line number Diff line number Diff line change
@@ -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,
}
}
}

Original file line number Diff line number Diff line change
@@ -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,
}
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading
Loading