glideapps / glideapps/quicktype

Is it possible to deactivate funny naming?

Open
#1,580 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
13.9k
Forks
1.2k
Avg merge
8h 53m
Merged PRs (30d)
369

Description

Hi,
I am using the Quicktype-core in a nodejs application and I try to convert many classes from a JSON schema to typescript interfaces. Everything works ok so far, but I like to deactivate the funny naming option. I have created my JSON schemas from Java classes using `Jackson` and there I use for example the Annotations class in different files.

When I convert it to JSON it shows up multiple times. So I like to merge the all `Annotations` interfaces as one because they are the one. How can I do it?

```ts
export interface PurpleAnnotations {
loadFactor?: number;
threshold?: number;
}

export interface AmbitiousAnnotations {
loadFactor?: number;
threshold?: number;
}
```

I already extend `TypeScriptTargetLanguage` class from quicktype-core to override it and tried to extend and override the `Namer` class.

Help is appreciated

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.