Skip to content

[BUG] generator for oatpp creates server on localhost instead of 0.0.0.0 #22329

@julian-st

Description

@julian-st

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator?
  • version 7.17.0
  • Have you searched for related issues/PRs?
  • What's the actual output vs expected output?
Description

Output of the generator for oatcpp generates a server-api on localhost and this is not reachable on a normal network interface e.g. 192.168.1.100
I want the server to be available on 0.0.0.0

openapi-generator version

cli-7.17.0

OpenAPI declaration file content or url

https://github.com/iolinkcommunity/JSON_for_IO-Link

Generation Details
Steps to reproduce
java -jar openapi-generator-cli-7.17.0.jar generate -i JSON_for_IO-Link19.yaml -g cpp-oatpp-server -o buildcppv2
cd buildcppv2
cmake ..
make
Related issues/PRs
Suggest a fix

samples/server/petstore/cpp-oatpp/main-api-server.cpp
change the localhost parameter to 0.0.0.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions