Skip to content

Better deserialization of kt / nt values from openapi generator #80

@iFergal

Description

@iFergal

See #79

A key state record field of kt or nt has a format of string | string[] from OpenAPI. The open API generator doesn't handle this very well, so the simplest solution for now is a custom deserializer and class to which we can cast.

Calling function will need to cast with (KtValue) to access getWeightedThreshold and getUnweightedThreshold. This is not very useful for the calling function as they won't know they need to do that.

Leaving as-is for now as it's lower priority.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions