You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
command above generates parent interface + children data classes, but it doesn't implements this interface. also for some reasons parent interface has some default values from its last child (see commends in code below):
// CarCommandInputjsonldInput.kt/** * // <---why do these empy lines needed? * * @param command * @param commandOptions */// <---why do these empy lines needed?interfaceCarCommandInputjsonldInput {
@SerialName(value ="command") @Required val command:CarCommandInputjsonldInput.Command
@SerialName(value ="commandOptions") val commandOptions:TemperatureDownCommandInputJsonldInputCommandOptions?// <----- why last child type is used here???/** * // <---why do these empy lines needed? * * Values: temperature_down*/
@Serializable
enumclassCommand(valvalue: kotlin.String) {
@SerialName(value ="temperature_down") temperature_down("temperature_down"); // <----- why last child type is used here???
}
}
// DrivingModeSetCommandInputjsonldInput.kt/** * * * @param command * @param commandOptions */
@Serializable
data classDrivingModeSetCommandInputjsonldInput (
@SerialName(value ="command") @Required valcommand:DrivingModeSetCommandInputjsonldInput.Command = Command.driving_mode_set,
@SerialName(value ="commandOptions") valcommandOptions:DrivingModeSetCommandInputJsonldInputCommandOptions? = null
) {
/** * * * Values: driving_mode_set*/
@Serializable
enumclassCommand(valvalue: kotlin.String) {
@SerialName(value ="driving_mode_set") driving_mode_set("driving_mode_set");
}
}
// PowerModeSetCommandInputjsonldInput.kt/** * * * @param command * @param commandOptions */
@Serializable
data classPowerModeSetCommandInputjsonldInput (
@SerialName(value ="command") @Required valcommand:PowerModeSetCommandInputjsonldInput.Command = Command.power_mode_set,
@SerialName(value ="commandOptions") valcommandOptions:PowerModeSetCommandInputJsonldInputCommandOptions? = null
) {
/** * * * Values: power_mode_set*/
@Serializable
enumclassCommand(valvalue: kotlin.String) {
@SerialName(value ="power_mode_set") power_mode_set("power_mode_set");
}
}
Bug Report Checklist
Description
openapi-generator version
7.10.0
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
command above generates parent interface + children data classes, but it doesn't implements this interface. also for some reasons parent interface has some default values from its last child (see commends in code below):
Related issues/PRs
#19928
Suggest a fix
The text was updated successfully, but these errors were encountered: