Skip to content

Colons declared in model property names removed #1080

@smasala

Description

@smasala
Description

As discussed with @wing328:

swagger-api/swagger-codegen#4290 (comment). We have some models where the JSONProperty is set to a colon notated name. Due to the fact that the colons are automatically removed from the property name, the interfaces generated (typescript) are no longer identical with the JSON produced. We then need to resort to ts hacks such as:

myVariable['my:prop:name' as keyof MyModel] as string

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