Option to use the JSON property names as the member names #1021
Comments
|
@schani Is there still no way to disable the automatic renaming of properties at all? Or am I missing something? I've spent many hours looking into this, and there's heaps of other issues asking for it... is there at least some dodgy hack I can do to disable the renaming of properties? Right now I'm:
Here's my code so far: const jsonInput = jsonInputForTargetLanguage('rust');
await jsonInput.addSource({
name: 'MainStructName',
samples: json_samples,
});
const inputData = new InputData();
inputData.addInput(jsonInput);
const result = await quicktype({
inputData,
lang: 'rust',
inferDateTimes: false,
alphabetizeProperties: true,
inferEnums: false,
rendererOptions: {},
});Although I'm keen to figure this out for any output language, not just Rust. Looking through some of the source code, I can see stuff such as: ...the But I can't figure out how to actually do it. Is it possible at all? |
|
Most other similar apps have a toggle for PascalCasing. Being able to disable the renaming completely or toggle it would be awesome. |
A lot of people are requesting this, with a variety of different slightly weird reasons.
The text was updated successfully, but these errors were encountered: