Bug Report Checklist
Description
Sample code for http services tries to rebind the same port.
openapi-generator version
rust-service
OpenAPI declaration file content or url
openapi: 3.0.3
info:
title: Helloworld API
description: API defining the operations available in the Helloworld API
version: 0.1.0
servers:
- url: "https://helloapi.apptocracy.com/v1"
description: Production API endpoint for the Hello World API
components:
schemas:
Message:
type: object
properties:
message:
type: string
paths:
/hello/{name}:
get:
operationId: sayHello
description: say hello
parameters:
- name: name
in: path
required: true
description: name of the individual to say hello to
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/Message"
Generation Details
openapi-generator generate \ -i hello.yml \
-g rust-server \
-o ./generated-server
Generator used:
openapi-generator-cli 7.16.0
commit : unknown
built : -999999999-01-01T00:00:00+18:00
source : https://github.com/openapitools/openapi-generator
docs : https://openapi-generator.tech/
Steps to reproduce
cd generated-server
cargo run --example server
Output is that the address its binding to is already binded before.
Related issues/PRs
N/A
Suggest a fix
Remove unneeded port binding.
Bug Report Checklist
Description
Sample code for http services tries to rebind the same port.
openapi-generator version
rust-service
OpenAPI declaration file content or url
Generation Details
openapi-generator generate \ -i hello.yml \ -g rust-server \ -o ./generated-serverGenerator used:
Steps to reproduce
cd generated-server cargo run --example serverOutput is that the address its binding to is already binded before.
Related issues/PRs
N/A
Suggest a fix
Remove unneeded port binding.