Skip to content

Is the --no-combine-classes switch broken ? #1265

Description

@Kylix69

Hi,

I have a very simple json file.

When using the online tool (app.quicktype.io), I can use the "Merge Similar Classes" toggle button to customise my output (json to code). However, when trying to do the same from the command line, the "--no-combine-classes" switch has no effect and quicktype always leads to merging.

quicktype -t Trade c:\temp\Trade.json --lang cs --array-type list --features complete --no-combine-classes -o c:\temp\cs\Trade.cs

As an example, with the json snippet below, online, I can toggle between merging the 'Rate' and 'Amount' generated classes.

Via the 'quicktype' command line, these two classes are always merged into a 'Rate' class.
Am I using the correct switch (--no-combine-classes) and in the correct manner?

Many thanks,
Best.

{
"body": {
"name": "Bob",
"info": {
"tradeDate": "2019-01-24"
},
"product": {
"legs": [{
"schedule": {
"currency": "GBP",
"amount": {
"initialValue": 1000000.0
}
},
"calculation": {
"dayCount": "Act/365F",
"rate": {
"initialValue": 0.012
}
}
}, {
"schedule": {
"currency": "GBP",
"amount": {
"initialValue": 1000000.0
}
},
"calculation": {
"dayCount": "Act/365F",
"rate": {
"initialValue": 0.012
}
}
}]
}
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions