swagger-api / swagger-api/swagger-codegen

[TYPESCRIPT/ANGULAR] / BUG / PascalCase generated to CamelCase

Open
#10,342 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

When Angular-Code is generated for this scheme:

pictures: type: object properties: Banner: type: array items: $ref: '#/components/schemas/ICoursePicture' Content: type: array items: $ref: '#/components/schemas/ICoursePicture'

the properties "Banner" and "Content" are generated as "banner" and "content". Is this a bug? Can it somehow be changed?

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

Reproduce Angular-Code generation with the provided schema, focusing on the PascalCase properties Banner and Content under pictures. Check where property names are transformed and verify that the generated Angular output preserves the requested casing without changing other generated names.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.