OpenAPITools / OpenAPITools/openapi-generator

[REQ] typescript/JS service methods with finnish notation

Open
#12,663 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Is your feature request related to a problem? Please describe.

In javascript/typescript, lots of projects I encountered implement and enforce Finnish Notation for RxJS methods/properties that return Observables.

This means: service-methods/variables/properties that return an observable end with a '$' in their name.

e.g.:
public loadFoo$(): Observable<Foo>
instead of
public loadFoo(): Observable<Foo>

Describe the solution you'd like

It would be nice to have this naming convention configurable via command line switches.

Describe alternatives you've considered

Altering the provided templates works, but is tedious work for such a widespread convention.

Additional context

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

Start by reviewing the provided JavaScript/TypeScript templates and the command-line switch handling. Determine how a configurable Finnish-notation option should apply to service methods, variables, and properties that return Observables; done means generated names follow the selected convention without manually altering templates.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.