Skip to content

clientgen generated python code incorrect for undocumented enumerations #757

@djungelorm

Description

@djungelorm

clientgen generates incorrect python code for enums when the members are not documented. For example:

[KRPCEnum(Service = "MechJeb")]
public enum SmartASSInterfaceMode {
    Orbital,
    Surface,
    Target,
    Advanced,

    /// <summary>
    /// Internal mode, do not set.
    /// </summary>
    Automatic
}
class SmartASSInterfaceMode(DocEnum):
    orbital = 0    surface = 1    target = 2    advanced = 3    automatic = 4, """
Internal mode, do not set.
"""

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions