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
1 change: 1 addition & 0 deletions bin/configs/manual/rust-axum-apikey-authorization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ additionalProperties:
basicAuthorization: true
basicAnalytic: true
ownedRequest: true
homePageUrl: https://github.com/openapitools/openapi-generator
globalProperties:
skipFormModel: false
enablePostProcessFile: true
1 change: 1 addition & 0 deletions bin/configs/manual/rust-axum-apikey-auths.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ generateAliasAsModel: true
additionalProperties:
hideGenerationTimestamp: "true"
packageName: apikey-auths
homePageUrl: https://github.com/openapitools/openapi-generator
globalProperties:
skipFormModel: false
enablePostProcessFile: true
1 change: 1 addition & 0 deletions bin/configs/manual/rust-axum-array-params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ generateAliasAsModel: true
additionalProperties:
hideGenerationTimestamp: "true"
packageName: rust-axum-array-params-test
homePageUrl: https://github.com/openapitools/openapi-generator
globalProperties:
skipFormModel: false
enablePostProcessFile: true
3 changes: 2 additions & 1 deletion bin/configs/manual/rust-axum-header-uuid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ templateDir: modules/openapi-generator/src/main/resources/rust-axum
generateAliasAsModel: true
additionalProperties:
hideGenerationTimestamp: "true"
packageName: rust-axum-header-uui
packageName: rust-axum-header-uuid
homePageUrl: https://github.com/openapitools/openapi-generator
globalProperties:
skipFormModel: "false"
enablePostProcessFile: true
1 change: 1 addition & 0 deletions bin/configs/manual/rust-axum-multipart-v3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ additionalProperties:
hideGenerationTimestamp: "true"
allowBlockingResponseSerialize: "true"
packageName: multipart-v3
homePageUrl: https://github.com/openapitools/openapi-generator
globalProperties:
skipFormModel: false
enablePostProcessFile: true
1 change: 1 addition & 0 deletions bin/configs/manual/rust-axum-oneof-v3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ generateAliasAsModel: true
additionalProperties:
hideGenerationTimestamp: "true"
packageName: rust-axum-oneof
homePageUrl: https://github.com/openapitools/openapi-generator
globalProperties:
skipFormModel: "false"
enablePostProcessFile: true
1 change: 1 addition & 0 deletions bin/configs/manual/rust-axum-openapi-v3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ additionalProperties:
hideGenerationTimestamp: "true"
allowBlockingValidator: "true"
packageName: openapi-v3
homePageUrl: https://github.com/openapitools/openapi-generator
globalProperties:
skipFormModel: false
enablePostProcessFile: true
1 change: 1 addition & 0 deletions bin/configs/manual/rust-axum-ops-v3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ generateAliasAsModel: true
additionalProperties:
hideGenerationTimestamp: "true"
packageName: ops-v3
homePageUrl: https://github.com/openapitools/openapi-generator
globalProperties:
skipFormModel: false
enablePostProcessFile: true
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ additionalProperties:
hideGenerationTimestamp: "true"
packageName: petstore-with-fake-endpoints-models-for-testing
publishRustRegistry: crates-io
homePageUrl: https://github.com/openapitools/openapi-generator
globalProperties:
skipFormModel: false
enablePostProcessFile: true
1 change: 1 addition & 0 deletions bin/configs/manual/rust-axum-petstore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ generateAliasAsModel: true
additionalProperties:
hideGenerationTimestamp: "true"
packageName: petstore
homePageUrl: https://github.com/openapitools/openapi-generator
globalProperties:
skipFormModel: false
enablePostProcessFile: true
1 change: 1 addition & 0 deletions bin/configs/manual/rust-axum-ping-bearer-auth-v3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ generateAliasAsModel: true
additionalProperties:
hideGenerationTimestamp: "true"
packageName: ping-bearer-auth
homePageUrl: https://github.com/openapitools/openapi-generator
globalProperties:
skipFormModel: false
enablePostProcessFile: true
1 change: 1 addition & 0 deletions bin/configs/manual/rust-axum-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ additionalProperties:
hideGenerationTimestamp: "true"
packageName: rust-server-test
modelNamePrefix: "Foo"
homePageUrl: https://github.com/openapitools/openapi-generator
globalProperties:
skipFormModel: false
enablePostProcessFile: true
1 change: 1 addition & 0 deletions bin/configs/manual/rust-axum-validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ additionalProperties:
hideGenerationTimestamp: "true"
packageName: rust-axum-validation-test
disableValidator: "true"
homePageUrl: https://github.com/openapitools/openapi-generator
globalProperties:
skipFormModel: false
enablePostProcessFile: true
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ repository = "{{.}}"
documentation = "{{.}}"
{{/documentationUrl}}
{{#homePageUrl}}
homepage = "{{.}}
homepage = "{{.}}"
{{/homePageUrl}}

[features]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "1.0.0"
authors = ["OpenAPI Generator team and contributors"]
description = "Checkout Basic"
edition = "2024"
homepage = "https://github.com/openapitools/openapi-generator"

[features]
default = ["server"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "1.0.0"
authors = ["OpenAPI Generator team and contributors"]
description = "Checkout Basic"
edition = "2024"
homepage = "https://github.com/openapitools/openapi-generator"

[features]
default = ["server"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "1.0.7"
authors = ["OpenAPI Generator team and contributors"]
description = "API under test"
edition = "2024"
homepage = "https://github.com/openapitools/openapi-generator"

[features]
default = ["server"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "1.0.7"
authors = ["OpenAPI Generator team and contributors"]
description = "API under test"
edition = "2024"
homepage = "https://github.com/openapitools/openapi-generator"

[features]
default = ["server"]
Expand Down
1 change: 1 addition & 0 deletions samples/server/petstore/rust-axum/output/ops-v3/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.0.1"
authors = ["OpenAPI Generator team and contributors"]
description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
edition = "2024"
homepage = "https://github.com/openapitools/openapi-generator"

[features]
default = ["server"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ description = "This spec is mainly for testing Petstore server and contains fake
license = "Apache-2.0"
edition = "2024"
publish = ["crates-io"]
homepage = "https://github.com/openapitools/openapi-generator"

[features]
default = ["server"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ authors = ["OpenAPI Generator team and contributors"]
description = "This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters."
license = "Apache-2.0"
edition = "2024"
homepage = "https://github.com/openapitools/openapi-generator"

[features]
default = ["server"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "1.0.0"
authors = ["OpenAPI Generator team and contributors"]
description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
edition = "2024"
homepage = "https://github.com/openapitools/openapi-generator"

[features]
default = ["server"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.0.1"
authors = ["OpenAPI Generator team and contributors"]
description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
edition = "2024"
homepage = "https://github.com/openapitools/openapi-generator"

[features]
default = ["server"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
[package]
name = "rust-axum-header-uui"
name = "rust-axum-header-uuid"
Copy link

Copilot AI Aug 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The package name was corrected from 'rust-axum-header-uui' to 'rust-axum-header-uuid' to fix the typo in 'uuid'.

Copilot uses AI. Check for mistakes.
version = "0.1.9"
authors = ["OpenAPI Generator team and contributors"]
description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
edition = "2024"
homepage = "https://github.com/openapitools/openapi-generator"

[features]
default = ["server"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Rust API for rust-axum-header-uui
# Rust API for rust-axum-header-uuid

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

Expand All @@ -16,7 +16,7 @@ To see how to make this your own, look here: [README]((https://openapi-generator



This autogenerated project defines an API crate `rust-axum-header-uui` which contains:
This autogenerated project defines an API crate `rust-axum-header-uuid` which contains:
* An `Api` trait defining the API in Rust.
* Data types representing the underlying data model.
* Axum router which accepts HTTP requests and invokes the appropriate `Api` method for each operation.
Expand All @@ -43,18 +43,18 @@ struct ServerImpl {

#[allow(unused_variables)]
#[async_trait]
impl rust_axum_header_uui::apis::default::Api for ServerImpl {
impl rust_axum_header_uuid::apis::default::Api for ServerImpl {
// API implementation goes here
}

impl rust_axum_header_uui::apis::ErrorHandler for ServerImpl {}
impl rust_axum_header_uuid::apis::ErrorHandler for ServerImpl {}

pub async fn start_server(addr: &str) {
// initialize tracing
tracing_subscriber::fmt::init();

// Init Axum router
let app = rust_axum_header_uui::server::new(Arc::new(ServerImpl));
let app = rust_axum_header_uuid::server::new(Arc::new(ServerImpl));

// Add layers to the router
let app = app.layer(...);
Expand Down
Loading
Loading