OpenAPITools / OpenAPITools/openapi-generator

[Question] To Subclass or to Customize

Open
#5,133 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

Given I've just gone through the process of upgrading from V 4.0 Beta to 5..0 pre release via version 4.*.
I'm falling very much out of love with doing bespoke code in my configuration.mustache.

I was wondering how other people deal with managing bespoke code in generated projects vs the hassle of updating configuration.mustache

I currently consume python, php and axios. Python and php are the main pain points for this...

The customisation I have is to use environment variables to change the HOST names on a global basis...
e.g. for dev/staging and production.

Any advice would be appreciated.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue discusses bespoke code in configuration.mustache for generated Python and PHP projects, especially environment-based host customization. No specific file path beyond configuration.mustache, implementation target, or test is provided; first clarify whether guidance or a documented customization pattern is wanted, then define what documentation would be considered complete.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, python
Domain
tooling
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.